Application configuration operation method and device, computer equipment and storage medium
By embedding the operation page of the configuration management system in the CI/CD platform, the integration complexity problem between the CI/CD platform and the configuration management system is solved, the convenience of configuration operations is improved, the operation process is simplified, and the cost is reduced. The error rate realizes unified management and display of configuration information.
Patent Information
- Application Number
- CN202411342020.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-20
AI Technical Summary
The existing CI/CD platforms and configuration management systems lack natural integration capabilities, which leads to complex integration and difficulty in generalization, increases development and maintenance costs, and makes it difficult for users to meet customized needs.
By displaying the test-lading page in the continuous integration and continuous delivery platform, including configuration operation buttons, obtaining the target page address according to the button type, and nesting the operation page of the configuration management system in the page, the convenience and unity of configuration operations are achieved. View display, simplifying operation and integration processes.
Reduces user switching operations between multiple systems, reduces workload and error rates, simplifies the integration process between the platform and the configuration management system, reduces the complexity of scripts and API calls, and provides a unified view to fully understand configurations. content.
Smart Images

Figure CN119166532A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of application configuration management, and in particular to an application configuration operation method, apparatus, computer equipment and storage medium. Background Art
[0002] In the current software development process, continuous integration and continuous delivery (CI / CD) platforms play an important role in product development. These platforms help development teams automate the code building, testing, and deployment processes to improve development efficiency and software quality. Configuration management systems, such as the Apollo Configuration System, also play a key role in this. Configuration management systems can be used to manage various configurations of applications to ensure dynamic updates and unified management of configurations.
[0003] Existing CI / CD (Continuous Integration / Continuous Delivery) platforms and configuration management systems usually operate independently. Developers submit and test code on the CI / CD platform, while the configuration management system is used to manage application configuration. There are several implementation options for this separation:
[0004] 1. Manual integration:
[0005] After developers submit code on the CI / CD platform, they manually enter the configuration management system to add or modify configurations. Later, when testers perform deployment tests on the CI / CD platform, they manually check and apply the corresponding configurations.
[0006] 2. API Integration:
[0007] Some CI / CD platforms call the functions of the configuration management system through an API (Application Programming Interface). For example, Jenkins (a continuous integration tool developed based on Java, used to monitor continuous and repetitive work) can integrate with the Apollo configuration system through the HTTP (Hypertext Transfer Protocol) API to automatically obtain or update the configuration during the build process.
[0008] 3. Scripted integration:
[0009] Use scripts to integrate configuration management systems into CI / CD processes. For example, embed commands in Jenkins pipeline scripts to operate the Apollo configuration system to automatically create, update, or query configurations.
[0010] However, since the CI / CD platform and configuration management system were designed to be independent from the beginning, they lack natural integration capabilities, and each system also has its own unique API and operation logic, which makes integration complex and difficult to generalize. In addition, different companies and teams have different needs for CI / CD and configuration management, and existing solutions are difficult to meet the customized needs of all users. Therefore, there are some problems with the above implementation solutions. For example, the manual integration method requires developers and testers to switch between multiple systems, which is cumbersome and increases the workload and the chance of error. Although API integration and scripted integration have improved the degree of automation, the degree of automation is still relatively low. In order to meet their own needs for CI / CD and configuration management, different companies and teams need to write and maintain a large number of customized scripts, which increases development and maintenance costs. Summary of the invention
[0011] In view of the above-mentioned deficiencies or shortcomings, the present application provides an application configuration operation method, apparatus, computer device and storage medium. The embodiments of the present application can improve the convenience of configuration operation and also simplify the operation process.
[0012] According to a first aspect, the present application provides an application configuration operation method. In some embodiments, the method is applied to a continuous integration and continuous delivery platform; the method includes:
[0013] Displaying a test submission form page, which includes at least one configuration operation button;
[0014] When a user click operation on a configuration operation button is detected, a corresponding page address is obtained from the operation page address data as a target page address according to the operation type corresponding to the configuration operation button; the operation page address data includes page addresses of multiple operation pages of the configuration management system predefined by the administrator; the multiple operation pages include a newly added configuration page and a configuration details page;
[0015] The target operation page is nested and displayed in the test submission form page according to the target page address, so that users can perform configuration operations.
[0016] In some embodiments, when displaying the test request form page, the method further includes:
[0017] Get the test order ID;
[0018] Check whether the test order ID has an associated configuration ID;
[0019] If yes, request the configuration management system to obtain the configuration information corresponding to each configuration identifier currently associated with the test order identifier;
[0020] Extracting configuration summary information from each configuration information according to configuration object metadata predefined by the administrator; the configuration summary information includes configuration identification, configuration description and configuration status;
[0021] All extracted configuration summary information is displayed on the test submission form page.
[0022] In some embodiments, before extracting the configuration summary information from each configuration information according to the configuration object metadata predefined by the administrator, the method further includes:
[0023] A data converter is used to convert the format of each configuration information, so as to convert the configuration format of all the configuration information into a predefined unified display format.
[0024] In some embodiments, the test submission form page includes multiple tab pages corresponding to multiple preset configuration types; the operation of displaying all extracted configuration summary information on the test submission form page includes:
[0025] Determine the configuration type corresponding to each configuration summary information;
[0026] Each configuration summary information is displayed in a tab page corresponding to the same configuration type as the configuration summary information.
[0027] In some embodiments, when displaying the configuration summary information on the test submission form page, the method further includes:
[0028] The configuration operation button corresponding to each configuration summary information is displayed according to the correspondence between the configuration status and the operation button pre-defined by the administrator and the configuration status of each configuration summary information; the correspondence between the configuration status and the operation button includes the configuration operation buttons corresponding to multiple preset configuration statuses.
[0029] In some embodiments, after displaying the target operation page in a nested manner in the test submission form page according to the target page address, the method further includes:
[0030] When the configuration status of any configuration summary information changes, the content of the configuration summary information and the configuration operation button are updated accordingly on the test submission form page.
[0031] In some embodiments, when the operation type corresponding to the configuration operation button is a new configuration, the target operation page is a new configuration page; accordingly, after the new configuration page is nested and displayed in the test submission form page, the method further includes:
[0032] Receive the configuration identifier returned by the configuration management system; the configuration identifier is a unique identifier generated by the configuration management system for the new configuration information configured by the user through the new configuration page;
[0033] Establish an association between the configuration identifier and the test order identifier related to the test order page;
[0034] Request the configuration management system to obtain the configuration information corresponding to the configuration identifier, extract the configuration summary information from the configuration information, and display it on the test submission form page.
[0035] According to a second aspect, the present application provides an application configuration operation device. In some embodiments, the device is applied to a continuous integration and continuous delivery platform. The device includes the following modules:
[0036] The first page display module is used to display the test submission form page, and the test submission form page includes at least one configuration operation button;
[0037] The page address acquisition module is used to acquire the corresponding page address from the operation page address data as the target page address when detecting the user's click operation on the configuration operation button according to the operation type corresponding to the configuration operation button; the operation page address data includes the page addresses of various operation pages of the configuration management system predefined by the administrator; the various operation pages include a newly added configuration page and a configuration details page;
[0038] The second page display module is used to nest and display the target operation page in the test submission form page according to the target page address, so that the user can perform configuration operations.
[0039] According to a third aspect, the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the application configuration operation method provided in any of the above embodiments are implemented.
[0040] According to a fourth aspect, the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the application configuration operation method provided in any of the above embodiments are implemented.
[0041] In the above-mentioned embodiments of the present application, the continuous integration and continuous delivery platform displays a test submission form page to the user, and the test submission form page includes at least one configuration operation button; when a user clicks on the configuration operation button, the corresponding page address is obtained from the operation page address data as the target page address according to the operation type corresponding to the configuration operation button, and the target operation page is nested and displayed in the test submission form according to the target page address, so that the user can perform configuration operations. Through the above-mentioned embodiments, the present application can improve the convenience of configuration operations. Specifically, the present application can allow developers, testers and other users to directly perform configuration operations in the continuous integration and continuous delivery platform, such as adding configuration information to the test submission form and binding the configuration information to the test submission form, querying the configuration information details, etc. Developers and testers do not need to switch between multiple systems, which reduces the manual operation steps, which not only reduces the user's workload, but also reduces the error rate. This application can also simplify the operation process. Specifically, the administrator only needs to define the type of configuration operation, operation page, metadata of configuration information and other information of the configuration management system in advance on the platform. The platform can present the operation page of the configuration management system for performing various configuration operations to the user in the test submission page. The platform can also manage the status of each configuration information, simplifying the integration process between the platform and the configuration management system and reducing the complexity of scripts and API calls. Furthermore, this application can also display the summary information of the configuration information to the user through a unified view, so that testers can fully understand the configuration content of the test submission. This application can also display the corresponding operation buttons according to the current status of the configuration information, and adjust the displayed operation buttons accordingly when the status changes, so as to realize the status flow of the configuration information. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 An application environment diagram of an application configuration operation method provided by the present application according to one or more embodiments;
[0043] Figure 2 A flowchart of an application configuration operation method provided by the present application according to one or more embodiments;
[0044] Figure 3 A structural block diagram of an application configuration operation device provided by the present application according to one or more embodiments;
[0045] Figure 4 This is a diagram of the internal structure of a computer device provided by the present application according to one or more embodiments. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0047] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0048] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0049] In view of the shortcomings or defects of the prior art, the present application provides an application configuration operation method, the application environment of which can be as follows: Figure 1As shown, the administrator can pre-define the operation types of various configuration operations supported by the configuration management system 30, the operation page address and configuration status corresponding to each operation type, and the configuration object metadata in the continuous integration and continuous delivery platform 20 through the user device 11, and integrate the configuration management system 30 into the continuous integration and continuous delivery platform 20 through configuration; after the definition is completed, after the developer submits the code on the continuous integration and continuous delivery platform 20, he can directly enter the various operation pages provided by the configuration management system 30 in the test order page provided by the platform to perform corresponding configuration operations, such as creating a new configuration for the test order, modifying configuration information, and viewing configuration details. When the tester performs deployment testing on the continuous integration and continuous delivery platform, after entering the test order page through the user device 13, he can see the configuration information added by the developer for the relevant test order, as well as the operation buttons corresponding to the current configuration status of each configuration information. The tester can directly check the configuration information and application configuration information in the platform through these operation buttons. The above-mentioned user devices 11 / 12 / 13 can be the same or different computing devices (such as smart phones, tablet computers, laptops, personal computers, etc.). The continuous integration and continuous delivery platform 20 and the configuration management system 30 are both servers. It is worth noting that the continuous integration and continuous delivery platform 20 can be any CI / CD platform, such as GitLab, Jenkins, CircleCI, Travis CI, GitHub Actions, Azure DevOps, Bamboo, TeamCity, etc., and the configuration management system 30 can be any configuration management system, such as Apollo, Nacos, SpringCloud Config, etc.
[0050] In the embodiment of the present application, various functions of the configuration management system are integrated into the continuous integration and continuous delivery platform through iframe. Specifically, the platform administrator predefines the operation types corresponding to various configuration operations provided by the configuration management system actually used in the continuous integration and continuous delivery platform actually used, the operation pages related to various operation types, and the configuration object metadata and various configuration states of the configuration information, the entrances to the operation pages corresponding to various operation types (which may be operation buttons), the visual identification information corresponding to various configuration states, and the operation buttons corresponding to various configuration states, etc., so that the continuous integration and continuous delivery platform can display the operation button for triggering the configuration operation in the test submission form page. When the user clicks the operation button, the platform nests and displays the operation page of the configuration management system related to the operation button in the test submission form page through iframe, so that the user can directly perform corresponding configuration operations in the platform, such as creating a new configuration, viewing configuration details, modifying configuration, etc. The platform can also extract summary information from the configuration information added by the user to the test submission form according to the configuration object metadata and display it uniformly on the test submission form page, and can update the summary information and operation buttons of the configuration information whose configuration status has changed after the user performs the configuration operation, so that the user can intuitively understand the real-time situation of various configuration information related to the test submission form.
[0051] In some embodiments, the application configuration operation method includes: Figure 2 The steps shown, namely steps S110 to S130, are applied to Figure 1 The continuous integration and continuous delivery platform (hereinafter referred to as the platform) in the application environment shown is used as an example for explanation.
[0052] S110: Displaying a test submission form page, which includes at least one configuration operation button.
[0053] In the continuous integration and continuous delivery (CI / CD) process, after developers complete code development, the code will be tested by testers. Developers need to fill out the corresponding test submission form for the developed code. The test submission form is the test content provided by the developer to the tester, which usually details the software version of the code to be tested and its related configuration information, such as database connection string, server address, feature switch, etc., to ensure that the test environment can be tested according to the expected configuration. When testers perform deployment tests on the platform, they need to check the configuration information added by the developer to the test submission form and ensure that these configurations are correctly applied to the test environment.
[0054] Users can access the platform through user devices. If the user device detects that the user performs a test order access operation (such as creating a new test order, viewing a test order, etc.), the test order access request is sent to the platform. After the platform receives the test order access request, it displays the test order page to the user through the user's user device. It should be noted that the user can be a developer or a tester. Since the roles and / or permissions of the developer and tester accounts are usually different, there may be some differences in the display content of the test order page seen by developers and testers on the platform. The difference in display content also makes the operations that developers and testers can perform through the test order page different.
[0055] For example, the work contents of developers and testers are different. Developers need to add configuration information to the code, while testers need to check and apply the added configuration information. Therefore, the access operation of the test order performed by developers is usually to create a new test order, while the access operation of the test order performed by testers is usually to view the test order. If the access operation of the test order is to create a new test order, the test order page displayed is specifically a page for creating a new test order (which can be called a test order creation page). If the access operation of the test order is to view the test order, the test order page displayed is specifically a page for viewing the created test order (which can be called a test order details page). Usually, the test order page displayed for developers is the test order creation page, and the test order page displayed for testers is the test order details page. Of course, developers can also enter the test order details page by viewing the test order operation. In this case, developers can also modify and delete the configured configuration information through the test order details page, while testers cannot modify the configured configuration information through the test order details page.
[0056] The content of the test order page displayed by the platform for developers and the test order page displayed for testers have similarities and differences. For example, in order to facilitate users to understand the configuration information related to the test order, the test order page displayed for developers and testers can have relevant content of each configuration information associated with the test order (such as summary information or all information of the configuration information). However, due to the different work content of developers and testers, developers need to be able to create new configuration information, modify or delete configuration information, and view configuration information details through the test order page, while testers need to be able to view configuration information details and apply configuration information through the test order page. For this reason, the test order page displayed for developers needs to include the entrance for entering the new configuration page (for creating new configuration information), the configuration details page (for displaying configuration information details), and the modification configuration page (for modifying the configured configuration information) of the configuration management system, and the test order page displayed for testers needs to include the entrance for entering the configuration details page of the configuration management system and the entrance for triggering the configuration information application indication.
[0057] In some embodiments, the above-mentioned entry can be implemented in the form of an operation button. The configuration operation button refers to an operation button related to the configuration operation.
[0058] S120: When a click operation of the user on the configuration operation button is detected, a corresponding page address is obtained from the operation page address data according to the operation type corresponding to the configuration operation button as a target page address.
[0059] In some embodiments, the administrator needs to define in advance on the platform the relevant information of various configuration operations supported by the configuration management system actually used, such as the operation type (or operation name) and operation page address of each configuration operation, the configuration object metadata of the configuration information, and the configuration status. The various configuration operations supported by the configuration management system are operations related to the creation and management of configurations, such as creating new configuration information, viewing configuration information details, modifying configured configuration information, and the like. Exemplarily, the operation types defined by the administrator for each configuration operation on the platform may include [Create Configuration] (the corresponding configuration operation is to create new configuration information), [View Configuration] (the corresponding configuration operation is to view configuration information details), [Modify Configuration] (the corresponding configuration operation is to modify configured configuration information), and the like. The operation page address corresponding to each configuration operation may specifically be a URL (uniform resource locator). The configuration object metadata of the configuration information is used to indicate which fields the summary information of the configuration information consists of, which can be used to extract summary information from the configuration information. Exemplarily, the configuration object metadata may include multiple fields such as configuration identification (such as configuration key), configuration description, and configuration status. There may be multiple configuration states for configuration information, for example, including [Draft], [To be submitted], [Under review], [Effective] and other states.
[0060] On this basis, after the platform displays the test submission form page to the user, if the user clicks on any configuration operation button in the test submission form page, the page address of the operation page corresponding to the operation type of the configuration operation button can be determined based on the operation page address data. For the convenience of explanation, this page address is referred to as the target page address below.
[0061] The operation page address data is data pre-defined by the administrator on the platform, including the page addresses of various operation pages of the configuration management system. The various operation pages are used to implement various operations related to new configuration and management configuration. The various operation pages may include but are not limited to pages such as the new configuration page, the configuration details page, and the modified configuration page.
[0062] S130: Displaying the target operation page in a nested manner in the test submission form page according to the target page address, so that the user can perform configuration operations.
[0063] After obtaining the target page address, the target operation page, that is, the operation page corresponding to the target page address, is displayed in the test submission page through iframe, so that the user can perform relevant configuration operations through the target operation page. The above iframe (inline frame) refers to a tag in HTML (HyperText Markup Language) used to embed a web page into another web page. It can display the content from other pages in one page. In a web page, use <iframe>Tags can embed a web page in another web page to achieve interconnection between web pages.
[0064] The above embodiments enable developers, testers and other users to directly perform configuration operations in the continuous integration and continuous delivery platform, such as adding configuration information to the test sheet and binding the configuration information to the test sheet, querying the configuration information details, etc. Developers and testers do not need to switch between multiple systems, reducing manual operation steps, reducing the workload of users, and reducing the error rate. In addition, by integrating the configuration management system into the platform through iframe, the integration process of the platform and the configuration management system can be simplified, reducing the complexity of scripts and API calls.
[0065] In some embodiments, when the operation type corresponding to the configuration operation button is a new configuration, the target operation page is a new configuration page; accordingly, after the new configuration page is nested and displayed in the test submission form page, the method also includes: receiving a configuration identifier returned by the configuration management system; the configuration identifier is a unique identifier generated by the configuration management system for the new configuration information configured by the user through the new configuration page; establishing an association between the configuration identifier and the test submission form identifier related to the test submission form page; requesting the configuration management system to obtain the configuration information corresponding to the configuration identifier, extracting the configuration summary information from the configuration information, and displaying it in the test submission form page.
[0066] After the platform displays the new page of the test order to the developer, the developer can create the test order through the new page of the test order, and fill in the test order related information, such as the basic information of the code to be tested and the configuration information. When the developer fills in the configuration information, it is necessary to enter the new configuration page of the configuration management system through the entrance of the new configuration page in the new page of the test order (for example, the [Add] button), and then configure the new configuration information through the new configuration page. After completing the configuration, the configuration management system will generate a unique configuration identifier (such as a configuration key) for the new configuration information, and establish an association relationship between the new configuration information and the configuration identifier. The configuration management system will also return the configuration identifier to the platform. After the platform receives the configuration identifier, it will establish an association relationship between the configuration identifier and the test order identifier of the relevant test order. In order to facilitate the developer to understand the configuration information currently configured for the test order, the platform can request the configuration management system to obtain the configuration information corresponding to the configuration identifier, so that the platform can display the configuration information or the summary information of the configuration information in the new page of the test order. The summary information of the configuration information can be extracted from the configuration information based on the configuration object metadata pre-defined by the administrator. For example, the configuration object metadata includes fields such as configuration identification, configuration description and configuration status. Then, the configuration identification information, configuration description information and configuration status information can be extracted from the configuration information as summary information and displayed.
[0067] In some embodiments, when the platform displays the test submission form page, the method also includes: obtaining the test submission form identifier; detecting whether the test submission form identifier has an associated configuration identifier; if so, requesting the configuration management system to obtain the configuration information corresponding to each configuration identifier currently associated with the test submission form identifier; extracting configuration summary information from each configuration information according to the configuration object metadata pre-defined by the administrator; the configuration summary information includes the configuration identifier, configuration description and configuration status; and displaying all the extracted configuration summary information on the test submission form page.
[0068] When the test order page displayed by the platform is the test order details page, in order to facilitate users to understand the configuration information added to the relevant test order, the platform will obtain the relevant test order identifier (i.e., the test order identifier of the test order that the user wants to view, such as the test order ID) when loading the test order details page, and query the configuration identifier associated with the test order identifier based on the association relationship between the pre-stored test order identifier and the configuration identifier. If the configuration identifier associated with the test order identifier can be queried, then request the configuration management system to obtain the configuration information corresponding to each configuration identifier found, and then extract the summary information (i.e., configuration summary information) from each configuration information, and display all the extracted configuration summary information in the test order details page.
[0069] Furthermore, before extracting the configuration summary information from each configuration information according to the configuration object metadata pre-defined by the administrator, the method also includes: using a data converter to convert the format of each configuration information to convert the configuration format of all configuration information into a pre-defined unified display format.
[0070] A configuration management system usually has a variety of configuration information. Different configuration information added by the user for the test request form may correspond to different configuration types, and there are differences between the configuration formats of different configuration information. In this embodiment, the developer develops a data converter in advance according to the various configuration information formats of the configuration management system. Then, after requesting the configuration information from the configuration management system, the platform can use the data converter to convert the format of the configuration information into a unified display format, and then extract summary information from the configuration information in the unified format. This embodiment unifies the formats of various configuration information, which can make the display effect of the configuration information more neat and standardized, and is convenient for users to read and understand. In addition, the unified format can also reduce the difficulty of managing various configuration information, and can reduce errors and confusion caused by inconsistent formats.
[0071] In some embodiments, the test submission form page includes multiple tab pages corresponding to multiple preset configuration types; accordingly, the operation of displaying all the extracted configuration summary information in the test submission form page includes: determining the configuration type corresponding to each configuration summary information; displaying each configuration summary information in a tab page corresponding to the same configuration type as the configuration summary information.
[0072] In the present embodiment, developers develop multiple tab pages (i.e., Tab pages) in advance in the single page of the test report according to the user's understanding requirements for configuration information and / or the types of configuration information of the configuration management system. When displaying the summary information of the configuration information (i.e., configuration summary information), the summary information of the configuration information of the same configuration type is displayed in the same tab page, and the configuration information of different configuration types is displayed in different tab pages. It should be noted that the number and specific definition of the configuration type are set by the developer according to the actual situation. For example, the configuration type can be set according to one or more aspects such as the functional purpose, management level, and usage scenario corresponding to the configuration information, and the present embodiment does not specifically limit it. In some exemplary embodiments, the configuration type of the configuration information may include [system configuration], [simple business configuration], [dispatching center], and [database script]. In the present embodiment, the summary information of the configuration information is grouped into different tab pages according to the type, so that the configuration management can be made more efficient and orderly, and the user experience is improved at the same time.
[0073] In some embodiments, when displaying the configuration summary information in the test submission form page, the method also includes: displaying the configuration operation button corresponding to each configuration summary information according to the correspondence between the configuration status and the operation button pre-defined by the administrator and the configuration status of each configuration summary information; the correspondence between the configuration status and the operation button includes the configuration operation buttons corresponding to the preset multiple configuration statuses.
[0074] There are multiple configuration states of configuration information, and different configuration states correspond to different configuration operation buttons, which means that for configuration information in different configuration states, the configuration operations that users can perform are different. The specific types and quantities of configuration states can be defined by the administrator according to actual needs, and this embodiment does not make any special restrictions.
[0075] In some examples, the configuration status of the configuration information includes [Draft], [To be submitted], [Under review], and [Effective], and the operation buttons corresponding to each status are as follows:
[0076] The operation buttons corresponding to the [Draft] state are: [Submit] and [Cancel];
[0077] The operation buttons corresponding to the [Submit] status are: [Approve] and [Cancel];
[0078] The operation buttons corresponding to the [Approving] status are: [Approved] and [Approved Rejected];
[0079] The operation buttons corresponding to the [Effective] status are [Disable] and [Change].
[0080] The platform displays the configuration summary information in the display test submission page, obtains the configuration status in each configuration summary information, and then queries the corresponding relationship between the configuration status and the operation button to determine the operation button corresponding to each configuration summary information and display it. For example, if the configuration status of a certain configuration summary information is [effective], it is necessary to display the two operation buttons [disable] and [change] when displaying the configuration summary information.
[0081] Accordingly, in some embodiments, after the target operation page is nested and displayed in the test submission form page according to the target page address, the method also includes: when the configuration status of any configuration summary information changes, the content of the configuration summary information and the configuration operation button are updated accordingly in the test submission form page.
[0082] After displaying the operation buttons corresponding to each configuration summary information, the platform will monitor whether the configuration status of each configuration summary information has changed. If it is determined that the configuration status of any configuration summary information has changed, then the operation button corresponding to the latest configuration status of the configuration summary information is updated in the test single page. For example, the configuration status in the configuration summary information of a certain configuration information is [under review], and the platform displays its corresponding operation buttons [approved] and [approved rejected] accordingly. If the user clicks [approved], the instruction instruction of approval will be triggered, and the platform will send the instruction to the configuration management system. The configuration management system responds to the instruction and modifies the configuration status of the configuration information to [effective], and returns feedback information to the platform. After receiving the feedback information, the platform modifies the configuration status of the configuration information accordingly, and updates the operation buttons of the configuration summary information to [disable] and [change]. This embodiment can automatically realize the circulation of the configuration status, and update the relevant visual elements in the test single page, so that the user can understand the latest status of the configuration information in a timely manner.
[0083] It should be noted that for each step included in the application configuration operation method provided in any of the above embodiments, unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of these steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
[0084] Based on the same inventive concept, the present application also provides an application configuration operation device. In some embodiments, the device is applied to a continuous integration and continuous delivery platform, as shown in Figure 3. The device includes the following modules:
[0085] The first page display module 110 is used to display the test submission form page, and the test submission form page includes at least one configuration operation button;
[0086] The page address acquisition module 120 is used to, when detecting a click operation of the user on the configuration operation button, obtain the corresponding page address from the operation page address data as the target page address according to the operation type corresponding to the configuration operation button; the operation page address data includes the page addresses of multiple operation pages of the configuration management system predefined by the administrator; the multiple operation pages include a new configuration page and a configuration details page;
[0087] The second page display module 130 is used to nest and display the target operation page in the test submission form page according to the target page address for the user to perform configuration operations.
[0088] In some embodiments, when the first page display module 110 displays the test request form page, it is also used to:
[0089] Obtain the test sheet identification;
[0090] Detect whether the test sheet identification has an associated configuration identification;
[0091] If yes, request the configuration management system to obtain the configuration information corresponding to each configuration identifier currently associated with the test order identifier;
[0092] extracting configuration summary information from each configuration information according to the configuration object metadata predefined by the administrator; the configuration summary information includes a configuration identifier, a configuration description and a configuration status;
[0093] All extracted configuration summary information is displayed on the test submission form page.
[0094] In some embodiments, before extracting configuration summary information from each configuration information according to the configuration object metadata pre-defined by the administrator, the first page display module 110 is also used to use a data converter to convert the format of each configuration information so as to convert the configuration format of all configuration information into a pre-defined unified display format.
[0095] In some embodiments, the test submission form page includes multiple tab pages corresponding one by one to multiple preset configuration types; the first page display module 110 displays the operation of all extracted configuration summary information in the test submission form page, including: determining the configuration type corresponding to each configuration summary information; displaying each configuration summary information in a tab page corresponding to the same configuration type as the configuration summary information.
[0096] In some embodiments, when the first page display module 110 displays the configuration summary information in the test submission form page, it is also used to display the configuration operation button corresponding to each configuration summary information according to the correspondence between the configuration status and the operation button pre-defined by the administrator and the configuration status of each configuration summary information; the correspondence between the configuration status and the operation button includes the configuration operation buttons corresponding to multiple preset configuration states.
[0097] In some embodiments, after the second page display module 130 displays the target operation page in the test submission form page according to the target page address, it is also used to update the content of the configuration summary information and the configuration operation button accordingly in the test submission form page when the configuration status of any configuration summary information changes.
[0098] In some embodiments, when the operation type corresponding to the configuration operation button is new configuration, the target operation page is the new configuration page; correspondingly, after the second page display module 130 nestedly displays the new configuration page in the test requisition page, it is further configured to: receive a configuration identifier returned by the configuration management system; the configuration identifier is a unique identifier generated by the configuration management system for the new configuration information configured by the user through the new configuration page; establish an association relationship between the configuration identifier and the test requisition identifier associated with the test requisition page; request the configuration management system to obtain the configuration information corresponding to the configuration identifier, extract the configuration summary information from the configuration information, and display it in the test requisition page.
[0099] For the specific limitations of the application configuration operation device, reference can be made to the limitations on the application configuration operation method in the foregoing text, which will not be elaborated here. Each module in the foregoing application configuration operation device can be implemented in whole or in part by software, hardware, and their combination. The foregoing modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
[0100] In some embodiments of the present application, a computer device is provided, and its internal structure diagram can be as shown in Figure 4. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the operation page address data, configuration object metadata, configuration status, and the correspondence relationship of operation buttons predefined by the administrator. For the specific stored data, reference can also be made to the limitations in the foregoing method embodiments. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements an application configuration operation method.
[0101] Those skilled in the art can understand that the structure shown in Figure 4 is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0102] This embodiment also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the application configuration operation method provided in any of the above embodiments can be implemented.
[0103] This application also provides a computer-readable storage medium. In some embodiments, a computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps of the application configuration operation method provided in any of the above embodiments are implemented.
[0104] In the above embodiments of this application, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0105] Those of ordinary skill in the art can understand that to implement all or part of the processes in the above method embodiments, it can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above method embodiments. Among them, any reference to the memory, storage, database, or other media used in the various embodiments provided in this application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory.By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus), direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0106] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above -described embodiments only express several implementation methods of the present application, and the description is more specific and detailed, but it cannot be interpreted as limiting the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the present application's concept, some deformations and improvements can also be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application patent should be based on the attached claims.< / iframe>
Claims
1. An application configuration operation method, It is characterized in that The method is applied to a continuous integration and continuous delivery platform; the method comprises: Displaying a test submission form page, wherein the test submission form page includes at least one configuration operation button; When a user click operation on the configuration operation button is detected, a corresponding page address is obtained from the operation page address data as a target page address according to the operation type corresponding to the configuration operation button; the operation page address data includes page addresses of multiple operation pages of the configuration management system predefined by an administrator; the multiple operation pages include a newly added configuration page and a configuration details page; The target operation page is nested and displayed in the test submission form page according to the target page address, so that the user can perform configuration operations.
2. The method according to claim 1, It is characterized in that When displaying the test submission form page, the method further includes: Get the test order ID; Detecting whether the test submission form identifier has an associated configuration identifier; If yes, request the configuration management system to obtain configuration information corresponding to each configuration identifier currently associated with the test submission identifier; Extracting configuration summary information from each of the configuration information according to the configuration object metadata predefined by the administrator; the configuration summary information includes a configuration identifier, a configuration description and a configuration status; All the extracted configuration summary information is displayed on the test submission form page.
3. The method according to claim 2, It is characterized in that Before extracting configuration summary information from each of the configuration information according to the configuration object metadata predefined by the administrator, the method further includes: A data converter is used to convert the format of each of the configuration information, so as to convert the configuration format of all the configuration information into a predefined unified display format.
4. The method according to claim 2, It is characterized in that The test submission form page includes multiple tab pages corresponding to multiple preset configuration types; The operation of displaying all the extracted configuration summary information on the test request form page includes: Determine the configuration type corresponding to each of the configuration summary information; Each of the configuration summary information is displayed in a tab page corresponding to the same configuration type as the configuration summary information.
5. The method according to claim 2, It is characterized in that When displaying the configuration summary information on the test submission form page, the method further includes: The configuration operation button corresponding to each configuration summary information is displayed according to the correspondence between the configuration status and the operation button pre-defined by the administrator and the configuration status of each configuration summary information; the correspondence between the configuration status and the operation button includes configuration operation buttons corresponding to multiple preset configuration statuses.
6. The method according to claim 5, It is characterized in that After embedding and displaying the target operation page in the test submission form page according to the target page address, the method further includes: When the configuration status of any of the configuration summary information changes, the content of the configuration summary information and the configuration operation button are updated accordingly in the test submission form page.
7. The method according to claim 1, It is characterized in that When the operation type corresponding to the configuration operation button is new configuration, the target operation page is a new configuration page; After displaying the newly created configuration page in a nested manner in the test submission form page, the method further includes: Receive a configuration identifier returned by the configuration management system; the configuration identifier is a unique identifier generated by the configuration management system for new configuration information configured by the user through the new configuration page; Establishing an association relationship between the configuration identifier and a test order identifier related to the test order page; The configuration management system is requested to obtain configuration information corresponding to the configuration identifier, configuration summary information is extracted from the configuration information, and is displayed on the test request form page.
8. An application configuration operation device, It is characterized in that The device is applied to a continuous integration and continuous delivery platform; the device comprises: A first page display module is used to display a test submission form page, wherein the test submission form page includes at least one configuration operation button; A page address acquisition module, for acquiring a corresponding page address from the operation page address data as a target page address when a user clicks the configuration operation button and the operation type corresponding to the configuration operation button is detected; the operation page address data includes page addresses of multiple operation pages of the configuration management system predefined by an administrator; The second page display module is used to embed and display the target operation page in the test submission form page according to the target page address, so that the user can perform configuration operations.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
