Variable configuration file processing method and device, storage medium and electronic equipment

By conducting verification and approval before modifying the variable configuration files in the application source code library, and comparing the difference information of the variable configuration files, the problem of low reliability caused by direct modification by developers is solved, and the reliability of the variable configuration files in the source code library is improved. and management efficiency.

CN118656117APending Publication Date: 2024-09-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410812331.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the development team, developers can directly modify the variable configuration files in the application source code library, resulting in low reliability of the variable configuration files in the source code library and the lack of effective management and approval processes.

Method used

By obtaining the approved configuration file before receiving the variable configuration file, comparing the difference information, and determining the file processing information to decide whether to allow uploading to the source code library, the consistency and controllability of the variable configuration file are ensured.

Benefits of technology

It improves the reliability of variable configuration files in the source code library, avoids the submission of variable configuration files without approval, and realizes complete control and management of variable configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656117A
    Figure CN118656117A
Patent Text Reader

Abstract

The invention discloses a variable configuration file processing method and device, a storage medium and electronic equipment. The method relates to the field of financial science and technology or other fields, and comprises the steps that under the condition that a first variable configuration file sent by a first object is received, a second variable configuration file corresponding to the first object is obtained, and the first variable configuration file is a variable configuration file to be uploaded to a source code library of a target application; the second variable configuration file is a variable configuration file that the first object is approved; according to difference information between the first variable configuration file and the second variable configuration file, file processing information is determined, and the file processing information represents whether the first variable configuration file is allowed to be uploaded to a source code library or not; and processing the first variable configuration file according to the file processing information. The technical problem that the reliability of the variable configuration file in the source code library is low due to the fact that a developer can directly modify the variable configuration file in the application source code library in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology or other fields, and in particular, to a method, device, storage medium and electronic device for processing a variable configuration file. Background Art

[0002] As enterprise applications continue to grow and businesses become more complex, the code base and the number of variables involved in application development also grow. Variable management is crucial. Variable classification, standardized naming, and version control have a direct impact on code maintainability and stability. However, variable management is often overlooked or mismanaged in many development teams.

[0003] Figure 1 is a schematic diagram of an optional processing variable configuration file in the related art, such as Figure 1 As shown, in related technologies, developers directly pull code from the code repository and modify variable configuration files during the code submission phase, and then submit the modified variable configuration files directly to the code repository. In this variable management process, variable configuration file submission is completed entirely independently by developers. Due to the varying maturity levels of development teams, this leads to low reliability of variable configuration files in the source code repository.

[0004] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0005] Embodiments of the present invention provide a method, device, storage medium, and electronic device for processing a variable configuration file, to at least solve the technical problem in related technologies that developers can directly modify the variable configuration file in the application source code library, resulting in low reliability of the variable configuration file in the source code library.

[0006] According to one aspect of an embodiment of the present invention, a method for processing a variable configuration file is provided, comprising: upon receiving a first variable configuration file sent by a first object, obtaining a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code repository to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object; determining file processing information based on difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether the first variable configuration file is allowed to be uploaded to the source code repository; and processing the first variable configuration file based on the file processing information.

[0007] Furthermore, the method for processing the variable configuration file also includes: determining whether the file contents of the first variable configuration file and the second variable configuration file are the same; if the file contents are different, determining difference information, and determining whether the difference information belongs to target information, wherein the target information refers to difference information that is allowed to exist between the first variable configuration file and the second variable configuration file; if the difference information belongs to the target information, determining that the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library; if the difference information does not belong to the target information, determining that the file processing information indicates that the first variable configuration file is prohibited from being uploaded to the source code library.

[0008] Furthermore, the method for processing the variable configuration file further includes: after determining whether the file contents of the first variable configuration file and the second variable configuration file are identical, if the file contents are identical, determining that the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library.

[0009] Furthermore, the method for processing the variable configuration file also includes: obtaining the variable value of the target variable in the second variable configuration file, determining the variable value range of the target variable based on the variable value of the target variable and the preset variable floating range, and determining the variable value range of the target variable as the target information, wherein the target variable is the updated variable; or, determining the allowed difference information set by the second object for the second variable configuration file as the target information, wherein the second object is the object that approves the variables in the second variable configuration file.

