A method, system, device and storage medium for modifying configuration

By analyzing the rule files in the modification package, performing simulation modification operations, and making actual modifications after user confirmation, the problems of low configuration modification efficiency and high error rate in the prior art are solved, and efficient and reliable configuration modification is achieved.

CN113986336BActive Publication Date: 2025-04-11HUNDSUN TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111287567.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-02
Publication Date
2025-04-11
Estimated Expiration
2041-11-02

AI Technical Summary

Technical Problem

The prior art has low operational efficiency when modifying the configuration of distributed programs. The implementer needs to find the items that need to be modified from a large number of configuration items, and lacks confirmation steps, which can easily lead to incorrect modification and affect system stability.

Method used

By obtaining the modification package, analyzing the rule files in it, obtaining the types and modification rules of the configuration resources to be modified, performing simulation modification operations, determining the scope of influence, and making actual modifications after the user confirms.

Benefits of technology

Improve the operation efficiency of configuration modification, reduce manual errors, enhance the reliability and security of modification, and ensure the controllability of configuration modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986336B_ABST
    Figure CN113986336B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, system, device and storage medium for modifying configuration, the method comprising: obtaining a modification package, reading all rule files stored in the modification package, parsing the modification rules, obtaining the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that needs to be confirmed by the user, based on the type and the modification rule, accessing the configuration resource to be modified and performing a simulated modification operation on it, determining the impact scope of the configuration resource to be modified after the modification, displaying the function, the data of the configuration item to be modified, the data of the configuration item to be modified that needs to be confirmed by the user and the impact scope as preprocessing information, obtaining the user's modification operation on the preprocessing information, obtaining the modified data based on the modification operation, and modifying the configuration resource to be modified according to the modified data. The present invention improves the operational efficiency of modifying the configuration while ensuring that the configuration modification is reliable, safe and controllable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of configuration upgrade, and in particular to a method, system, device and storage medium for modifying configuration. Background Art

[0002] When modifying the configuration of a program based on the existing technology, the developer needs to write an annotation document about the configuration modification, and the implementer needs to modify the configuration of the program based on the annotation document. However, there are still some problems with the existing technology. For example, for a distributed program with a large number of nodes, the implementer needs to find the configuration items that need to be modified from a large number of configuration items based on the annotation document, which reduces the operational efficiency of modifying the configuration. In addition, no confirmation step is set before modifying the configuration item. When the annotation document written by the developer is not detailed, there is a certain probability that errors will occur when the implementer manually changes the configuration item data. Since the impact of the modification of the configuration item on the program is unpredictable and the relevant modification information cannot be confirmed, when the system fails due to the incorrect modification of the configuration item data, it takes a lot of time to eliminate the source of the fault, which reduces the overall operational efficiency of modifying the configuration. Therefore, how to improve the operational efficiency of configuration modification has become a problem that needs to be solved urgently. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a method, system, device and storage medium for modifying configuration, so as to improve the efficiency of modifying configuration. The specific technical solution is as follows:

[0004] A method for modifying a configuration, the method comprising:

[0005] A modification program package is obtained, and all rule files stored in the modification program package are read, wherein each rule file stores the type and modification rule of the corresponding configuration resource to be modified.

[0006] Parse the modification rule, obtain the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that requires user confirmation from the parsed modification rule, access the configuration resource to be modified and perform a simulated modification operation on it based on the type and the parsed modification rule, and determine the impact scope of the modified configuration resource to be modified.

[0007] The function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope are used as preprocessing information and displayed in a preprocessing information display window.

[0008] Acquire a user's modification operation on the preprocessing information displayed in the preprocessing information display window, and obtain modified data based on the modification operation.

[0009] The configuration resource to be modified is modified according to the modified data.

[0010] Optionally, the method further includes:

[0011] Acquire a user's confirmation operation on the preprocessing information displayed in the preprocessing information display window, and modify the configuration resource to be modified based on the preprocessing information.

[0012] Optionally, based on the type and the parsed modification rule, accessing the configuration resource to be modified and performing a simulated modification operation on it to determine the impact scope of the configuration resource to be modified after the modification specifically includes:

