A front-end business deployment method, system, computer equipment, and storage medium

By acquiring development business environment data and task flow templates, generating target development task flows and conducting reviews, the problems of code conflicts and chaotic version management in cross-library collaboration in large software projects are solved, thereby improving code quality and development efficiency.

CN116467012BActive Publication Date: 2026-11-17SHENZHEN FULIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310458715.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2026-11-17
Estimated Expiration
2043-04-21

AI Technical Summary

Technical Problem

In the development of large-scale software projects, code conflicts and chaotic version management are encountered when collaborating across libraries, resulting in low code quality and low development efficiency.

Method used

By acquiring development business environment data and corresponding development task flow templates, a target development task flow is generated, and a deployment workflow is generated based on the review results to carry out business deployment.

Benefits of technology

It improved the quality of code writing and the efficiency of deployment after development, solving the problem of low efficiency in team development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116467012B_ABST
    Figure CN116467012B_ABST
Patent Text Reader

Abstract

This invention relates to the field of data processing technology, and provides a front-end business deployment method, system, and storage medium. The method includes: acquiring development business environment data and a corresponding development task flow template; obtaining a target development task flow based on the development business environment data and the development task flow template; generating a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify a review task for the target development task flow to be reviewed; extracting a preset review task interface according to the push instruction to execute the review work corresponding to the target development task flow, and obtaining a review result; generating a corresponding target deployment workflow when the review is passed; and performing business deployment based on the target deployment workflow. This application can effectively solve the problem of low efficiency in team development, and effectively improve the quality of code writing and the deployment efficiency after development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing, and more particularly to a front-end business deployment method, system, computer equipment, and storage medium. Background Technology

[0002] In large-scale software project development, for ease of management and maintenance, data and code repositories are typically divided into multiple repositories, with data retrieval and code submission based on the actual workflow. However, this leads to numerous difficulties for developers when collaborating across repositories, such as code conflicts and chaotic version control. Therefore, a method is needed to improve code quality and increase development efficiency to address these issues. Summary of the Invention

[0003] The main objective of this invention is to provide a front-end business deployment method, system, and storage medium, aiming to solve the problems of low code quality and slow development efficiency during team development.

[0004] To achieve the above objectives, the present invention provides a front-end business deployment method, the method comprising:

[0005] Obtain the development business environment data and the corresponding development task flow template;

[0006] Based on the development business environment data and the development task flow template, the target development task flow is obtained;

[0007] A push instruction is generated based on the output of the target development task flow, wherein the push instruction is used to specify the review task of the target development task flow to be reviewed;

[0008] The preset review task interface is extracted according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result;

[0009] If the review result is passed, the corresponding target deployment workflow is generated based on the task development code;

[0010] Based on the aforementioned target deployment workflow, business deployment is carried out.

[0011] Optionally, the method for obtaining the target development task flow based on the development business environment data and the development task flow template specifically includes:

[0012] Extract the configuration information corresponding to the development environment data and the development task nodes of the development task flow template;

[0013] Based on the preset conditions, the configuration information and the development task nodes are used to determine the development task node information that needs to be invoked, and the corresponding target task node information is obtained.

[0014] The target task node information includes: the target task node called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node;

[0015] Based on the connection relationship between each target task, the nodes of each called target task are connected to obtain the target task development task flow;

[0016] The target development task flow is executed based on the execution conditions of the target task node.

[0017] Optionally, the target development task flow further includes adjustment task nodes, wherein the adjustment task nodes are used to adjust each of the target task nodes included in the target task flow, and the adjustment task nodes include adjustment data code and the operation connection relationship of the adjustment task nodes.

[0018] Optionally, the step of performing character verification on the task development code corresponding to the target development task flow to obtain the verification result further includes:

[0019] Create multiple sub-target task flows based on the target development task flow;

[0020] Based on the task development code of the sub-target task flow, code extraction is performed to obtain several verification task flows;

[0021] If all the verification task flows pass the preset verification conditions, the code of all the sub-target task flows is merged to obtain the target development task flow after verification.

[0022] If any of the verification task flows fails the preset verification conditions, a rectification instruction is generated, and the sub-target task flows that failed the verification are suspended.