[0010] Furthermore, the method for processing the variable configuration file also includes: before obtaining the second variable configuration file corresponding to the first object, receiving variable update information of the first object, wherein the variable update information includes update information of variables in the source code library; determining the second object based on the object information of the first object and the library information of the source code library, and sending the variable update information to the second object, wherein the variable update information is approved by the second object; and generating a second variable configuration file based on the variable update information when it is detected that the variable update information is approved.

[0011] Furthermore, the method for processing a variable configuration file also includes: before receiving variable update information of the first object, determining a file stored in a source code library; determining a file of a target format from all files stored in the source code library to obtain a plurality of candidate files; determining a variable configuration file from the plurality of candidate files based on the name of the candidate file and / or the file content of the candidate file; and displaying variable information of the variables in the variable configuration file to the first object through a human-computer interaction interface.

[0012] Furthermore, the method for processing the variable configuration file also includes: when the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library, after processing the first variable configuration file according to the file processing information, determining a third object for verifying the first variable configuration file based on the object information of the first object and the library information of the source code library; and sending variable verification information to the third object to remind the third object to verify the first variable configuration file in the source code library.

[0013] According to another aspect of an embodiment of the present invention, a device for processing a variable configuration file is further provided, including: an acquisition module, configured to, upon receiving a first variable configuration file sent by a first object, acquire a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code repository to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object; a first determination module, configured to determine file processing information based on difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether the first variable configuration file is allowed to be uploaded to the source code repository; and a first processing module, configured to process the first variable configuration file based on the file processing information.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned method for processing a variable configuration file when running.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is also provided, which includes one or more processors; a memory for storing one or more programs, which enables the one or more processors to run the programs when the one or more programs are executed by the one or more processors, wherein the program is configured to execute the above-mentioned method for processing the variable configuration file at runtime.

[0016] In an embodiment of the present invention, a first variable configuration file sent by a first object is verified before modifying the variable configuration file in the application source code repository. Upon receiving the first variable configuration file sent by the first object, a second variable configuration file corresponding to the first object is obtained. Then, based on the difference information between the first and second variable configuration files, file processing information is determined, and the first variable configuration file is processed according to the file processing information. The first variable configuration file is the variable configuration file to be uploaded to the source code repository of the target application, the second variable configuration file is the variable configuration file approved by the first object, and the file processing information indicates whether the first variable configuration file is allowed to be uploaded to the source code repository.

[0017] In the above process, by obtaining the second variable configuration file corresponding to the first object when receiving the first variable configuration file sent by the first object, it is achieved that when the first object expects to modify the variable configuration file in the source code library, the second variable configuration file allowed by the first object to be uploaded to the source code library is obtained. By determining the file processing information based on the difference information between the first variable configuration file and the second variable configuration file, it is achieved that whether the first variable configuration file meets the conditions for uploading to the source code library is judged based on the consistency between the second variable configuration file and the first variable configuration file, thereby ensuring that the changes of the variable configuration file in the source code library are fully controllable, avoiding the first object from submitting unapproved variable configuration files, and improving the reliability of the variable configuration files in the source code library.

[0018] It can be seen that the solution provided by the present application achieves the purpose of verifying the first variable configuration file sent by the first object before modifying the variable configuration file in the application source code library, thereby achieving the technical effect of improving the reliability of the variable configuration file in the source code library, and further solving the technical problem in the related technology that developers can directly modify the variable configuration file in the application source code library, resulting in low reliability of the variable configuration file in the source code library. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 is a schematic diagram of an optional processing variable configuration file in the related art;

[0021] Figure 2 This is a flow chart of an optional method for processing a variable configuration file according to an embodiment of the present invention. Figure 1 ;

[0022] Figure 3 This is a flow chart of an optional method for processing a variable configuration file according to an embodiment of the present invention. Figure 2 ;

[0023] Figure 4 is an optional flow chart for displaying variable information according to an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of an optional variable configuration file processing device according to an embodiment of the present invention;

