CN114217847A - Configuration adding and storing method for multiple versions in same environment - Google Patents

Configuration adding and storing method for multiple versions in same environment Download PDF

Info

Publication number
CN114217847A
CN114217847A CN202111592267.0A CN202111592267A CN114217847A CN 114217847 A CN114217847 A CN 114217847A CN 202111592267 A CN202111592267 A CN 202111592267A CN 114217847 A CN114217847 A CN 114217847A
Authority
CN
China
Prior art keywords
configuration
content
tag
time
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111592267.0A
Other languages
Chinese (zh)
Inventor
凌梦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Qiruike Technology Co Ltd
Original Assignee
Sichuan Qiruike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Qiruike Technology Co Ltd filed Critical Sichuan Qiruike Technology Co Ltd
Priority to CN202111592267.0A priority Critical patent/CN114217847A/en
Publication of CN114217847A publication Critical patent/CN114217847A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2151Time stamp

Abstract

The invention discloses a method for adding and storing configuration of multiple versions in the same environment, which rapidly stores operation contents such as modification and addition of the configuration of multiple versions by adding labels to the configuration, solves the problems of unrevoable and multi-choice of different versions of the configuration and greatly improves the development efficiency of developers.

Description

Configuration adding and storing method for multiple versions in same environment
Technical Field
The invention relates to the technical field of computers, in particular to a configuration adding and storing method for multiple versions in the same environment.
Background
When code development is carried out, multiple configurations are often used in the same environment, and many configurations are the same among the multiple configurations. When the modification is made, the previous configuration modification is overwritten, so that the previous configuration must be modified again later to be reused. If the modification is recorded in a file mode, a large number of same configurations can be stored, a large amount of space is occupied, and memory resources are wasted. Therefore, a simple and convenient mode for saving the configuration is designed, and the configuration can be changed conveniently and quickly and the configuration can be returned to the previous configuration.
Disclosure of Invention
The invention solves the problem that the current configuration can be covered by the latest configuration and can not be used by the previous configuration by labeling the configuration in the form of storing the configuration in the code.
The invention realizes the purpose through the following technical scheme:
a method for adding and storing configuration of multiple versions in the same environment comprises the following steps:
step 1, marking the configuration of different versions by using a label;
labeling each configured content, wherein the label records which version the current configuration belongs to, each modification of the configuration is recorded in a configuration file, and each modified content is labeled, so that the required configuration can be switched conveniently at any time;
step 2, selecting multi-version configuration;
the configuration content is correspondingly changed according to development requirements, a multi-selection design is required when the labels are selected, and when a plurality of labels are selected and intersection is solved, the configuration containing all the labels is searched; when a plurality of labels are selected and a union set is solved, the configuration of each label is searched and finally combined to be used as a search result, and the multi-selection function of the configuration is realized;
step 3, searching configuration content according to the label;
each configuration content at least comprises one tag, the tag records the configuration attribute, and after the tag is selected, the configuration file content comprising the tag is searched in the configuration file and read into the project.
In the step 1, the tag is data for recording attributes included in each line of configuration content, where the data includes time for generating the configuration content, a memory address in a file where the tag is located for fast searching for configuration, a tag attribute defined by a developer, and the like, the tag is stored in the same line of the configuration content, and is separately stored in the tag file as needed, and the corresponding configuration content is found by the pointer.
In the step 1, a timestamp is added to the tag, and the required configuration content is selected according to time, so that the configuration versions are sequenced according to the time sequence, and a developer can more conveniently fall back to the latest version configuration.
Further, in step 1, the timestamp is a certificate document formed after encryption, and includes three parts: a digest of the document to be time stamped, the date and time of receipt of the document by the DTS, and a digital signature by the DTS.
The invention has the beneficial effects that:
according to the method for adding and storing the configuration of the multiple versions in the same environment, the operation contents such as modification and addition of the configuration of the multiple versions are quickly stored in a mode that the configuration contents are labeled, the problems that the configuration of different versions cannot be backed and is selected more are solved, and the development efficiency of developers is greatly improved.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the embodiments or drawings that are needed in the prior art description, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings are obtained by those skilled in the art without creative efforts.
Fig. 1 is a diagram illustrating a configuration of a tag label.
FIG. 2 is a schematic diagram of different selection modes of multiple versions.
Fig. 3 is a flow chart of a lookup or add configuration.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
In any embodiment, the method for adding and saving multiple versions of configuration in the same environment as shown in fig. 1 to 3 comprises the following steps:
step 1, marking the configuration of different versions by using a label;
in order to facilitate the rollback to any previous version of configuration, the content of each configuration may be labeled, the label records which version the current configuration belongs to, and different labels may be labeled for the same configuration content in order to repeat the configuration content as little as possible. Each modification of the configuration is recorded in the configuration file unless the authorized developer manually clears some of the unwanted configuration content. The label is marked on the modified content every time, so that the configuration of which version can be selected by selecting the label, and the required configuration can be switched at any time. And the time stamp is added in the tag, the required configuration content can be selected according to time, the configuration versions can be sequenced according to the time sequence, and a developer can more conveniently fall back to the latest version configuration.
The tag is data for recording attributes included in each line of configuration content, wherein the data includes time for generating the configuration content, a memory address in a file where the configuration content is located for fast searching for configuration, tag attributes defined by a developer, and the like, and the tag can be stored in the same line of the configuration content, or can be separately stored in a tag file according to needs, and corresponding configuration content is found through a pointer. The details are shown in table 1 and fig. 1.
Table 1 fig. 1 tag label configuration content concrete example
Configuring content 1 Configuring content 2 Configuring content 3 Configuring content 4 In the arrangementContainer 5 Configuring content 6
Label one Is provided with Is provided with Is free of Is free of Is free of Is provided with
Label two Is free of Is provided with Is provided with Is provided with Is provided with Is free of
Label III Is free of Is free of Is provided with Is free of Is provided with Is free of
Adding a timestamp to the tag: the time stamp is a certificate document formed after encryption and comprises three parts: a digest of the document to be time stamped, the date and time of receipt of the document by the DTS, and a digital signature by the DTS. In brief, the timestamp is a digital signature calculated by a timestamp server (time service organization) by adding the current trusted time to a file to be signed and using a digital certificate of the time service organization. The method can effectively label the configuration content, but can not be easily acquired by other people without being authorized, and ensures the safety among the configurations, because different configurations can be designed by different developers, and the safety among the configurations is ensured.
Step 2, selecting multi-version configuration;
the configuration content is changed according to development requirements, for example, common configuration of two version configurations is sometimes required, because the project must be compatible with the two configuration contents; sometimes a union of two or even more configurations is required because the project needs as much functionality as possible to accomplish each configuration. Therefore, when selecting the tags, only a design capable of being selected more is needed to be designed, and when a plurality of tags are selected and intersection is required, the configuration containing all the tags is searched. When a plurality of labels are selected and a union set is obtained, the configuration of each label is searched and finally combined to be used as a search result, and the multi-selection function design of the configuration is realized. The specific way is shown in fig. 2.
Step 3, searching configuration content according to the label;
each configuration content at least comprises one tag, the tag records the configuration attribute, and after the tag is selected, the configuration file content comprising the tag is searched in the configuration file and read into the project. The specific flow is shown in fig. 3.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims. It should be noted that the technical features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present invention will not be described. In addition, any combination of the various embodiments of the present invention can be made, and the same should be considered as the disclosure of the present invention as long as the combination does not depart from the spirit of the present invention.

