Basic template updating method and device, storage medium and electronic equipment

By receiving template update requests in the DevOps platform, identifying the projects to be updated, and loading the corresponding basic template identifiers, the problem of insufficient compatibility between basic templates and projects is solved, and efficient automated deployment and improved compatibility of projects are achieved.

CN121523713APending Publication Date: 2026-02-13CHONGQING SOKON IND GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511199494.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-26
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In DevOps platforms, as project delivery scales up and the external environment changes, the adaptability of basic templates to project deployment requirements decreases, making it impossible to meet deployment needs.

Method used

By receiving template update requests, identifying the projects to be updated and loading the corresponding basic template identifiers, and updating the basic templates in the projects, the updated basic templates can be called during the build process to achieve automated deployment of the projects.

Benefits of technology

It improves the compatibility of projects and basic templates, ensuring that the DevOps platform can meet deployment requirements and improves the efficiency and adaptability of project building.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121523713A_ABST
    Figure CN121523713A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a basic template updating method and device, a storage medium and electronic equipment, and the method comprises the steps: determining a to-be-updated item when a template updating request is received; determining a to-be-loaded basic template corresponding to the to-be-updated item; and updating the basic template identifier in the to-be-updated project based on the to-be-loaded basic template so as to call the to-be-loaded basic template according to the updated basic template identifier in the process of constructing the to-be-updated project. According to the technical scheme provided by the embodiment of the invention, the DevOps platform can call the content of the to-be-loaded basic template according to the updated basic template identifier in the process of automatically deploying the to-be-updated project to complete the construction of the to-be-updated project, so that the basic template of the to-be-updated project is switched to the to-be-loaded basic template; therefore, the purpose of updating the basic template of the project is achieved, then the adaptability between the project and the basic template is improved, and it is ensured that the DevOps platform can meet the deployment requirement when deploying the project.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a basic template updating method and device, a storage medium and an electronic device. BACKGROUND

[0002] With the development of software development towards convenience and automation, the CI / CD (Continuous Integration / Continuous Deployment) process has become the core solution of the modern software delivery process.

[0003] In the related art, when a DevOps (Development and Operations) platform builds a project delivery system based on the CI / CD process, the basic template of the project is a core component for supporting the implementation of project automated deployment. However, with the expansion of the project delivery scale and the change of the external environment, the adaptability between the basic template and the project deployment requirements decreases, which causes the DevOps platform to be unable to meet the deployment requirements when deploying the project.

[0004] Therefore, how to update the basic template of the project to improve the adaptability between the basic template and the project has become a technical problem to be solved by the current technical personnel. SUMMARY

[0005] To solve the above technical problems, the embodiments of the present application provide a basic template updating method and device, a computer readable storage medium and an electronic device.

[0006] According to an aspect of the embodiments of the present application, a basic template updating method is provided, comprising: determining a to-be-updated project when a received template updating request is received; determining a to-be-loaded basic template corresponding to the to-be-updated project; and updating a basic template identifier in the to-be-updated project based on the to-be-loaded basic template, wherein the basic template identifier in the to-be-updated project is used to indicate a basic template called to build the to-be-updated project, so that the to-be-loaded basic template is called according to the updated basic template identifier in the process of building the to-be-updated project.

[0007] According to an aspect of some embodiments of the present application, a base template updating apparatus is provided, comprising: a receiving module configured to determine a to-be-updated item upon receiving a template updating request; a matching module configured to determine a to-be-loaded base template corresponding to the to-be-updated item; and an updating module configured to update a base template identifier in the to-be-updated item based on the to-be-loaded base template, wherein the base template identifier in the to-be-updated item is used to indicate a base template called in constructing the to-be-updated item, so as to call the to-be-loaded base template according to the updated base template identifier in the process of constructing the to-be-updated item.

[0008] In some embodiments of the present application, based on the foregoing scheme, the matching module is further configured to: acquire a base template version chain associated with a current base template identifier of the to-be-updated item; and determine the to-be-loaded base template according to the base template version chain and the template updating request.