[0023] Optionally, the acquisition of development business environment data and the corresponding development task flow template includes:

[0024] The acquired development business environment data is queried in a preset database to obtain a development task flow template corresponding to the development business environment data; or,

[0025] Based on the acquired development business environment data, construct the development task flow template corresponding to the development business environment data.

[0026] Optionally, after obtaining and displaying the target development task flow based on the development business environment data and the development task flow template, the method further includes:

[0027] Update the target development task flow based on the new branch task flow entered by the user in the development task flow template.

[0028] Furthermore, to achieve the above objectives, the present invention also provides a front-end business deployment system, the system comprising:

[0029] The acquisition module is used to acquire development business environment data and the development task flow template corresponding to the development business environment data;

[0030] The processing module is used to obtain the target development task flow based on the development business environment data and the development task flow template;

[0031] Push module: Used to generate push instructions based on the output of the target development task flow, wherein the push instructions are used to specify the review task of the target development task flow to be reviewed.

[0032] The review module is used to extract a preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result;

[0033] Generation module: If the review result is passed, it generates the corresponding target deployment workflow based on the task development code;

[0034] The deployment module is used to deploy business based on the target deployment workflow.

[0035] Optionally, the system further includes an extraction subunit, a calling subunit, a connecting subunit, and an execution subunit, wherein the system comprises:

[0036] The extraction subunit is used to extract the configuration information corresponding to the development environment data and the development task nodes of the development task flow template;

[0037] The calling subunit is used to determine the development task node information to be called based on the configuration information and the development task node according to preset conditions, and to obtain the corresponding target task node information. The target task node information includes: the target task node to be called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node.

[0038] The connection subunit is used to connect each of the called target task nodes based on the connection relationship of each target task, thereby obtaining the target task development task flow.

[0039] An execution subunit is used to execute the target development task flow under the execution conditions of the target task node.

[0040] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:

[0041] The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the steps of the front-end service deployment method proposed in any of the embodiments of this application.

[0042] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:

[0043] The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the front-end service deployment method proposed in any of the embodiments of this application.

[0044] Compared with the prior art, the embodiments of this application have the following main advantages:

[0045] This application proposes a method for front-end business deployment, comprising: acquiring development business environment data and a development task flow template corresponding to the development business environment data; obtaining a target development task flow based on the development business environment data and the development task flow template; generating a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify a review task for the target development task flow to be reviewed; extracting a preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow, and obtaining a review result; if the review result is passed, generating a corresponding target deployment workflow based on the task development code; and performing business deployment based on the target deployment workflow. This method effectively solves the problem of low efficiency during team development and effectively improves code writing quality and deployment efficiency after development. Attached Figure Description

[0046] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;

[0048] Figure 2This is a flowchart of one implementation of the front-end business deployment method according to this application;

[0049] Figure 3 This is a structural diagram of an embodiment of the deployment terminal in the front-end business deployment system according to this application.

[0050] Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0051] The data format determination method provided in this invention is applied to a data processing system. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing specific embodiments only and is not intended to limit the application. The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or accompanying drawings of this application are used to distinguish different objects, not to describe a specific order.

[0052] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0053] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0054] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0055] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social online platform software.

[0056] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.

[0057] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.

[0058] It should be noted that the front-end service deployment method provided in this application embodiment is generally executed by a server / terminal device, and correspondingly, the front-end service deployment system is generally set up in the server / terminal device.

[0059] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0060] Continue to refer to Figure 2 The diagram illustrates a flowchart of an embodiment of the front-end business deployment method proposed in this application. This embodiment can acquire and process relevant data based on artificial intelligence technology. The front-end business deployment method includes the following steps:

[0061] S210 Obtain development business environment data and the development task flow template corresponding to the development business environment data;

[0062] In this step, the development business environment can be determined based on the obtained development business environment data. The aforementioned development business environment can refer to hardware environment, development environment, and testing environment, etc. In this embodiment of the application, it refers to a software development environment based on the distributed version control system Git.