[0013] Based on the type, a storage location of the configuration resource to be modified and access permissions of the configuration resource to be modified are obtained.

[0014] At least one modification instruction is generated according to the modified rule after the analysis.

[0015] The simulated modification operation is performed on the configuration resource to be modified according to the storage location, the access permission and the modification instruction, the process of the simulated modification operation is recorded, and after all the modification instructions have completed the simulated modification operation on the configuration resource to be modified, the impact scope of the modified configuration resource to be modified is determined.

[0016] Optionally, performing the simulated modification operation on the configuration resource to be modified according to the storage location, the access permission and the modification instruction to determine the impact scope of the configuration resource to be modified after the modification further includes:

[0017] In the event that at least one modification instruction fails to perform the simulated modification operation on the configuration resource to be modified, the modification instruction that failed to execute is recorded, and an operation failure prompt message is sent to the user, wherein the operation failure prompt message includes: the process of the simulated modification operation and the modification instruction that failed to execute.

[0018] Optionally, each configuration item in the configuration resource to be modified has configuration coordinates, and the configuration coordinates include a storage path of the configuration resource to be modified and coordinates of the configuration item to be modified in the configuration resource to be modified.

[0019] Optionally, the function, the data of the configuration item to be modified, the data of the configuration item to be modified requiring user confirmation, and the impact scope are displayed as preprocessing information in a preprocessing information display window, including:

[0020] In the pre-processing information display window, the data of the configuration items to be modified that require user confirmation are highlighted, and the modifiable authority of the data of the pre-processing information is set.

[0021] Optionally, the modifying the configuration resource to be modified according to the modified data includes:

[0022] The modified data is used to overwrite the data of the configuration item to be modified in the preprocessing information and the data of the configuration item to be modified that requires user confirmation to obtain the modified data, and the configuration resource to be modified is modified according to the modified data.

[0023] A system for modifying a configuration, the system comprising:

[0024] The rule reading module is used to obtain the modification program package and read all rule files stored in the modification program package, wherein each rule file stores the type of the corresponding configuration resource to be modified and the modification rule.

[0025] A preprocessing module is used to parse the modification rules, obtain the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that requires user confirmation from the modified rules after the analysis, access the configuration resource to be modified and simulate the modification operation based on the type and the modified rules after the analysis, and determine the impact scope of the modified configuration resource.

[0026] The information display module is used to display the function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope as pre-processing information in a pre-processing information display window.

[0027] The information modification module is used to obtain the user's modification operation on the preprocessing information displayed in the preprocessing information display window, and obtain the modified data based on the modification operation.

[0028] The configuration modification module is used to modify the configuration resource to be modified according to the modified data.

[0029] Optionally, the above system further includes:

[0030] The information confirmation module is used to obtain a user's confirmation operation on the preprocessing information displayed in the preprocessing information display window, and modify the configuration resource to be modified based on the preprocessing information.

[0031] Optionally, the preprocessing module is configured as follows:

[0032] Based on the type, a storage location of the configuration resource to be modified and access permissions of the configuration resource to be modified are obtained.

[0033] At least one modification instruction is generated according to the modified rule after the analysis.

[0034] The simulated modification operation is performed on the configuration resource to be modified according to the storage location, the access permission and the modification instruction, the process of the simulated modification operation is recorded, and after all the modification instructions have completed the simulated modification operation on the configuration resource to be modified, the impact scope of the modified configuration resource to be modified is determined.

[0035] Optionally, the preprocessing module further includes:

[0036] Failure prompt submodule: used to record the modification instruction that failed to execute and send operation failure prompt information to the user when at least one modification instruction fails to execute the simulated modification operation on the configuration resource to be modified, wherein the operation failure prompt information includes: the process of the simulated modification operation and the modification instruction that failed to execute.

[0037] Optionally, the information display module is configured as follows:

[0038] In the pre-processing information display window, the data of the configuration items to be modified that require user confirmation are highlighted, and the modifiable authority of the data of the pre-processing information is set.