Claims (4)

1. A method for adding and saving configuration of multiple versions in the same environment is characterized by comprising the following steps:
step 1, marking the configuration of different versions by using a label;
labeling each configured content, wherein the label records which version the current configuration belongs to, each modification of the configuration is recorded in a configuration file, and each modified content is labeled, so that the required configuration can be switched conveniently at any time;
step 2, selecting multi-version configuration;
the configuration content is correspondingly changed according to development requirements, a multi-selection design is required when the labels are selected, and when a plurality of labels are selected and intersection is solved, the configuration containing all the labels is searched; when a plurality of labels are selected and a union set is solved, the configuration of each label is searched and finally combined to be used as a search result, and the multi-selection function of the configuration is realized;
step 3, searching configuration content according to the label;
each configuration content at least comprises one tag, the tag records the configuration attribute, and after the tag is selected, the configuration file content comprising the tag is searched in the configuration file and read into the project.
2. The method as claimed in claim 1, wherein in step 1, the tag is data for recording attributes included in each row of configuration content, where the data includes time for generating the configuration content, a memory address in a file for fast searching for configuration, tag attributes defined by a developer, and the like, the tag is stored in the same row of the configuration content, and is separately stored in the tag file as needed, and the corresponding configuration content is found through the pointer.
3. The method for adding and storing the configuration of the multiple versions in the same environment as claimed in claim 1, wherein in the step 1, a time stamp is added to the tag, and the configuration versions are sorted according to the time sequence according to the configuration content required by time selection, so that the developer can more conveniently fall back to the latest version configuration.
4. The method for adding and saving multiple versions of configuration in the same environment as claimed in claim 1, wherein in step 1, the time stamp is a certificate document formed after encryption, and includes three parts: a digest of the document to be time stamped, the date and time of receipt of the document by the DTS, and a digital signature by the DTS.
CN202111592267.0A 2021-12-23 2021-12-23 Configuration adding and storing method for multiple versions in same environment Pending CN114217847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111592267.0A CN114217847A (en) 2021-12-23 2021-12-23 Configuration adding and storing method for multiple versions in same environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111592267.0A CN114217847A (en) 2021-12-23 2021-12-23 Configuration adding and storing method for multiple versions in same environment