[0025] Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] It should be noted that the variable configuration file processing method, device, storage medium and electronic device disclosed in the present invention can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the variable configuration file processing method, device, storage medium and electronic device disclosed in the present invention is not limited.

[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0030] Example 1

[0031] According to an embodiment of the present invention, an embodiment of a method for processing a variable configuration file is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0032] Figure 2This is a flow chart of an optional method for processing a variable configuration file according to an embodiment of the present invention. Figure 1 ,like Figure 2 As shown, the method includes the following steps:

[0033] Step S201: Upon receiving a first variable configuration file sent by a first object, obtain a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code library to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object.

[0034] Optionally, electronic devices, application systems, servers and other devices can be used as the execution subject of this application. In this embodiment, the target processing system is used as the execution subject to execute the method for processing the variable configuration file.

[0035] Optionally, the target application may vary depending on the specific application scenario. In a financial scenario, the target application could be a payment application, for example. The source code repository stores the source code files and variable configuration files required for the target application to run. The variable configuration file is a file that stores the configuration of variables required by the source code. The file format and storage path may vary between development teams. The variable configuration file stores information such as the variable name, value, and description, and can be in a table format.

[0036] Optionally, the first object may be a developer. In some embodiments, Figure 3 This is a flow chart of an optional method for processing a variable configuration file according to an embodiment of the present invention. Figure 2 ,like Figure 3 As shown, in the code submission stage, the first variable configuration file can be obtained by the first object updating the variable configuration file in the source code library of the target application, that is, the first variable configuration file is used to replace the variable configuration file to be updated in the source code library. The updating method includes but is not limited to adding variables, deleting variables, modifying variable information of variables, etc. The variable information includes but is not limited to variable name, variable value, variable description and other information.

[0037] Optionally, in this embodiment, before the developer requests to upload the first variable configuration file to the source code library, he or she needs to go through the registration and approval stage. Figure 3 As shown, the developer requests the relevant approvers (such as Figure 3 The architect and operation and maintenance personnel) approve the variable update information, so that when the variable update information is approved, the target processing system generates a second variable configuration file corresponding to the variable update information.

[0038] After the second variable configuration file is generated, the first object may determine the timing of generating the first variable configuration file according to actual needs.

[0039] Step S202 : determining file processing information based on the difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether uploading the first variable configuration file to the source code library is allowed.

[0040] Since the first object may upload an unapproved variable configuration file to the source code repository of the target application, in this embodiment, file processing information is determined based on the difference information between the first variable configuration file and the second variable configuration file to avoid indiscriminately uploading the first variable configuration file to the source code repository, which may lead to file upload errors, variable information errors, etc.

[0041] Optionally, the target processing system may match the first object to a second variable configuration file that was previously approved based on the object information of the first object. The object information may refer to the object identifier of the first object. Optionally, when the first object sends the first variable configuration file to the target processing system, it may also send the library information of the source code library to the target processing system. The target processing system may also match the second variable configuration file based on the library information and the file information of the first variable configuration file. The library information includes the identifier of the source code library, and the file information includes the file identifier of the variable configuration file. For example, the target processing system may record the library information and file information corresponding to the second variable configuration file, thereby determining the variable configuration file with the same library information and file information as the first variable configuration file among the approved variable configuration files as the second variable configuration file.

[0042] like Figure 3 As shown, during the code submission phase, after determining the second variable configuration file, the target processing system may determine file processing information based on the difference information between the first variable configuration file and the second variable configuration file. For example, if there is no difference information between the first variable configuration file and the second variable configuration file, the file processing information is determined to indicate that the first variable configuration file is allowed to be uploaded to the source code repository. If there is a difference information between the first variable configuration file and the second variable configuration file, the file processing information is determined to indicate that the first variable configuration file is prohibited from being uploaded to the source code repository.

[0043] For another example, when there is difference information between the first variable configuration file and the second variable configuration file, it is determined whether the difference information is allowed to exist. If so, it is determined that the file processing information representation allows the first variable configuration file to be uploaded to the source code library. If not, it is determined that the file processing information representation prohibits the first variable configuration file from being uploaded to the source code library.

[0044] Step S203: Process the first variable configuration file according to the file processing information.