[0063] Furthermore, determine the development task flow template corresponding to the development business environment data, that is, determine the development task flow template under the application scenario. It should be understood that different development business environment data correspond to different development task flow templates. The development task flow templates of Git Hub Flow can be used to coordinate development.

[0064] In one feasible embodiment of the present invention, configuration information corresponding to the development environment data and development task nodes of the development task flow template are extracted; target task node information is determined based on the configuration information and development task nodes; and a target development task flow is obtained based on the target task node information; wherein, the target task node information includes: the target task node called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node.

[0065] In another feasible embodiment of the present invention, the aforementioned development task flow template is a pseudo-workflow, meaning that the task flow template is a structural relationship derived from at least three development task nodes. The aforementioned development task flow template includes at least three development task nodes and the connections between them. It should be noted that the connection between two development task nodes in this development task flow template only represents a structural relationship and does not represent an operational connection between the development task nodes. Between development task nodes with an operational connection, the output of one development task node serves as the input of another development task node.

[0066] S220 obtains the target development task flow based on the development business environment data and the development task flow template;

[0067] In this step, after obtaining the configuration information input by the user, the development task node parameters of each development task node in the development task flow template, the execution conditions corresponding to each development task node, and the connection conditions corresponding to the running connection relationship between development task nodes can be determined based on the configuration information, thereby determining the operation mode of the workflow and obtaining a dynamic target development task flow.

[0068] In one feasible embodiment of the present invention, configuration information corresponding to the development environment data and development task nodes of the development task flow template are extracted; based on preset conditions, the development task node information to be called is determined according to the configuration information and development task nodes, and the corresponding target task node information is obtained; wherein, the target task node information includes: the target task node to be called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node; based on the running connection relationship of each target task, each called target task node is connected to obtain the target task development task flow. It should be noted that the development task node includes multiple task nodes. The corresponding task nodes are extracted according to the actual project requirements to obtain multiple target task nodes, and the final operation of the project is achieved based on the multiple target task nodes, the connection relationship, and the execution conditions of the target task nodes.

[0069] In another feasible embodiment of the present invention, the development task flow template is a pseudo-workflow, which is a topology structure of development task nodes statically connected by at least two development task nodes. The user configures the development task node parameters, execution conditions, and connection conditions between development task nodes on the dynamic modeling page, thereby obtaining the target development task flow based on the development task flow template and the configured development task node parameters, execution conditions, and connection conditions.

[0070] In an optional embodiment of the present invention, the development task flow template can use the npm v7 tool to manage collaboration between multiple development task nodes. It also includes the use of the workspace feature to maintain development. By using the "workspaces" field in the database corresponding to the development task flow template to list all sub-target task flows, the "npm install" command can be used to install all dependencies simultaneously when installing dependencies in their respective sub-target task flows. After installation, the versions are automatically replaced, thus facilitating collaboration between multiple sub-target task flows. Specifically, the development task flow template uses npm workspaces and lists the modules of all sub-target task flows as dependencies. Sub-target task flows do not need to publish modules to a remote repository first; instead, they use symbolic links to link the module source code. This allows for convenient code sharing and debugging during development and avoids the hassle of frequent module releases.

[0071] Furthermore, the configuration information includes installing ESLint, Prettier, and lint-stage in the development workflow template and configuring them using pre-defined configuration files. Sub-target workflows are cloned into the root directory of the development workflow template. The development workflow template ignores the code for these sub-target workflows via Git, associating modules only through workspace attributes. This ensures that the code corresponding to the sub-target workflows can be correctly identified and linked, and is subject to the access control of the development workflow template, enabling the development workflow to operate normally.

[0072] In the application embodiment, multiple sub-target task flows are created based on the target development task flow; code is extracted based on the task development code of the sub-target task flows to obtain several verification task flows; if all verification task flows pass the preset verification conditions, the code of all sub-target task flows is merged to obtain the target development task flow that has passed verification; if any of the verification task flows fails the preset verification conditions, a rectification instruction is generated, and the sub-target task flows that failed verification are suspended.

[0073] Furthermore, the target development task flow also includes adjusting task nodes, which are used to adjust the various target task nodes contained in the target task flow. Adjusting task nodes includes adjusting data code and adjusting the running connection relationship of task nodes.