[0039] A device for modifying configuration, comprising:

[0040] processor;

[0041] a memory for storing instructions executable by the processor;

[0042] The processor is configured to execute the instructions to implement the method for modifying configuration as described in any one of the above items.

[0043] A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of the device, enables the device to execute any of the above-mentioned methods for modifying configuration.

[0044] A method, system, device and storage medium for modifying configuration provided by an embodiment of the present invention standardizes the modification scenarios, preconditions and execution methods of the configuration resources to be modified by formulating modification rules, so that when modifying the configuration resources to be modified, the user only needs to confirm or modify the key data, and other operations can be automatically performed according to the modification rules, so that the present invention avoids the erroneous operation caused by the prior art relying on manual operation, and improves the efficiency of modifying the configuration. At the same time, before actually modifying the configuration, the present invention simulates the modification operation on the configuration resources to be modified according to the parsed modification rules, and determines the impact caused by the modification of the configuration resources to be modified. When the user is correct about the result of the above-mentioned simulated modification operation, the present invention actually modifies the configuration resources to be modified, so that the present invention improves the reliability and security of the configuration modification operation compared with the prior art directly based on the script file to upgrade the configuration, and avoids the problem of reduced efficiency caused by manual misoperation. Finally, the present invention realizes the secondary confirmation of the data required for the modification by displaying the preprocessing information obtained by the simulated modification operation in the window, and after the user makes the modification, modifies the configuration resources to be modified according to the modified data, further improving the reliability and controllability of the configuration modification. It can be seen that the present invention improves the operational efficiency of modifying the configuration while ensuring that the configuration modification is reliable, safe and controllable.

[0045] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 A flowchart of a method for modifying configuration provided by an embodiment of the present invention;

[0048] Figure 2 A flowchart of a method for modifying configuration provided for a specific embodiment of the present invention;

[0049] Figure 3 A block diagram of a system with a modified configuration provided for an alternative embodiment of the present invention;

[0050] Figure 4 A block diagram of a device with a modified configuration is provided for an alternative embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments 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 creative work are within the scope of protection of the present invention.

[0052] The embodiment of the present invention provides a method for modifying a configuration, such as Figure 1 As shown, the above method includes:

[0053] S101: Obtain a modification program package, and read all rule files stored in the modification program package, wherein each rule file stores the type and modification rule of the corresponding configuration resource to be modified.

[0054] Optionally, the above-mentioned method for modifying the configuration can be automated based on a white-screen deployment and upgrade system. The above-mentioned white-screen deployment and upgrade system refers to an application that can parse the above-mentioned rule file. By introducing the white-screen deployment and upgrade system, the present invention allows users to only confirm or make limited modifications to key data, and other modification operations on configuration items are automatically performed by the white-screen deployment and upgrade system, thereby improving the efficiency of modifying the configuration.

[0055] Optionally, in an optional embodiment of the present invention, the above-mentioned rule file is a file written and published by developers. The modification rules in the rule file refer to the characteristics, presentation form and upgrade method of each configuration item in the configuration resource to be modified. The present invention improves the scalability and adaptability of the present invention by formulating different modification rules for different configuration items. The application scenarios of the modification rules include but are not limited to: defining configuration item read permissions, defining configuration item sensitivity, resolving conflict merging priorities, resolving configuration delay initialization and diversity upgrades, etc.