[0045] Optionally, if the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library, then Figure 3 As shown, the first variable configuration file is uploaded to the source code library; if the file processing information indicates that uploading the first variable configuration file to the source code library is prohibited, the first variable configuration file can be discarded.

[0046] Based on the scheme defined in steps S201 to S203 above, it can be seen that in this embodiment of the present invention, before modifying the variable configuration file in the application source code repository, a first variable configuration file sent by the first object is verified. Upon receiving the first variable configuration file sent by the first object, a second variable configuration file corresponding to the first object is obtained. Then, based on the difference information between the first and second variable configuration files, file processing information is determined, and the first variable configuration file is processed according to the file processing information. The first variable configuration file is the variable configuration file to be uploaded to the source code repository of the target application, the second variable configuration file is the variable configuration file approved by the first object, and the file processing information indicates whether the first variable configuration file is allowed to be uploaded to the source code repository.

[0047] It is easy to notice that in the above process, by obtaining the second variable configuration file corresponding to the first object when receiving the first variable configuration file sent by the first object, it is achieved that when the first object expects to modify the variable configuration file in the source code library, the second variable configuration file that the first object allows to be uploaded to the source code library is obtained, and by determining the file processing information based on the difference information between the first variable configuration file and the second variable configuration file, it is achieved that whether the first variable configuration file meets the conditions for uploading to the source code library is judged based on the consistency between the second variable configuration file and the first variable configuration file, thereby ensuring that the changes of the variable configuration file in the source code library are fully controllable, avoiding the first object from submitting unapproved variable configuration files, and improving the reliability of the variable configuration files in the source code library.

[0048] It can be seen that the solution provided by the present application achieves the purpose of verifying the first variable configuration file sent by the first object before modifying the variable configuration file in the application source code library, thereby achieving the technical effect of improving the reliability of the variable configuration file in the source code library, and further solving the technical problem in the related technology that developers can directly modify the variable configuration file in the application source code library, resulting in low reliability of the variable configuration file in the source code library.

[0049] In an optional embodiment, when determining file processing information based on difference information between the first variable configuration file and the second variable configuration file, the target processing system may determine whether the file contents of the first variable configuration file and the second variable configuration file are identical. If the file contents are different, the target processing system may determine difference information and determine whether the difference information belongs to target information. If the difference information belongs to the target information, the target processing system may determine that the file processing information indicates that the first variable configuration file is permitted to be uploaded to the source code repository. If the difference information does not belong to the target information, the target processing system may determine that the file processing information indicates that the first variable configuration file is prohibited from being uploaded to the source code repository. The target information refers to the difference information that is permitted to exist between the first variable configuration file and the second variable configuration file.

[0050] In order to quickly and accurately determine whether the file contents of the first variable configuration file and the second variable configuration file are the same, the MD5 algorithm can be used to extract the hash values ​​of the two variable configuration files for quick comparison. If the hash values ​​are consistent, it is determined that the contents of the two variable configuration files are consistent. Otherwise, it is determined that the contents of the two variable configuration files are inconsistent.

[0051] After the first party submits the file for approval, they will continue to develop the variables and may need to modify the variable configuration file. Therefore, the first variable configuration file sent by the first party may differ from the second variable configuration file. Depending on the actual application requirements, some differences may be acceptable. In other words, the first variable configuration file does not need to be completely identical to the second variable configuration file in order to allow the first variable configuration file to be uploaded to the source code repository.

[0052] Therefore, in this embodiment, the target information can be set in advance, so that when the difference information belongs to the target information, it is determined that the file processing information representation allows the first variable configuration file to be uploaded to the source code library; when the difference information does not belong to the target information, it is determined that the file processing information representation prohibits the first variable configuration file from being uploaded to the source code library.

[0053] Optionally, the difference information refers to the difference between the first variable configuration file and the second variable configuration file. For example, if the first variable configuration file contains "Variable A: 13; Variable B: 11" and the second variable configuration file contains "Variable A: 12; Variable B: 11," the difference information is "Variable A: 13." If the target information is "Variable A: 10-15," the difference information "Variable A: 13" belongs to the target information. If the target information is "Variable A: 10-12," the difference information "Variable A: 13" does not belong to the target information.