[0074] In an optional embodiment of the present invention, ESLint is an open-source JavaScript code inspection tool that helps developers follow a consistent coding style and find and fix code errors. Prettier is a code formatting tool that can automatically adjust code indentation, whitespace, and other formatting to make the code more readable and understandable. By loading and installing ESLint, Prettier, and lint-stage, the code of the sub-target task flow is validated, and the integrated ESLint and Prettier tools are used to standardize the code style and format of the sub-target task flow.

[0075] S230 generates a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify the review task of the target development task flow to be reviewed;

[0076] Specifically, when the target development task flow outputs any result data, a push instruction is generated based on the result data. The push instruction uses a string of native command push. The push instruction is used to specify the review task of the target development task flow to be reviewed. S240 extracts the preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result.

[0077] In this embodiment, a preset application interface is invoked to execute a review task based on the string, and the review execution result generated after the task is performed is fed back. The application interface is configured with review operation logic for executing review tasks; typically, the review operation logic corresponding to one type of review task is placed in one application interface. For example, a developer develops code locally, and after completion, executes a native Git command and pushes the string obtained through the extension of the specified native Git command along with the completed code to be processed.

[0078] Furthermore, code corresponding to each sub-task target flow is submitted via Pull Requests, and then reviewed by other developers. If the code review passes, it is merged into the pre-release task flow. If the code review fails, the developers need to fix the issues, resubmit the changes, and wait for the next round of code review. Once all the code for the sub-target task flows has been merged into the pre-release branch and completed code validation and review, the team can merge it into the main branch for testing. When the tests pass, a deployment workflow is generated, and the new version is released. This method improves code quality and stability.

[0079] S250 If the review result is passed, the corresponding target deployment workflow is generated based on the task development code.

[0080] Based on the implementation methods in S230-240, if the task development code of multiple subtask workflows passes verification, all subtask workflows are merged to obtain a complete target development task flow, and the corresponding target deployment workflow is generated based on the task development code of the target development task flow.

[0081] S260 deploys services based on the target deployment workflow.

[0082] Specifically, in response to the deployment instruction of the target deployment workflow, the data corresponding to the target deployment workflow is deployed to the front-end application page.

[0083] In an optional embodiment of the present invention, in response to a request for a target functional component sent by the development end, the target functional component corresponding to the request is obtained from the base library; an interface file is called to obtain the data resource corresponding to the target functional component; and in response to a development instruction sent by the development end based on the target functional component and the data resource, the target component and the data resource are recombined and deployed to the front-end application page. This method encapsulates different functional components to form a base library, and uses the base library to associate with the back-end through an interface file, thereby reducing the time required for joint debugging between the front-end and back-end development and improving development efficiency.

[0084] In response to development instructions sent by the development team based on the target functional components and data resources, the target functional components and data resources are reorganized and deployed to the front-end application page.

[0085] In response to a deployment command, the system retrieves the target functional component corresponding to the deployment command; calls an interface file to retrieve the data resources corresponding to the target functional component; and deploys the target functional component and data resources to the front-end display page.

[0086] Optionally, the acquisition of development business environment data and the corresponding development task flow template includes:

[0087] The acquired development business environment data is queried in a preset database to obtain a task flow template corresponding to the development business environment data; or,

[0088] Based on the acquired development business environment data, the task requirements are constructed according to the actual business requirements. The input operations corresponding to the development task flow template are obtained according to the task requirements. In response to the input operations, the task flow template corresponding to the development business environment data is constructed.

[0089] An optional implementation involves pre-setting a database that stores the mapping relationship between development business environment data and development task flow templates. It should be understood that one set of development business environment data corresponds to one development task flow template, and these templates are pre-set by the developers. After the user inputs development business environment data, the database is queried to retrieve the corresponding development task flow template.

[0090] In this embodiment, the development task flow template can be pre-set, so that the development task flow template can be directly queried, or the user can customize the development task flow template, thereby reducing operation steps and improving creation efficiency.