[0009] In some embodiments of the present application, based on the foregoing scheme, on a condition that the template updating request comprises a base template identifier corresponding to the to-be-loaded base template, the matching module is further configured to: take a base template in the base template version chain with the same base template identifier as the base template identifier of the to-be-loaded base template in the template updating request as the to-be-loaded base template.

[0010] In some embodiments of the present application, based on the foregoing scheme, the updating module is further configured to: acquire a preset base template identifier of the to-be-loaded base template; take the base template identifier of the to-be-loaded base template as the base template identifier of the to-be-updated item; or generate a base template identifier corresponding to the to-be-loaded base template; and take the base template identifier of the to-be-loaded base template as the base template identifier of the to-be-updated item.

[0011] In some embodiments of the present application, based on the foregoing scheme, on a condition that the template updating request comprises a source base template and a modification instruction, the matching module is further configured to: create the to-be-loaded base template according to the source base template and the modification instruction in the template updating request.

[0012] In some embodiments of the present application, based on the foregoing scheme, the matching module is further configured to: if it is detected that the modification instruction does not have validity, generate an updating failure prompt; and if it is detected that the modification instruction has validity, create the to-be-loaded base template according to the source base template and the modification instruction.

[0013] In some embodiments of the present application, based on the foregoing scheme, the updating module is further configured to: after updating the base template in the to-be-updated item by the to-be-loaded base template, acquire a performance parameter of the to-be-updated item; determine whether the performance parameter meets a preset performance parameter index; and if the determination result is no, roll back the base template identifier in the to-be-updated item to a preset base template identifier corresponding to the to-be-updated item.

[0014] According to an aspect of an embodiment of the present application, a computer readable storage medium is provided, which stores computer readable instructions. When the computer readable instructions are executed by a processor of a computer, the computer performs the base template updating method as described in the above embodiments.

[0015] According to an aspect of an embodiment of the present application, an electronic device is provided, which includes one or more processors, and a storage device configured to store one or more programs. When the one or more programs are executed by the one or more processors, the electronic device implements the base template updating method as described in the above embodiments.

[0016] In the technical scheme of the embodiments of the present application, when a template updating request is received, the to-be-updated item is determined, the to-be-loaded base template corresponding to the to-be-updated item is determined, and then the base template identifier in the to-be-updated item is updated based on the to-be-loaded base template. Thus, in the process of automatically deploying the to-be-updated item by the DevOps platform, the content of the to-be-loaded base template can be called to complete the construction of the to-be-updated item according to the updated base template identifier, so that the base template of the to-be-updated item is switched to the to-be-loaded base template, thereby achieving the purpose of updating the base template of the item, and further improving the adaptability between the item and the base template, and ensuring that the deployment requirement can be met when the DevOps platform deploys the item. BRIEF DESCRIPTION OF DRAWINGS

[0017] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the present application. It is to be expressly understood that the drawings are included herein for illustrative purposes and do not represent the only way in which such embodiments can be made. In the drawings:

[0018] Figure 1 is a flowchart of a base template updating method according to an example embodiment of the present application;

[0019] Figure 2 is Figure 1 is a flowchart of step S120 in the embodiment shown in FIG. 1;

[0020] Figure 3 is Figure 1 the flowchart in an example embodiment after step S130 in the embodiment shown in FIG. 13;

[0021] Figure 4 is a block diagram of a basic template update device shown in an example embodiment of the present application;

[0022] Figure 5 is a structural diagram of an electronic device shown in an example embodiment of the present application. DETAILED DESCRIPTION

[0023] Example embodiments now will be described more fully hereinafter with reference to the accompanying drawings; however, these embodiments should not be construed as limiting all examples. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the example embodiments to those skilled in the art.

[0024] Moreover, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the

[0025] The block diagrams in the drawings show only the functionality of the embodiments and do not imply any particular physical or architectural arrangement of the devices, systems, or methods. No inference should be drawn regarding the implementational aspects of the embodiments as shown and described herein. Further, having described a few illustrative embodiments, it will be recognized by those of skill in the art that variations and / or modifications of the described embodiments, including the use of alternative software commands, structures, apparatus, and techniques, can be made without departing from the scope of the described embodiments. Accordingly, the disclosed embodiments are intended to be illustrative only and not limiting of the scope of the claimed application.