[0054] It should be noted that, in the above process, by determining the file processing information based on the relationship between the difference information and the target information, the first variable configuration file can be allowed to be uploaded to the source code library when it is changed within a preset range relative to the second variable configuration file, thereby improving the flexibility of modifying the variable configuration file in the source code library in this application, and avoiding the problem that multiple approvals may occur when only files that are completely consistent can be uploaded, thereby affecting the efficiency of updating the variable configuration file.

[0055] In an optional embodiment, after determining whether the file contents of the first variable configuration file and the second variable configuration file are identical, the target processing system may determine that the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library if the file contents are identical.

[0056] It should be noted that the above process ensures that changes to the variable configuration files in the source code library are fully controllable, preventing the first object from submitting unapproved variable configuration files, thereby improving the reliability of the variable configuration files in the source code library.

[0057] In an optional embodiment, the target information is determined by: obtaining the variable value of the target variable in the second variable configuration file, determining the variable value range of the target variable based on the variable value of the target variable and the preset variable floating range, and determining the variable value range of the target variable as the target information, wherein the target variable is the updated variable; or, determining the allowed difference information set by the second object for the second variable configuration file as the target information, wherein the second object is the object that approves the variables in the second variable configuration file.

[0058] Optionally, the second variable configuration file is obtained by the first object updating the variable configuration file in the source code library of the target application. The second variable configuration file is generated based on the variable update information of the first object, and the target variable in the second variable configuration file is the variable updated in the variable update information.

[0059] Optionally, if a preset variable floating range exists in the target processing system, the variable value range of the target variable can be determined based on the preset variable floating range, thereby determining the variable value range of the target variable as the target information. For example, assuming the variable floating range is "-1 to +2" and the variable value of the target variable is 3, then the variable value range of the target variable is "2 to 5". For another example, assuming the variable floating range is "-3 to +1" and the variable value of the target variable is 6, then the variable value range of the target variable is "3 to 7". Different variable value ranges can be preset for different variables.

[0060] Optionally, in this embodiment, the allowed difference information set by the second object for the second variable configuration file may be determined as the target information. For example, the allowed difference information set by the second object for the second variable configuration file may include "the name of variable A can be one of the following: A, A'" and "the variable value range of variable A is 2 to 3."

[0061] It should be noted that, through the above process, accurate determination of target information is achieved, thereby further improving the reliability of the variable configuration file in the source code library.

[0062] In an optional embodiment, before obtaining the second variable configuration file corresponding to the first object, the target processing system may receive variable update information for the first object, determine the second object based on the object information of the first object and the library information of the source code library, and send the variable update information to the second object. Upon detecting that the variable update information has been approved, the target processing system generates the second variable configuration file based on the variable update information. The variable update information includes update information for variables in the source code library, and the variable update information is approved by the second object.

[0063] Optional, such as Figure 3 As shown, the target processing system can automatically load the source code library and identify the variable configuration file in the source code library, thereby loading the existing variables in the identified variable configuration file into the human-computer interaction interface. The developer (i.e., the first object) can send variable update information through the human-computer interaction interface. For example, the developer can delete or modify existing variables in the target processing system, or register new variables in the target processing system, thereby generating variable update information.

[0064] The target processing system can then determine the second object based on the object information of the first object and the library information of the source code library. The object information can refer to an object identifier, and the library information can refer to a library identifier. The target processing system has a preset correspondence between the object identifier, the library identifier, and the second object, and thus determines the second object based on this correspondence. The second object can be an architect, an operations and maintenance personnel, or the like.

[0065] After determining the second object, such as Figure 3 As shown, the target processing system can send variable update information to the second object, which then approves the variable update information and returns the approval result to the target processing system. The approval result indicates whether the variable update information has been approved. For example, the approval is first completed by the architect in the development team. If approved, the approval is transferred to the corresponding operation and maintenance personnel for approval. Once the operation and maintenance personnel complete the approval, the operation and maintenance personnel upload the approval result to the target processing system.