[0056] Optionally, in another optional embodiment of the present invention, the formats of the configuration resources to be modified include but are not limited to: lightweight data exchange format (Java Script Object Notation, JSON), Java configuration file (Properties), extensible markup language file (Xtensible Markup Language, XML) and markup language file (YAML Ain't a Markup Language), etc. The types of the configuration resources to be modified include but are not limited to: database, configuration center and memory, etc.

[0057] It should be noted that the content of the configuration resource to be modified is structured, that is, the content in the structured configuration resource can be parsed and modified by the program, and each configuration item in the structured configuration resource is locatable. The present invention limits the structuring of the configuration resource, so that the white screen deployment upgrade system can accurately locate each configuration item, and formulates a modification operation for each configuration item, thereby improving the efficiency of configuration modification.

[0058] S102, parsing the modification rules, obtaining the function of the configuration resource to be modified, the data of the configuration item to be modified, and the data of the configuration item to be modified that requires user confirmation from the parsed modification rules, accessing the configuration resource to be modified and simulating modification operations on it based on the type and the parsed modification rules, and determining the impact scope of the configuration resource to be modified after the modification.

[0059] Optionally, in an optional embodiment of the present invention, the accuracy of the modification rule is verified through the above-mentioned simulated modification operation, and the impact of modifying the configuration resource to be modified according to the modification rule is determined. The user can decide whether to modify the configuration resource to be modified according to the modification rule based on the result of the above-mentioned simulated modification operation, thereby improving the reliability and controllability of the modified configuration.

[0060] S103: Display the function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope as preprocessing information in the preprocessing information display window.

[0061] Optionally, in an optional embodiment of the present invention, the white screen deployment upgrade system will set modification permissions, threshold protection and format checks for the pre-processed information, and highlight changes in sensitive configuration data in the pre-processed information. Users can confirm or modify the pre-processed information through the pre-processed information display window, and no longer need to operate one by one in the face of a large amount of configuration information. This makes the present invention, compared with the prior art, reduce the possibility of errors caused by manual operation and improve the efficiency of modifying the configuration.

[0062] S104: Acquire the user's modification operation on the preprocessing information displayed in the preprocessing information display window, and obtain modified data based on the modification operation.

[0063] Optionally, in an optional embodiment of the present invention, by obtaining the data after the user modifies the preprocessing information, a secondary confirmation of the data required for modifying the configuration is achieved, thereby further improving the reliability of the configuration modification, and because this step is performed by the above-mentioned white-screen deployment and upgrade system, the operational efficiency of modifying the configuration is improved.

[0064] S105. Modify the configuration resource to be modified according to the modified data.

[0065] The present invention standardizes the modification scenarios, preconditions and execution methods of the configuration resources to be modified by formulating modification rules, so that when modifying the configuration resources to be modified, the user only needs to confirm or modify the key data, and other operations can be automatically performed according to the modification rules, so that the present invention avoids the erroneous operation caused by the prior art relying on manual operation, and improves the efficiency of modifying the configuration. At the same time, before actually modifying the configuration, the present invention simulates the modification operation on the configuration resources to be modified according to the parsed modification rules, and determines the impact caused by the modification of the configuration resources to be modified. When the user is correct about the result of the above-mentioned simulated modification operation, the present invention actually modifies the configuration resources to be modified, so that the present invention improves the reliability and security of the configuration modification operation compared with the prior art directly based on the script file to upgrade the configuration, and avoids the problem of reduced efficiency caused by manual misoperation. Finally, the present invention realizes the secondary confirmation of the data required for the modification by displaying the preprocessing information obtained by the simulated modification operation in the window, and after the user makes the modification, modifies the configuration resources to be modified according to the modified data, further improving the reliability and controllability of the configuration modification. It can be seen that the present invention improves the operational efficiency of modifying the configuration while ensuring that the configuration modification is reliable, safe and controllable.

[0066] Optionally, the above method further includes:

[0067] Acquire the user's confirmation operation on the preprocessing information displayed in the preprocessing information display window, and modify the configuration resources to be modified based on the preprocessing information.

[0068] Optionally, based on the type and the parsed modification rule, access the configuration resource to be modified and simulate modification operations on it to determine the impact scope of the configuration resource to be modified after the modification, including:

[0069] Based on the type, obtain the storage location of the configuration resource to be modified and the access permissions of the configuration resource to be modified.

[0070] According to the parsed modification rule, at least one modification instruction is generated.

[0071] Perform simulated modification operations on the configuration resources to be modified according to the storage location, access rights and modification instructions, record the process of the simulated modification operations, and determine the impact scope of the modified configuration resources after all modification instructions have been executed to simulate the modification operations on the configuration resources to be modified.

[0072] The object of the above simulated modification operation is the configuration item to be modified in the configuration resource to be modified.

[0073] Optionally, in an optional embodiment of the present invention, the internal coordinates of the configuration item to be modified in the configuration resource to be modified are determined by using a positioning coordinate technology, and the coordinates of the configuration item to be modified are obtained from the internal coordinates and the storage path of the configuration resource to be determined. The positioning coordinate technology includes but is not limited to: JSON Path Language (JSONPath) and Extensible Markup Language File Path Language (XML Path Language, Xpath).

[0074] Optionally, simulating a modification operation on the configuration resource to be modified according to the storage location, access rights, and modification instructions to determine the impact scope of the configuration resource to be modified after the modification, further comprising:

[0075] When at least one modification instruction fails to simulate the modification operation on the configuration resource to be modified, the modification instruction that failed to execute is recorded, and operation failure prompt information is sent to the user, wherein the operation failure prompt information includes: the process of the simulated modification operation and the modification instruction that failed to execute.

[0076] Optionally, in an optional embodiment of the present invention, by sending an operation failure prompt message to the user, the user can accurately troubleshoot the fault based on the operation failure prompt message, thereby improving the reliability and controllability of the present invention in modifying the configuration.

[0077] Optionally, each configuration item in the configuration resource to be modified has configuration coordinates, and the configuration coordinates include a storage path of the configuration resource to be modified and coordinates of the configuration item to be modified in the configuration resource to be modified.

[0078] Optionally, the function, data of the configuration item to be modified, data of the configuration item to be modified that requires user confirmation, and the impact scope are used as preprocessing information and displayed in the preprocessing information display window, including:

[0079] In the preprocessing information display window, the data of the configuration items to be modified that require user confirmation are highlighted, and the editability permissions for the preprocessing information data are set.

[0080] Optionally, modify the configuration resource to be modified according to the modified data, including:

[0081] The modified data is used to overwrite the data of the configuration items to be modified in the preprocessing information and the data of the configuration items to be modified that require user confirmation, to obtain the modified data, and the configuration resources to be modified are modified according to the modified data.

[0082] To facilitate the description of the above configuration modification method, please refer to the following Figure 2 A specific embodiment of the present invention shown is understood:

[0083] Step S201, the white screen deployment and upgrade system receives the modified program package, reads all rule files in the program package, and triggers step S202.

[0084] Step S202, determining whether all rule files are read successfully, if yes, triggering step S203, if no, triggering step S209.

[0085] Step S203, parse the modification rules in the rule file, generate modification instructions according to the modification rule description, and simulate modification operations on the configuration resources to be modified according to the modification instructions, the storage location of the configuration resources to be modified, and the access rights of the configuration resources to be modified, and record the process of the simulated modification operations. After the simulated modification operations are completed, step S204 is triggered.

[0086] Step S204, determining whether all modification instructions are successfully executed, if so, triggering step S205, if not, triggering step S209.

[0087] Step S205, display the configuration resources to be modified, the configuration items to be modified, the impact range, the effect of this modification, the data requiring user confirmation and other pre-processing information in the pre-processing information display window. After the user confirms or makes the modification, step S206 is triggered.

[0088] Step S206, modify the configuration resource to be modified according to the confirmed or modified data, and trigger step S207.

[0089] Step S207, determining whether the modifications to the configuration resources to be modified are all successful, if so, triggering step S208, if not, triggering step S209.

[0090] Step S208, fix the current version, record the log, and end the process after the log recording operation is completed. The content of the log recording operation includes but is not limited to: operator, operation time, operation object and modified content.

[0091] Step S209: Send an operation failure message to the user and end the operation process.

[0092] Among them, the above steps S201 and S202 are Figure 1 A specific implementation of step S101 is shown, steps S203 and S204 are Figure 1 A specific implementation of step S102 is shown, and step S205 is Figure 1 A specific implementation of step S103 is shown, steps S206 and S207 are Figure 1 A specific implementation of step S105 is shown.

[0093] The present invention standardizes the modification scenarios, preconditions and execution methods of the configuration resources to be modified by formulating modification rules, so that when modifying the configuration resources to be modified, the user only needs to confirm or modify the key data, and other operations can be automatically performed according to the modification rules, so that the present invention avoids the erroneous operation caused by the prior art relying on manual operation, and improves the efficiency of modifying the configuration. At the same time, before actually modifying the configuration, the present invention simulates the modification operation on the configuration resources to be modified according to the parsed modification rules, and determines the impact caused by the modification of the configuration resources to be modified. When the user is correct about the result of the above-mentioned simulated modification operation, the present invention actually modifies the configuration resources to be modified, so that the present invention improves the reliability and security of the configuration modification operation compared with the prior art directly based on the script file to upgrade the configuration, and avoids the problem of reduced efficiency caused by manual misoperation. Finally, the present invention realizes the secondary confirmation of the data required for the modification by displaying the preprocessing information obtained by the simulated modification operation in the window, and after the user makes the modification, modifies the configuration resources to be modified according to the modified data, further improving the reliability and controllability of the configuration modification. It can be seen that the present invention improves the operational efficiency of modifying the configuration while ensuring that the configuration modification is reliable, safe and controllable.

[0094] Corresponding to the above-mentioned embodiment of the method for modifying configuration, the present invention also provides a system for modifying configuration, such as Figure 3 As shown, the system includes:

[0095] The rule reading module 301 is used to obtain the modification program package and read all rule files stored in the modification program package, wherein each rule file stores the type of the corresponding configuration resource to be modified and the modification rule.

[0096] The preprocessing module 302 is used to parse the modification rules, obtain the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that requires user confirmation from the parsed modification rules, access the configuration resource to be modified and simulate the modification operation based on the type and the parsed modification rules, and determine the impact scope of the modified configuration resource.

[0097] The information display module 303 is used to display the function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope as pre-processing information in the pre-processing information display window.

[0098] The information modification module 304 is used to obtain the user's modification operation on the pre-processed information displayed in the pre-processed information display window, and obtain the modified data based on the modification operation.

[0099] The configuration modification module 305 is used to modify the configuration resource to be modified according to the modified data.

[0100] Optionally, the above system further includes:

[0101] The information confirmation module is used to obtain the user's confirmation operation on the preprocessing information displayed in the preprocessing information display window, and modify the configuration resources to be modified based on the preprocessing information.

[0102] Optionally, the preprocessing module 302 is configured as follows:

[0103] Based on the type, obtain the storage location of the configuration resource to be modified and the access permissions of the configuration resource to be modified.

[0104] According to the parsed modification rule, at least one modification instruction is generated.

[0105] Perform simulated modification operations on the configuration resources to be modified according to the storage location, access rights and modification instructions, record the process of the simulated modification operations, and determine the impact scope of the modified configuration resources after all modification instructions have been executed to simulate the modification operations on the configuration resources to be modified.

[0106] Optionally, the preprocessing module 302 further includes:

[0107] Failure prompt submodule: used to record the failed modification instruction and send operation failure prompt information to the user when at least one modification instruction fails to simulate the modification operation on the configuration resource to be modified, wherein the operation failure prompt information includes: the process of simulating the modification operation and the failed modification instruction.

[0108] Optionally, the information display module 303 is configured as follows:

[0109] In the preprocessing information display window, the data of the configuration items to be modified that require user confirmation are highlighted, and the editability permissions for the preprocessing information data are set.

[0110] The embodiment of the present invention provides a device for modifying configuration, such as Figure 4 As shown, including:

[0111] Processor 401;

[0112] The memory 402 is used to store instructions executable by the processor 401 .

[0113] The processor 401 is configured to execute instructions to implement any of the above configuration modification methods.

[0114] An embodiment of the present invention provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by the processor 401 of the device, the device for modifying configuration can execute any of the above-mentioned methods for modifying configuration.

[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0116] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0117] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0118] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0119] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0120] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for modifying a configuration, characterized in that: The method comprises: Obtaining a modification program package, and reading all rule files stored in the modification program package, wherein each rule file stores a type of a corresponding configuration resource to be modified and a modification rule; Parse the modification rule, obtain the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that requires user confirmation from the parsed modification rule, access the configuration resource to be modified and simulate modification operations on it based on the type and the parsed modification rule, and determine the impact scope of the configuration resource to be modified after the modification; The function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope are used as preprocessing information and displayed in a preprocessing information display window; Acquire a user's modification operation on the preprocessing information displayed in the preprocessing information display window, and obtain modified data based on the modification operation; The configuration resource to be modified is modified according to the modified data.

2. The method according to claim 1, characterized in that The method further comprises: Acquire a user's confirmation operation on the preprocessing information displayed in the preprocessing information display window, and modify the configuration resource to be modified based on the preprocessing information.

3. The method according to claim 1, characterized in that The step of accessing the configuration resource to be modified and performing a simulated modification operation on the configuration resource based on the type and the modified rule after the analysis to determine the impact scope of the configuration resource to be modified after the modification specifically includes: Based on the type, obtaining a storage location of the configuration resource to be modified and access rights to the configuration resource to be modified; Generate at least one modification instruction according to the modified rule after the analysis; The simulated modification operation is performed on the configuration resource to be modified according to the storage location, the access permission and the modification instruction, the process of the simulated modification operation is recorded, and after all the modification instructions have completed the simulated modification operation on the configuration resource to be modified, the impact scope of the modified configuration resource to be modified is determined.

4. The method according to claim 3, characterized in that The performing the simulated modification operation on the configuration resource to be modified according to the storage location, the access permission and the modification instruction to determine the impact scope of the configuration resource to be modified after the modification, further includes: In the event that at least one modification instruction fails to perform the simulated modification operation on the configuration resource to be modified, the modification instruction that failed to execute is recorded, and an operation failure prompt message is sent to the user, wherein the operation failure prompt message includes: the process of the simulated modification operation and the modification instruction that failed to execute.