[0091] Another optional implementation is that the development task flow template is user-defined, specifically including: based on the acquired development business environment data, constructing task requirements based on the actual business based on the acquired development business environment data, acquiring input operations corresponding to the development task flow template based on the task requirements, and constructing the task flow template corresponding to the development business environment data in response to the input operations.

[0092] Optionally, after obtaining and displaying the target development task flow based on the development business environment data and the development task flow template, the method further includes:

[0093] Update the target development task flow based on the new branch task flow entered by the user in the development task flow template.

[0094] The above-mentioned development task flow template supports the function of adding branch task flow. Users can input new branch tasks in the development task flow template, and update the target development task flow based on the new branch task data.

[0095] Compared with the prior art, the embodiments of this application have the following main advantages:

[0096] This application proposes a method for front-end business deployment, comprising: acquiring development business environment data and a development task flow template corresponding to the development business environment data; obtaining a target development task flow based on the development business environment data and the development task flow template; performing character verification on the task development code corresponding to the target development task flow to obtain a verification result; if the verification result is successful, generating a corresponding target deployment workflow based on the task development code; and performing business deployment based on the target deployment workflow. This method effectively solves the problem of low efficiency in team development and significantly improves code writing quality and deployment efficiency after development.

[0097] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0098] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0099] Further reference Figure 3 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of a front-end business deployment system 310, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0100] This invention provides a front-end business deployment system, the front-end business deployment system comprising:

[0101] The acquisition module 311 is used to acquire development business environment data and the development task flow template corresponding to the development business environment data;

[0102] Processing module 312 is used to obtain the target development task flow based on the development business environment data and the development task flow template;

[0103] Push module 313: Used to generate a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify the review task of the target development task flow to be reviewed.

[0104] The review module 314 is used to extract a preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result.

[0105] Generation module 315: If the review result is passed, it generates the corresponding target deployment workflow based on the task development code;

[0106] Deployment module 316 is used to deploy business based on the target deployment workflow.

[0107] In this embodiment of the application, the processing module 312 includes an extraction subunit, a calling subunit, a connection subunit, and an execution subunit. The system includes:

[0108] The extraction subunit is used to extract the configuration information corresponding to the development environment data and the development task nodes of the development task flow template;

[0109] The calling subunit is used to determine the development task node information to be called based on the configuration information and the development task node according to preset conditions, and to obtain the corresponding target task node information. The target task node information includes: the target task node to be called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node.

[0110] The connection subunit is used to connect each of the called target task nodes based on the connection relationship of each target task to obtain the target task development task flow;

[0111] An execution subunit is used to execute the target development task flow under the execution conditions of the target task node.

[0112] Compared with the prior art, the embodiments of this application have the following main advantages:

[0113] This application proposes a front-end business deployment system, comprising: acquiring development business environment data and a corresponding development task flow template; obtaining a target development task flow based on the development business environment data and the development task flow template; generating a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify a review task for the target development task flow to be reviewed; extracting a preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow, and obtaining a review result; if the review result is passed, generating a corresponding target deployment workflow based on the task development code; and performing business deployment based on the target deployment workflow. This method effectively solves the problem of low efficiency in team development, effectively improving code writing quality and deployment efficiency after development.

[0114] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0115] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41-53 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0116] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0117] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 4. Of course, the memory 41 may also include both the internal storage unit and its external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 5, such as the program code of method X. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or will be output.

[0118] In some embodiments, the processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 42 is used to run program code stored in the memory 41 or process data, for example, to run the program code for the X method.

[0119] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.