[0066] Optional, such as Figure 3As shown, upon detecting that the variable update information has been approved, the target processing system can generate a second variable configuration file based on the variable update information. For example, the target processing system can determine the variable configuration file to which the variable updated by the first object belongs, obtain a third variable configuration file, and then modify the third variable configuration file based on the variable update information to obtain a second variable configuration file. If the first object is a newly added variable, when adding the new variable, the first object needs to specify the variable configuration file that will record the newly added variable, thereby determining the variable configuration file that will record the newly added variable as the third variable configuration file.

[0067] Optionally, if it is detected that the variable update information has not been approved, generation of the second variable configuration file is prohibited.

[0068] It's important to note that by sending variable update information to a second object for approval, variable accuracy is ensured through human approval, mitigating potential variable issues. Furthermore, by determining the second object based on the first object's object information and the source code repository's library information, variables are precisely matched to the approver, eliminating the need to manually distribute variable update information to approvers and reducing labor costs.

[0069] In an optional embodiment, before receiving the variable update information of the first object, the target processing system may determine the files stored in the source code repository, and then determine the files in the target format from all the files stored in the source code repository to obtain multiple candidate files. Then, based on the names of the candidate files and / or the file contents of the candidate files, the target processing system may determine the variable configuration files from the multiple candidate files, thereby displaying the variable information of the variables in the variable configuration files to the first object through the human-computer interaction interface.

[0070] Optionally, the target processing system may be pre-set with a name list of variable configuration files, thereby determining the variable configuration file from multiple candidate files based on the names in the name list. Optionally, the target processing system may also be pre-set with a variable information format for each variable. The target processing system may load the candidate file to obtain the file content of the candidate file, and then determine whether the format of the file content of the Nth line in the candidate file is the variable information format. If so, the candidate file is determined to be a variable configuration file; otherwise, the candidate file is determined not to be a variable configuration file. Wherein, N is a positive integer.

[0071] Optionally, the target processing system may further combine the above two methods to determine a variable configuration file. For example, if the name of the candidate file belongs to the above-mentioned name list and the format of the first line of file content in the candidate file is the variable information format, the candidate file is determined to be a variable configuration file. Conversely, if the name of the candidate file does not belong to the above-mentioned name list and the format of the first line of file content in the candidate file is not the variable information format, the candidate file is determined not to be a variable configuration file.

[0072] For example, Figure 4 is an optional flow chart showing variable information according to an embodiment of the present invention, such as Figure 5 As shown, the target processing system first identifies the files stored in the source code repository. It then searches through all files in the source code repository for files in the target format, obtaining multiple candidate files. The system then loads the candidate files and determines whether they are variable configuration files based on their content. If so, the variable information for the variables in the variable configuration file is written to the target processing system and displayed through the human-computer interface. If not, the system continues to load the next candidate file for identification if the search is not complete. Once the search is complete, the system stops loading candidate files.

[0073] Optionally, the first object may modify the variable information of the variable displayed in the human-computer interaction interface, so that the target processing system generates variable update information according to the modification operation of the first object.

[0074] It should be noted that, through the above process, the variable configuration file is accurately determined, and then the variable information of the variable is accurately determined, thereby avoiding receiving variable update information that updates unknown variables.

[0075] In an optional embodiment, when the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code repository, after processing the first variable configuration file according to the file processing information, the target processing system may determine a third object for verifying the first variable configuration file based on the object information of the first object and the library information of the source code repository, thereby sending variable verification information to the third object to remind the third object to verify the first variable configuration file in the source code repository.

[0076] Optionally, the object information may refer to an object identifier, and the library information may refer to a library identifier. A correspondence between the object identifier, the library identifier, and the third object is preset in the target processing system, so that the third object can be determined based on the correspondence. The third object may be a tester, an operation and maintenance personnel, etc.

[0077] Optionally, the variable verification information includes at least the file information of the first variable configuration file, for example, the file name of the first variable configuration file, etc. Figure 3 As shown, during the verification phase, the target processing system can send variable verification information to a third party (i.e., the tester or operation and maintenance personnel on the far right of Figure 3) via SMS, phone call, email, etc. After receiving the variable verification information, the third party can perform feasibility verification (also known as performance verification) on the first variable configuration file and, if the verification passes, feedback the verification results to the target processing system.

[0078] Optionally, after obtaining the verification result, the target processing system may feed the verification result back to the first object, so that the first object can determine whether to modify the first variable configuration file in the source code repository based on the received verification result. The verification result indicates whether the first variable configuration file has passed the verification by the third object.

[0079] It should be noted that by automatically sending a verification request to the third object after uploading the first variable configuration file to the source code library, on the one hand, accurate and effective verification of the variables can be achieved, and on the other hand, each object can participate in each stage from variable submission to verification through the target processing system, and the final verification result will also be fed back to the target processing system, thereby fully realizing the online and closed-loop variable management work, and improving the traceability of the variable configuration file and the reliability of processing.

[0080] It can be seen that the solution provided by the present application achieves the purpose of verifying the first variable configuration file sent by the first object before modifying the variable configuration file in the application source code library, thereby achieving the technical effect of improving the reliability of the variable configuration file in the source code library, and further solving the technical problem in the related technology that developers can directly modify the variable configuration file in the application source code library, resulting in low reliability of the variable configuration file in the source code library.

[0081] Example 2

[0082] According to an embodiment of the present invention, an embodiment of a device for processing a variable configuration file is provided, wherein: Figure 5 is a schematic diagram of an optional variable configuration file processing device according to an embodiment of the present invention, such as Figure 5 As shown, the device includes:

[0083] An acquisition module 501 is configured to, upon receiving a first variable configuration file sent by a first object, acquire a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code repository to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object;

[0084] A first determining module 502 is configured to determine file processing information based on difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether uploading the first variable configuration file to the source code repository is allowed;

[0085] The first processing module 503 is configured to process the first variable configuration file according to the file processing information.

[0086] It should be noted that the above-mentioned acquisition module 501, first determination module 502 and first processing module 503 correspond to steps S201 to S203 in the above-mentioned embodiment. The examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

[0087] Optionally, the first determination module 502 also includes: a first judgment submodule, used to determine whether the file contents of the first variable configuration file and the second variable configuration file are the same; a second judgment submodule, used to determine the difference information when the file contents are different, and determine whether the difference information belongs to the target information, wherein the target information refers to the difference information that is allowed to exist between the first variable configuration file and the second variable configuration file; the first determination submodule, used to determine that the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library when the difference information belongs to the target information; and the second determination submodule, used to determine that the file processing information indicates that the first variable configuration file is prohibited from being uploaded to the source code library when the difference information does not belong to the target information.

[0088] Optionally, the variable configuration file processing device further includes: a second determination module, configured to determine, when the file contents are the same, that the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library.

[0089] Optionally, the processing device of the variable configuration file also includes: a third determination module, used to obtain the variable value of the target variable in the second variable configuration file, determine the variable value range of the target variable based on the variable value of the target variable and the preset variable floating range, and determine the variable value range of the target variable as target information, wherein the target variable is the updated variable; or, a fourth determination module, used to determine the allowed difference information set by the second object for the second variable configuration file as target information, wherein the second object is the object that approves the variables in the second variable configuration file.

[0090] Optionally, the variable configuration file processing device further includes: a receiving module for receiving variable update information of a first object, wherein the variable update information includes update information of variables in a source code library; a fifth determination module for determining a second object based on the object information of the first object and the library information of the source code library, and sending the variable update information to the second object, wherein the variable update information is approved by the second object; and a generation module for generating a second variable configuration file based on the variable update information when it is detected that the variable update information is approved.

[0091] Optionally, the variable configuration file processing device also includes: a sixth determination module, used to determine the files stored in the source code library; a seventh determination module, used to determine the files of the target format from all the files stored in the source code library to obtain multiple candidate files; an eighth determination module, used to determine the variable configuration file from the multiple candidate files based on the name of the candidate file and / or the file content of the candidate file; and a display module, used to display variable information of the variables in the variable configuration file to the first object through the human-computer interaction interface.

[0092] Optionally, the variable configuration file processing device also includes: a ninth determination module, used to determine a third object for verifying the first variable configuration file based on the object information of the first object and the library information of the source code library; and a second processing module, used to send variable verification information to the third object to remind the third object to verify the first variable configuration file in the source code library.

[0093] Example 3

[0094] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned method for processing a variable configuration file when running.

[0095] Example 4

[0096] According to another aspect of an embodiment of the present invention, an electronic device is provided, wherein: Figure 6 is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as Figure 6 As shown, the electronic device includes one or more processors; a memory for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to run the programs, wherein the programs are configured to execute the above-mentioned method for processing the variable configuration file at runtime.

[0097] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0098] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0100] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.

[0101] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.

[0103] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for processing a variable configuration file, characterized in that: include: Upon receiving a first variable configuration file sent by a first object, obtaining a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code library to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object; Determining file processing information according to difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether uploading the first variable configuration file to the source code library is allowed; The first variable configuration file is processed according to the file processing information.

2. The method according to claim 1, characterized in that Determining file processing information according to difference information between the first variable configuration file and the second variable configuration file includes: Determine whether the file contents of the first variable configuration file and the second variable configuration file are the same; In the case where the file contents are different, determining the difference information, and judging whether the difference information belongs to target information, wherein the target information refers to the difference information allowed to exist between the first variable configuration file and the second variable configuration file; In a case where the difference information belongs to the target information, determining that the file processing information indicates that uploading the first variable configuration file to the source code library is allowed; In a case where the difference information does not belong to the target information, it is determined that the file processing information indicates that uploading the first variable configuration file to the source code library is prohibited.

3. The method according to claim 2, characterized in that After determining whether the file contents of the first variable configuration file and the second variable configuration file are the same, the method further includes: In a case where the file contents are identical, it is determined that the file processing information indicates that uploading the first variable configuration file to the source code library is allowed.

4. The method according to claim 2, characterized in that: The target information is determined by: Obtaining the variable value of the target variable in the second variable configuration file, determining the variable value range of the target variable according to the variable value of the target variable and a preset variable floating range, and determining the variable value range of the target variable as the target information, wherein the target variable is the variable to be updated; or The allowed difference information set by a second object for the second variable configuration file is determined as the target information, wherein the second object is an object for approving the variables in the second variable configuration file.

5. The method according to claim 1, characterized in that Before obtaining the second variable configuration file corresponding to the first object, the method further includes: receiving variable update information of the first object, wherein the variable update information includes update information of variables in the source code library; Determine a second object according to the object information of the first object and the library information of the source code library, and send the variable update information to the second object, wherein the variable update information is approved by the second object; When it is detected that the variable update information is approved, the second variable configuration file is generated according to the variable update information.

6. The method according to claim 5, characterized in that Before receiving the variable update information of the first object, the method further includes: determining files stored in the source code repository; Determine a file in a target format from all files stored in the source code library to obtain a plurality of candidate files; Determine a variable configuration file from the multiple candidate files according to the name of the candidate file and / or the file content of the candidate file; The variable information of the variables in the variable configuration file is displayed to the first object through a human-computer interaction interface.

7. The method according to claim 1, characterized in that In the case where the file processing information indicates that the first variable configuration file is allowed to be uploaded to the source code library, after processing the first variable configuration file according to the file processing information, the method further includes: Determine, according to the object information of the first object and the library information of the source code library, a third object of the first variable configuration file to be verified; The variable verification information is sent to the third object to remind the third object to verify the first variable configuration file in the source code library.

8. A device for processing a variable configuration file, characterized in that: include: an acquisition module, configured to acquire, upon receiving a first variable configuration file sent by a first object, a second variable configuration file corresponding to the first object, wherein the first variable configuration file is a variable configuration file in a source code library to be uploaded to a target application, and the second variable configuration file is an approved variable configuration file for the first object; a first determining module, configured to determine file processing information according to difference information between the first variable configuration file and the second variable configuration file, wherein the file processing information indicates whether the first variable configuration file is allowed to be uploaded to the source code library; The first processing module is used to process the first variable configuration file according to the file processing information.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method for processing the variable configuration file described in any one of claims 1 to 7 when running.

10. An electronic device, characterized in that: The electronic device includes one or more processors; A memory for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to run the programs, wherein the program is configured to execute the method for processing the variable configuration file described in any one of claims 1 to 7 when running.