5. The method according to claim 3, characterized in that: Each configuration item in the configuration resource to be modified has configuration coordinates, and the configuration coordinates include a storage path of the configuration resource to be modified and a coordinate of the configuration item to be modified in the configuration resource to be modified.

6. The method according to claim 1, characterized in that The function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope are displayed as preprocessing information in a preprocessing information display window, including: In the pre-processing information display window, the data of the configuration items to be modified that require user confirmation are highlighted, and the modifiable authority of the data of the pre-processing information is set.

7. The method according to claim 1, characterized in that The modifying the configuration resource to be modified according to the modified data includes: The modified data is used to overwrite the data of the configuration item to be modified in the preprocessing information and the data of the configuration item to be modified that requires user confirmation to obtain the modified data, and the configuration resource to be modified is modified according to the modified data.

8. A system for modifying configuration, characterized in that: The system comprises: A rule reading module, used to obtain a modification program package and read all rule files stored in the modification program package, wherein each rule file stores a type of a corresponding configuration resource to be modified and a modification rule; A preprocessing module is used to parse the modification rule, obtain the function of the configuration resource to be modified, the data of the configuration item to be modified and the data of the configuration item to be modified that requires user confirmation from the modified rule after the modification is parsed, access the configuration resource to be modified and perform a simulated modification operation on the resource based on the type and the modified rule after the modification is parsed, and determine the impact scope of the configuration resource to be modified after the modification; An information display module, used to display the function, the data of the configuration item to be modified, the data of the configuration item to be modified that requires user confirmation, and the impact scope as preprocessing information in a preprocessing information display window; An information modification module, used for obtaining a user's modification operation on the preprocessing information displayed in the preprocessing information display window, and obtaining modified data based on the modification operation; The configuration modification module is used to modify the configuration resource to be modified according to the modified data.

9. A device for modifying configuration, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for modifying configuration according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a device, the device is enabled to perform the method for modifying configuration according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data modification method and device, electronic equipment and storage medium

    CN110807037A

  • File system management method and device

    CN112765102A