[0026] The flow diagrams depicted herein are merely illustrative examples, and are not necessarily meant to include all of the steps and / or operations, nor are they necessarily meant to be performed in the order shown. For example, some operations / steps can be broken down further, while some operations / steps can be combined or partially combined, and thus the actual order of execution can vary from what is depicted.

[0027] It should be noted that the term "a plurality of" means two or more. The term "and / or" describes associated objects and means that the associated objects can exist separately, in combination with each other or in a combination of one or more of the associated objects. The character " / " is generally used to represent "or", unless otherwise indicated by the context.

[0028] In the related art, when a DevOps platform builds a project delivery system based on a CI / CD process, the project base template is a core component for supporting the implementation of automatic deployment of the project. However, as the scale of project delivery expands and the external environment changes, the adaptability between the base template and the deployment requirements of the project decreases, so that the DevOps platform cannot meet the deployment requirements when deploying the project. Therefore, how to update the base template of the project to improve the adaptability between the base template and the project has become a technical problem to be solved by current technical personnel.

[0029] In order to update the base template of the project, the technical scheme of the embodiments of the present application proposes a base template updating method, which is specifically referred to as Figure 1 The method at least includes steps S110 to S130, which are described in detail as follows:

[0030] In step S110, when a received template update request is received, a to-be-updated project is determined.

[0031] The template update request represents a project in the current DevOps platform that needs to update the base template. The template update request can be manually generated by the developer in the DevOps platform, or it can be automatically generated by the DevOps platform according to the preset performance parameter requirement index (such as response time requirement, throughput requirement, resource occupancy requirement) of the to-be-updated project. The performance parameter represents the deployment capability of the DevOps platform for the project.

[0032] The way to determine the to-be-updated project can be flexibly set as needed. In one example, the template update request can include the project identifier of the to-be-updated project. Based on this, the project identifier in the template update request can be obtained first, and then the target project associated with the project identifier can be determined, and the determined target project can be used as the to-be-updated project.

[0033] The way to determine the target project associated with the project identifier can be determined from the project repository of the DevOps platform, or it can be determined from the database in the cloud.

[0034] In another example, the template update request can include the project type of the to-be-updated project. Based on this, the project type in the template update request can be obtained first, and then the target project under the project type can be determined, and the determined target project can be used as the to-be-updated project.

[0035] The way to determine the target project under the project type can refer to the way to determine the target project associated with the project identifier, which will not be described here.

[0036] In another example, the project indication information can be received, and the project indicated by the project indication information is taken as the to-be-updated project, i.e., the developer can manually select the to-be-updated project in the DevOps platform, so that the DevOps platform generates the project indication information for indicating the to-be-updated project, thereby facilitating determination of the to-be-updated project according to the project indication information.

[0037] In step S120, the to-be-loaded base template corresponding to the to-be-updated project is determined.

[0038] In the embodiments of the present application, after the to-be-updated project is determined, the to-be-loaded base template corresponding to the to-be-updated project can be further determined, wherein the to-be-loaded base template is the base template currently required to be updated by the to-be-updated project.

[0039] The manner of determining the to-be-loaded base template corresponding to the to-be-updated project, in some embodiments of the present application, the template indication information can be received, and the project indicated by the template indication information is taken as the to-be-loaded base template, i.e., the developer can manually select the to-be-loaded base template in the DevOps platform, so that the DevOps platform generates the template indication information for indicating the to-be-loaded base template, thereby facilitating determination of the to-be-loaded base template according to the template indication information.

[0040] In some embodiments of the present application, the modification instruction can be included in the template update request, based on which, the current base template of the to-be-updated project can be obtained first, and then a new base template can be created through the current base template and the modification instruction in the template update request, so as to take the new base template as the to-be-loaded base template.

[0041] In step S130, the base template identifier in the to-be-updated project is updated based on the to-be-loaded base template.

[0042] It should be noted that in the process of automatic deployment of the project by the DevOps platform, the base template required by the project can be determined first, and then the base template identifier of the base template is added in the project, so that in the subsequent building process, the corresponding base template can be matched from the base template repository of the DevOps platform or the database in the cloud according to the base template identifier in the project, thereby directly invoking the content in the base template to complete the building of the project, so that the base template does not need to be added in the project, thereby reducing the resource amount required for building and deploying the project. Each base template has a corresponding base template identifier, and the base template identifier of each base template is a unique identifier.

[0043] In the embodiments of the present application, after the to-be-updated project corresponding to-be-loaded base template is determined, the base template identifier in the to-be-updated project can be updated based on the to-be-loaded base template, wherein the base template identifier in the to-be-updated project is used to indicate the base template called to build the to-be-updated project, so that the to-be-loaded base template is called according to the updated base template identifier in the process of building the to-be-updated project.

[0044] The way of updating the base template identifier in the to-be-updated project based on the to-be-loaded base template can be flexibly set as needed. In one example, the preset base template identifier of the to-be-loaded base template can be obtained, and then the base template identifier of the to-be-loaded base template is used as the base template identifier of the to-be-updated project, so as to achieve the purpose of updating the base template identifier in the to-be-updated project.

[0045] In another example, considering that the to-be-loaded base template also has a case without a preset base template identifier, based on this, the base template identifier corresponding to the to-be-loaded base template can be generated first, and then the base template identifier of the to-be-loaded base template is used as the base template identifier of the to-be-updated project.

[0046] In some embodiments of the present application, the way of generating the base template identifier corresponding to the to-be-loaded base template can be based on a preset generation rule to generate the base template identifier of the to-be-loaded base template, for example, the feature information (such as version number, code language, environment, etc.) corresponding to the to-be-loaded base template is obtained according to the preset generation rule, then the identification code corresponding to the feature information is obtained according to the mapping table in the preset generation rule, and finally the obtained identification code is used as the base template identifier of the to-be-loaded base template.

[0047] In some embodiments of the present application, the current base template identifier of the to-be-updated project can also be used for generation, that is, the current base template identifier of the to-be-updated project is obtained, and then the current base template identifier is adjusted according to a preset adjustment rule, so that the adjusted base template identifier is used as the base template identifier of the to-be-loaded base template.

[0048] Through the above embodiments, when the received template update request is received, the to-be-updated project is determined, the to-be-loaded base template corresponding to the to-be-updated project is determined, and then the base template identifier in the to-be-updated project is updated based on the to-be-loaded base template, so that the DevOps platform can call the content of the to-be-loaded base template according to the updated base template identifier to complete the building of the to-be-updated project in the process of automatically deploying the to-be-updated project, so that the base template of the to-be-updated project is switched to the to-be-loaded base template, thereby achieving the purpose of updating the base template of the project, and further improving the adaptability between the project and the base template, and ensuring that the DevOps platform can meet the deployment requirements when deploying the project.

[0049] Referring toFigure 2 , Figure 2 is Figure 1 In the embodiment shown in FIG. 12, step S120 is a flowchart in an exemplary embodiment. As shown in FIG. 12, the process of determining the to-be-loaded base template corresponding to the to-be-updated item can include steps S210 to S220, which are described in detail as follows. Figure 2

[0050] In step S210, a base template version chain associated with the current base template identifier of the to-be-updated item is obtained.

[0051] In the embodiments of the present application, after the to-be-updated item is determined, the base template version chain associated with the current base template identifier of the to-be-updated item can be obtained first, wherein the base template version chain is used to record all versions of the base template corresponding to the current base template identifier of the to-be-updated item.

[0052] Specifically, in some embodiments of the present application, the base template corresponding to the current base template identifier of the to-be-updated item can be determined first, and then other versions of the base template are determined, and then the base template and other versions of the base template are sorted in a preset order to obtain the base template version chain. The preset order includes version number size order, release time order, which is not limited herein.

[0053] The manner of determining the base template corresponding to the current base template identifier of the to-be-updated item and determining other versions of the base template can be flexibly set according to needs, for example, in the base template repository of the DevOps platform, or in the cloud database, which is not limited herein.

[0054] In some embodiments of the present application, the base template corresponding to the current base template identifier of the to-be-updated item can be determined first, and then other versions of the base template are determined from the base template repository, and then the base template identifier corresponding to each of the base template and other versions of the base template is sorted according to a preset rule to obtain the base template version chain.

[0055] In step S220, the to-be-loaded base template is determined according to the base template version chain and the template update request.

[0056] The manner of determining the to-be-loaded base template according to the base template version chain and the template update request can be flexibly set according to needs, in an example, when the template update request includes the condition of the base template identifier corresponding to the to-be-loaded base template, the base template in the base template version chain with the same base template identifier as the base template identifier of the to-be-loaded base template in the template update request can be taken as the to-be-loaded base template.

[0057] ​In another example, when the template update request includes the release time corresponding to the to-be-loaded base template, the base template in the base template version chain having the same release time as the release time of the to-be-loaded base template in the template update request can be taken as the to-be-loaded base template.

[0058] In another example, when the template update request includes the version number corresponding to the to-be-loaded base template, the base template in the base template version chain having the same version number as the version number of the to-be-loaded base template in the template update request can be taken as the to-be-loaded base template.

[0059] In another example, when the template update request includes the version number and the release time corresponding to the to-be-loaded base template, the base template in the base template version chain having the same version number and the same release time as the version number and the release time of the to-be-loaded base template in the template update request can be taken as the to-be-loaded base template.

[0060] In another example, the performance parameter demand index of the to-be-updated project can be determined according to the template update request, and then the target base template meeting the performance parameter demand index can be determined from the base template version chain, so as to take the target base template as the to-be-loaded base template.

[0061] According to the base template update method shown in an example embodiment of the present application, when the template update request includes the source base template and the modification instruction, the process of determining the to-be-loaded base template corresponding to the to-be-updated project can further include step S310, which is described in detail as follows.

[0062] In step S310, the to-be-loaded base template is created according to the source base template and the modification instruction in the template update request.

[0063] The source base template in the template update request is the base template required to be modified by the template update request; and the modification instruction in the template update request is the content required to be modified by the source base template in the template update request.

[0064] In order to make the template update request include the source base template, in some embodiments of the present application, the source base template can be added in the template update request in advance, so that the DevOps platform can directly obtain the source base template from the template update request.

[0065] In some embodiments of the present application, the base template identifier of the source base template can be added in the template update request in advance, so that the DevOps platform can first obtain the base template identifier from the template update request, and then obtain the base template corresponding to the base template identifier as the source base template, thereby reducing the amount of data required to generate the template update request.

[0066] In some embodiments of the present application, the modification instructions can be added in the template update request in advance, so that the DevOps platform can directly obtain the modification instructions from the template update request.

[0067] In some embodiments of the present application, the modification text can be added in the template update request in advance, so that the DevOps platform can first obtain the modification text from the template update request, and then generate the modification instructions based on the modification text.

[0068] The way of creating the to-be-loaded base template according to the source base template and the modification instructions in the template update request can be flexibly set as needed. In one example, the to-be-loaded base template can be directly created according to the source base template and the modification instructions, so that the source base template is taken as the basis, and the to-be-loaded base template is generated by the modification instructions, thereby achieving the purpose of determining the to-be-loaded base template.

[0069] Specifically, the DevOps platform can modify the source base template according to the modification instructions, for example, modify the image configuration, service configuration, environment variable, etc. in the source base template according to the modification instructions, to obtain the to-be-loaded base template.

[0070] In another example, in the process of creating a new base template according to the source base template and the modification instructions, the validity of the modification instructions can be further detected, so that the to-be-loaded base template is cancelled when the modification instructions do not have validity, thereby saving computing resources. Specifically, if it is detected that the modification instructions do not have validity, a modification failure prompt is generated, thereby avoiding the DevOps platform from creating the to-be-loaded base template, and reminding the developer to adjust the modification instructions through the modification failure prompt.

[0071] Correspondingly, if it is detected that the modification instructions have validity, the to-be-loaded base template can be created according to the source base template and the modification instructions, so as to ensure that the to-be-loaded base template is established in the case where the modification instructions are valid, thereby avoiding the DevOps platform from calling the content in the to-be-loaded base template with abnormalities in the process of automatically deploying the project.

[0072] The way of detecting whether the modification instructions have validity can be set as needed, for example, detecting whether the format of the modification instructions is correct, detecting whether the syntax of the modification instructions is correct, detecting whether the operation object of the modification instructions is correct, etc.

[0073] Secondly, after the to-be-loaded base template is created according to the source base template and the modification instruction, a corresponding base target identifier can be directly generated for the to-be-loaded base template, and the to-be-loaded base template and the corresponding base template identifier are uploaded and stored in the base template repository of the DevOps platform or the database in the cloud, so as to facilitate subsequent query and acquisition of the to-be-loaded base template, thereby enriching the base template resources that can be called by the DevOps platform.

[0074] Alternatively, the to-be-loaded base template and the corresponding meta information (version number, release time, creator, modification content, etc.) can be further uploaded and stored in the base template repository of the DevOps platform or the database in the cloud, so as to facilitate subsequent query and acquisition of the to-be-loaded base template.

[0075] In addition, in some embodiments of the present application, when the template modification request is received, a new base template can be created according to the source base template and the modification instruction in the template modification request, so as to enrich the base template resources that can be called by the DevOps platform at any time.

[0076] The generation mode of the template modification request can be manually generated by the developer in the DevOps platform or in other computing devices that can communicate with the DevOps platform.

[0077] The process of creating a new base template according to the source base template and the modification instruction in the template modification request can refer to the mode described above in the process of creating a to-be-loaded base template according to the source base template and the modification instruction in the template update request, which will not be described here.

[0078] Referring to Figure 3 , Figure 3 is a flowchart of a base template updating method according to another exemplary embodiment. As Figure 3 shown, after the base template in the to-be-updated project is updated by the to-be-loaded base template, the method can further include steps S410 to S430, which are described in detail as follows:

[0079] In step S410, the performance parameters of the to-be-updated project are obtained.

[0080] The performance parameters of the to-be-updated project include response time, throughput, resource occupancy, etc.

[0081] In the embodiments of the present application, the to-be-updated project can be deployed by the DevOps platform, and the performance monitoring tool (such as Prometheus, Zabbix, Grafana) in the DevOps platform can be used to detect the running to-be-updated project, so as to obtain the performance parameters of the to-be-updated project.

[0082] In step S420, it is judged whether the performance parameter meets the preset performance parameter index.

[0083] The preset performance parameter index includes a preset response time index, a preset throughput index, and a preset resource occupancy rate index.

[0084] In step S430, if the judgment is no, the base template identifier in the to-be-updated project is rolled back to the preset base template identifier corresponding to the to-be-updated project.

[0085] In the embodiments of the present application, when it is judged whether the performance parameter meets the preset performance parameter index, if the judgment is no, it indicates that the running performance of the to-be-updated project decreases after the base template of the to-be-updated project is updated to the to-be-loaded template, and the base template identifier in the to-be-updated project can be rolled back to the preset base template identifier corresponding to the to-be-updated project, so as to ensure that the deployment efficiency of the to-be-updated project does not easily decrease, and thus the influence on the deployment of the to-be-updated project is reduced.

[0086] For example, when the preset performance parameter index is the preset response time index, it can be determined whether the performance parameter meets the preset performance parameter index by judging whether the current response time in the performance parameter is higher than the preset response time index, and when the current response time in the performance parameter is higher than the preset response time index, it can be determined that the performance parameter does not meet the preset performance parameter index, that is, the judgment is no, and then the base template identifier in the to-be-updated project is rolled back to the preset base template identifier corresponding to the to-be-updated project.

[0087] The preset base template identifier corresponding to the to-be-updated project can be the base template identifier corresponding to the base template manually set by the developer, can be the base template identifier of the base template called by the to-be-updated project last time, or can be the base template identifier of any base template called by the to-be-updated project before this time, which is not limited here.

[0088] In some embodiments of the present application, the preset base template identifier can be directly used as the base template identifier of the to-be-updated project, so that the content of the base template indicated by the preset base template identifier can be directly matched and called to complete the construction of the project according to the base template identifier associated with the project itself, so as to make the base template in the to-be-updated project roll back.

[0089] The device embodiments of the present application are introduced below, which can be used to execute the base template updating method in the above embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the above embodiments of the base template updating method.

[0090] Figure 4A block diagram of a base template updating apparatus 500 according to an embodiment of the present application is shown.

[0091] Referring to Figure 4 As shown, the base template updating apparatus 500 according to an embodiment of the present application comprises a receiving module 510 configured to determine a to-be-updated item upon receiving a template updating request; a matching module 520 configured to determine a to-be-loaded base template corresponding to the to-be-updated item; and an updating module 530 configured to update a base template identifier in the to-be-updated item based on the to-be-loaded base template, wherein the base template identifier in the to-be-updated item is used to indicate a base template called for constructing the to-be-updated item, so as to call the to-be-loaded base template according to the updated base template identifier in the process of constructing the to-be-updated item.

[0092] In some embodiments of the present application, based on the foregoing scheme, the matching module 520 is further configured to: acquire a base template version chain associated with the current base template identifier of the to-be-updated item; and determine the to-be-loaded base template according to the base template version chain and the template updating request.

[0093] In some embodiments of the present application, based on the foregoing scheme, on the condition that the template updating request comprises a base template identifier corresponding to the to-be-loaded base template, the matching module 520 is further configured to: take a base template in the base template version chain with the same base template identifier as the base template identifier of the to-be-loaded base template in the template updating request as the to-be-loaded base template.

[0094] In some embodiments of the present application, based on the foregoing scheme, the updating module 530 is further configured to: acquire a preset base template identifier of the to-be-loaded base template; take the base template identifier of the to-be-loaded base template as the base template identifier of the to-be-updated item; or generate a base template identifier corresponding to the to-be-loaded base template; and take the base template identifier of the to-be-loaded base template as the base template identifier of the to-be-updated item.

[0095] In some embodiments of the present application, based on the foregoing scheme, on the condition that the template updating request comprises a source base template and a modification instruction, the matching module 520 is further configured to: create the to-be-loaded base template according to the source base template and the modification instruction in the template updating request.

[0096] In some embodiments of the present application, based on the foregoing scheme, the matching module 520 is further configured to: if it is detected that the modification instruction does not have validity, generate an updating failure prompt; and if it is detected that the modification instruction has validity, create the to-be-loaded base template according to the source base template and the modification instruction.

[0097] In some embodiments of the present application, based on the foregoing scheme, the updating module 530 is further configured to: after updating the base template in the to-be-updated project by the to-be-loaded base template, acquire a performance parameter of the to-be-updated project; determine whether the performance parameter meets a preset performance parameter index; and if the determination result is no, identify the base template in the to-be-updated project back to the preset base template identification corresponding to the to-be-updated project.

[0098] It should be noted that the base template updating apparatus 500 provided in the above embodiments and the base template updating method provided in the above embodiments belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiments, which will not be described here.

[0099] Embodiments of the present application also provide an electronic device, including a processor and a memory, wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement the base template updating method as described above.

[0100] Figure 5 A structural schematic diagram of a computer system of an electronic device suitable for implementing embodiments of the present application is shown.

[0101] It should be noted that, Figure 5 The computer system 600 of the electronic device shown is only an example and should not impose any limitation on the functions and use range of embodiments of the present application.

[0102] As Figure 5 shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 602 or programs loaded from a storage portion 608 to a random access memory (RAM) 603, such as performing the methods described in the above embodiments. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0103] The following components are connected to the I / O interface 605: an input part 606 including a keyboard, a mouse, etc.; an output part 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage part 608 including a hard disk, etc.; and a communication part 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, so that a computer program read out therefrom is installed in the storage part 608 as necessary.

[0104] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, various functions defined in the system of the present application are executed.

[0105] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer-readable signal medium can include a data signal carrying computer-readable computer programs in a baseband or as a part of a carrier wave. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit programs for use by or in conjunction with an instruction execution system, device or apparatus. The computer programs contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.

[0106] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0107] The units described in the embodiments of the present application can be implemented by software, or by hardware, or by a combination of software and hardware. The units described can also be located in a single processor. In some cases, the names of the units do not limit the units themselves.

[0108] As another aspect, the present application also provides a computer readable storage medium, which can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device. The computer readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to implement the method described in the above embodiments.

[0109] It should be noted that although several modules or units for performing actions are mentioned in the above detailed description, the division into the modules or units is not mandatory. In fact, according to the embodiments of the present application, features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, features and functions of one module or unit described above can be further divided into a plurality of modules or units.

[0110] From the above description of the embodiments, those skilled in the art will readily appreciate that the example embodiments described herein can be implemented by software and / or by hardware coupled with software. Accordingly, the technical solutions of the embodiments of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, or the like) or on a network, and includes a number of instructions for causing a computing device (which can be a personal computer, a server, a terminal, or a network device, etc.) to perform the methods according to the embodiments of the present application.

[0111] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such

[0112] It should be understood that the present application is not limited to the precise construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present application. The scope of the present application is limited only by the appended claims.

Claims

1. A basic template update method, characterized in that, The method includes: Upon receiving a template update request, identify the items to be updated; Determine the base template to be loaded corresponding to the project to be updated; The base template identifier of the project to be updated is updated based on the base template to be loaded. The base template identifier of the project to be updated is used to indicate the base template called when building the project to be updated, so that the base template to be loaded is called according to the updated base template identifier during the construction of the project to be updated.

2. The method according to claim 1, characterized in that, The step of determining the base template to be loaded corresponding to the project to be updated includes: Obtain the base template version chain associated with the current base template identifier of the project to be updated; The base template to be loaded is determined based on the base template version chain and the template update request.

3. The method according to claim 2, characterized in that, The template update request includes the base template identifier corresponding to the base template to be loaded. Determining the base template to be loaded based on the base template version chain and the template update request includes: The base template whose base template identifier in the base template version chain is the same as the base template identifier of the base template to be loaded in the template update request is taken as the base template to be loaded.

4. The method according to claim 1, characterized in that, The step of updating the base template identifier in the project to be updated based on the base template to be loaded includes: Obtain the preset basic template identifier of the basic template to be loaded; Use the base template identifier of the base template to be loaded as the base template identifier of the project to be updated; or, Generate the base template identifier corresponding to the base template to be loaded; The base template identifier of the base template to be loaded is used as the base template identifier of the project to be updated.

5. The method according to claim 1, characterized in that, The template update request includes a source base template and modification instructions. Determining the base template to be loaded corresponding to the project to be updated includes: The base template to be loaded is created based on the source base template and modification instructions in the template update request.

6. The method according to claim 5, characterized in that, The step of creating the base template to be loaded based on the source base template and modification instructions in the template update request includes: If the modification instruction is found to be invalid, an update failure message is generated; If the modification instruction is found to be valid, the base template to be loaded is created based on the source base template and the modification instruction.

7. The method according to claim 1, characterized in that, After updating the base template identifier of the project to be updated based on the base template to be loaded, the method further includes: Obtain the performance parameters of the project to be updated; Determine whether the performance parameters meet the preset performance parameter indicators; If the determination is negative, the basic template identifier of the project to be updated will be reverted to the preset basic template identifier corresponding to the project to be updated.

8. A basic template updating device, characterized in that, include: The receiving module is configured to determine the items to be updated upon receiving a template update request; The matching module is configured to determine the base template to be loaded corresponding to the project to be updated; The update module is configured to update the base template identifier of the project to be updated based on the base template to be loaded. The base template identifier of the project to be updated is used to indicate the base template called when building the project to be updated, so that the base template to be loaded is called according to the updated base template identifier during the construction of the project to be updated.

9. A computer-readable storage medium, characterized in that, It stores computer-readable instructions that, when executed by a computer's processor, cause the computer to perform the base template update method as described in any one of claims 1 to 7.

10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the basic template update method as described in any one of claims 1 to 7.