[0120] This application also provides another embodiment, namely, providing a computer-readable storage medium storing the front-end service deployment method program, which can be executed by at least one processor to cause the at least one processor to perform the steps of the front-end service deployment method as described above.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware online platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0122] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0123] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A front-end business deployment method, characterized in that, The method includes: Obtain the development business environment data and the corresponding development task flow template; Based on the development business environment data and the development task flow template, the target development task flow is obtained; A push instruction is generated based on the output of the target development task flow, wherein the push instruction is used to specify the review task of the target development task flow to be reviewed; The preset review task interface is extracted according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result; If the review result is passed, the corresponding target deployment workflow will be generated based on the task development code; Based on the aforementioned target deployment workflow, business deployment is carried out; Before the step of generating a push instruction based on the output of the target development task flow, wherein the push instruction is used to specify the review task of the target development task flow to be reviewed, the method further includes: Create multiple sub-target task flows based on the target development task flow; Based on the task development code of the sub-target task flow, code extraction is performed to obtain several verification task flows; If all the verification task flows pass the preset verification conditions, the code of all the sub-target task flows is merged to obtain the target development task flow after verification. If any of the verification task flows fails the preset verification conditions, a rectification instruction is generated, and the sub-target task flows that failed the verification are suspended.

2. The front-end business deployment method according to claim 1, characterized in that, The method for obtaining the target development task flow based on the development business environment data and the development task flow template specifically includes: Extract the configuration information corresponding to the development business environment data and the development task nodes of the development task flow template; Based on the preset conditions, the configuration information and the development task nodes are used to determine the development task node information that needs to be invoked, and the corresponding target task node information is obtained. The target task node information includes: the target task node called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node; Based on the operational connection relationship of each target task node, the callable target task nodes are connected to obtain the target task development task flow; The target development task flow is executed based on the execution conditions of the target task node.

3. The front-end business deployment method according to claim 2, characterized in that, The target development task flow also includes adjustment task nodes, wherein the adjustment task nodes are used to adjust each of the target task nodes included in the target development task flow, and the adjustment task nodes include adjustment data code and the operation connection relationship of the adjustment task nodes.

4. A front-end business deployment method according to any one of claims 1-3, characterized in that, The acquisition of development business environment data and the corresponding development task flow template includes: The acquired development business environment data is queried in a preset database to obtain a development task flow template corresponding to the development business environment data; or, Based on the acquired development business environment data, construct the development task flow template corresponding to the development business environment data.

5. A front-end business deployment method according to any one of claims 4, characterized in that, After obtaining and displaying the target development task flow based on the development business environment data and the development task flow template, the method further includes: Update the target development task flow based on the new branch task flow entered by the user in the development task flow template.

6. A front-end business deployment system, characterized in that, The system includes: The acquisition module is used to acquire development business environment data and the development task flow template corresponding to the development business environment data; The processing module is used to obtain the target development task flow based on the development business environment data and the development task flow template; Push module: Used to generate push instructions based on the output of the target development task flow, wherein the push instructions are used to specify the review task of the target development task flow to be reviewed. The review module is used to extract a preset review task interface according to the push instruction to perform the review work corresponding to the target development task flow and obtain the review result; Generation module: If the review result is passed, it generates the corresponding target deployment workflow based on the task development code; The deployment module is used to deploy services based on the target deployment workflow; The system also includes: The sub-target task flow creation module is used to create multiple sub-target task flows based on the target development task flow. The code extraction module is used to extract code based on the task development code of the sub-target task flow to obtain several verification task flows; The code merging module is used to merge the code of all the sub-target task flows when all the verification task flows pass the preset verification conditions, so as to obtain the target development task flow after verification. The instruction generation module is used to generate a rectification instruction when any of the verification task flows fails to meet the preset verification conditions, and at the same time suspend the sub-target task flows that failed the verification.

7. A front-end business deployment system according to claim 6, characterized in that, The processing module further includes an extraction subunit, a calling subunit, a connection subunit, and an execution subunit. The system includes: The extraction subunit is used to extract the configuration information corresponding to the development business environment data and the development task nodes of the development task flow template; The calling subunit is used to determine the development task node information to be called based on the configuration information and the development task node according to preset conditions, and to obtain the corresponding target task node information. The target task node information includes: the target task node to be called in the development task flow template, the execution conditions of the target task node, and the running connection relationship of each target task node. The connection subunit is used to connect each of the called target task nodes based on the running connection relationship of each target task node to obtain the target task development task flow; An execution subunit is used to execute the target development task flow under the execution conditions of the target task node.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the front-end service deployment method as described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the front-end service deployment method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Test environment deployment method and apparatus, and storage medium

    CN108595335A

  • Workflow-based service method and device

    CN111651140A