Publications (1)

Publication Number Publication Date
CN114217847A true CN114217847A (en) 2022-03-22

Family

ID=80705582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111592267.0A Pending CN114217847A (en) 2021-12-23 2021-12-23 Configuration adding and storing method for multiple versions in same environment

Country Status (1)

Country Link
CN (1) CN114217847A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1195675A1 (en) * 2000-07-14 2002-04-10 Sun Microsystems, Inc. Comment driven processing
CN106020798A (en) * 2016-05-11 2016-10-12 乐视控股(北京)有限公司 Webpage version publishing method, device and system
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
US20210064360A1 (en) * 2019-08-27 2021-03-04 Sap Se Time-dependent activation of configuration content
CN112765102A (en) * 2021-01-26 2021-05-07 建信金融科技有限责任公司 File system management method and device
CN113377836A (en) * 2017-11-01 2021-09-10 斯沃尔德斯股份有限公司 Method and apparatus for efficiently implementing a fast-replicating database
CN113448614A (en) * 2021-06-29 2021-09-28 北京金山云网络技术有限公司 Software project code management method and device, storage medium and electronic equipment
CN113535221A (en) * 2020-04-16 2021-10-22 北京沃东天骏信息技术有限公司 Method and device for managing application version

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1195675A1 (en) * 2000-07-14 2002-04-10 Sun Microsystems, Inc. Comment driven processing
CN106020798A (en) * 2016-05-11 2016-10-12 乐视控股(北京)有限公司 Webpage version publishing method, device and system
CN107908421A (en) * 2017-09-29 2018-04-13 北京创鑫旅程网络技术有限公司 The method and device of software code versions management and issue
CN113377836A (en) * 2017-11-01 2021-09-10 斯沃尔德斯股份有限公司 Method and apparatus for efficiently implementing a fast-replicating database
US20190155598A1 (en) * 2017-11-17 2019-05-23 Apple Inc. Techniques for updating a file using a multi-version patch file
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device
US20210064360A1 (en) * 2019-08-27 2021-03-04 Sap Se Time-dependent activation of configuration content
CN113535221A (en) * 2020-04-16 2021-10-22 北京沃东天骏信息技术有限公司 Method and device for managing application version
CN112765102A (en) * 2021-01-26 2021-05-07 建信金融科技有限责任公司 File system management method and device
CN113448614A (en) * 2021-06-29 2021-09-28 北京金山云网络技术有限公司 Software project code management method and device, storage medium and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
S. LUO等: "Consistency is Not Easy: How to Use Two-Phase Update for Wildcard Rules?", 《IEEE COMMUNICATIONS LETTER》, vol. 19, no. 3, 7 January 2015 (2015-01-07), pages 347 - 350, XP011574578, DOI: 10.1109/LCOMM.2015.2388754 *
杜荣荣: "基于GJB5000A软件配置管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 8, 15 August 2018 (2018-08-15), pages 138 - 215 *
程培原: "代码质量控制平台的设计与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 12, 15 December 2019 (2019-12-15), pages 138 - 136 *

Similar Documents

Publication Publication Date Title
US9787706B1 (en) Modular architecture for analysis database
KR20190131032A (en) Configurable annotations for privacy sensitive user content
CN111428451B (en) Text online editing method and device, electronic equipment and storage medium
US10802923B2 (en) Method and apparatus for incremental backup based on file paths and a prefix tree
US20080052619A1 (en) Spell Checking Documents with Marked Data Blocks
CN111240689A (en) Application program construction method, device, equipment and storage medium
CN113721862B (en) Data processing method and device
CN104111994A (en) Label data screening method and device based on mixed data source
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN114997706A (en) Workflow-based business processing method, device, equipment and storage medium
CN115543198A (en) Method and device for lake entering of unstructured data, electronic equipment and storage medium
US20070276779A1 (en) Method for avoiding orphan entries in cascade delete in a configuration management database
CN114640707A (en) Message asynchronous processing method and device, electronic equipment and storage medium
CN107609870B (en) Multi-application key management method and system for POS (point of sale) and POS terminal
CN113835620A (en) Method and system for improving application execution efficiency of security chip
US7827143B1 (en) Method and apparatus for generating readable, unique identifiers
CN114217847A (en) Configuration adding and storing method for multiple versions in same environment
CN103473106A (en) Method and system for generating page
CN111325012A (en) word report generation method and system
US20190384825A1 (en) Method and device for data protection and computer readable storage medium
CN109240660B (en) Access method of advertisement data, storage medium, electronic device and system
CN105184550A (en) Method, server and system for scheduling data management
CN102799423A (en) Method and device for implementing dynamic method in JSF (java service face)
CN110750514B (en) Method and terminal for labeling main data
CN114201466A (en) Method, device and equipment for preventing cache breakdown and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination