Code updating visualization method, device and equipment and storage medium thereof

By acquiring and analyzing statistical dimensions of code updates and using visualization tools to display code update status, the problem of unintuitive data display and low efficiency of existing tools is solved, and efficient monitoring and progress control of code updates are achieved.

CN121387362APending Publication Date: 2026-01-23PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511320546.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-12
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

Existing code statistics and analysis tools are not intuitive enough in terms of data display, making it difficult to conduct in-depth analysis and intuitive comparison for specific time periods, specific personnel, or specific projects. They also cannot efficiently summarize and display team-level data, and exporting is slow when the code volume is large.

Method used

By acquiring statistical dimensions, the target code is analyzed using pre-set code analysis tools, and the results are displayed in a visual view, including code update visualization methods based on team, project, individual, and time dimensions.

Benefits of technology

It enables efficient, rational, and scientific monitoring of code updates, and can quickly generate team-level data to support the monitoring of the development status and progress of financial business projects and online medical service apps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121387362A_ABST
    Figure CN121387362A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of research, development and design, and relates to a code updating visualization method and device, equipment and a storage medium thereof. Querying a stored target code from a target code library by taking the statistical dimension as a retrieval field; analyzing the target code by adopting a preset code analysis tool to obtain a code analysis result; and the code analysis result is displayed to the visual monitoring end in a visual view mode, and updating visual monitoring of the code is completed. And code updating visual viewing is facilitated or monitoring personnel perform code updating visual viewing according to the statistical dimension, so that progress control is performed on the development condition of the business project code. The method is applied to financial business project code development or medical online service APP development visual monitoring scenes, and the development condition and progress can be monitored and controlled efficiently and quickly.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of research and development design, and is applied to the code updating visualization scene in business project development, and relates to a code updating visualization method, device, equipment and storage medium thereof. BACKGROUND

[0002] In the field of software development and project management, there are many similar code statistics and analysis tools. Most of these tools are committed to providing quantitative data of code library to help team leaders and developers understand project progress and developer contribution. Common similar products provide code submission statistics, developer activity analysis and other functions.

[0003] Although these tools have rich functions in code statistics and analysis, there are still some deficiencies, for example: the data display is not intuitive enough, it is difficult to conduct in-depth analysis and intuitive comparison for a specific time period, specific personnel and specific project; the contribution of individual developers can be displayed, but the contribution data of the entire team in a specific time period cannot be efficiently summarized and displayed, and team dimension data cannot be quickly generated; when cross-project or multiple branches are involved, code data export from the existing code library may be very slow due to the large amount of code. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a code updating visualization method, device, equipment and storage medium thereof, so as to more efficiently, rationally and scientifically perform code updating visualization processing.

[0005] In a first aspect, the embodiments of the present application provide a code updating visualization method, which adopts the technical solution as follows:

[0006] A code updating visualization method includes the following steps:

[0007] Obtain a statistical dimension, wherein the statistical dimension is selected or input by a visualization monitoring end according to visualization monitoring requirements, and the statistical dimension includes at least any one of a team dimension, a project dimension, a personal dimension and a time dimension;

[0008] Query the stored target code from a target code library by taking the statistical dimension as a retrieval field;

[0009] Analyze the target code by using a preset code analysis tool to obtain a code analysis result;

[0010] Display the code analysis result to the visualization monitoring end in a visual view mode to complete the updating visualization monitoring of the code.

[0011] In a second aspect, the embodiments of the present application further provide a code updating visualization device, which adopts the technical scheme as follows:

[0012] A code updating visualization device comprises:

[0013] A statistical dimension acquisition module is configured to acquire a statistical dimension, wherein the statistical dimension is selected or input by a visualization monitoring terminal according to a visualization monitoring requirement, and the statistical dimension comprises at least any one of a team dimension, a project dimension, a personal dimension and a time dimension;

[0014] A target code query module is configured to query a stored target code from a target code library by taking the statistical dimension as a search field;

[0015] A target code analysis module is configured to analyze the target code by using a preset code analysis tool to obtain a code analysis result;

[0016] A visualization display module is configured to display the code analysis result to the visualization monitoring terminal in a visualization view mode to complete the code updating visualization monitoring.

[0017] In a third aspect, the embodiments of the present application further provide a computer device, which adopts the technical scheme as follows:

[0018] A computer device comprises a memory and a processor, the memory stores computer readable instructions, and the processor executes the computer readable instructions to realize the steps of the code updating visualization method.

[0019] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which adopts the technical scheme as follows:

[0020] A computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to realize the steps of the code updating visualization method.

[0021] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0022] The code updating visualization method provided in the embodiments of the present application comprises the following steps: obtaining a statistical dimension; querying a target code stored in a target code library as a search field; using a preset code analysis tool to analyze the target code and obtaining a code analysis result; and displaying the code analysis result in a visual view to a visual monitoring terminal, thereby completing the visual monitoring of the code updating. The code updating visualization method can be used for a code updating visualization view or monitoring personnel to view the code updating according to the statistical dimension, thereby controlling the development progress of the business project code. The code updating visualization method can be applied to the visual monitoring of the development of a financial business project code or a medical online service APP, and can efficiently and quickly monitor and control the development progress. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the scheme in the present application, the drawings needed in the description of the embodiments of the present application will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 is an exemplary system architecture diagram to which the present application can be applied;

[0025] Figure 2 is a flowchart of one embodiment of a code updating visualization method according to the present application;

[0026] Figure 3 is a flowchart of one specific embodiment of constructing a second code library in the code updating visualization method described in the present application;

[0027] Figure 4 is Figure 2 a flowchart of one specific embodiment of the step 202 shown in the figure;

[0028] Figure 5 is Figure 4 a flowchart of one specific embodiment of the step 402 shown in the figure;

[0029] Figure 6 is Figure 4 a flowchart of one specific embodiment of the step 403 shown in the figure;

[0030] Figure 7 is a structural schematic diagram of one embodiment of a code updating visualization device according to the present application;

[0031] Figure 8 is a structural schematic diagram of one embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0032] 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 in the description herein is for describing particular embodiments only and is not intended to be limiting upon the application; the terms "comprising," "having," and "including" and variations thereof herein are meant to cover non-exclusive inclusion; the terms "first," "second," and the like used in the description herein are meant to distinguish between similar objects and are not meant to designate a particular order.

[0033] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily referring to the same embodiment nor are they necessarily all directed to the same embodiment. It is expressly understood that any of the embodiments described herein can be combined with any of the other embodiments.

[0034] In order to make the technical personnel in the art better understand the scheme of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings.

[0035] As shown in Figure 1 The system architecture 100 can include a terminal device 101, a network 102, and a server 103. The terminal device 101 can be a notebook computer 1011, a tablet computer 1012, or a mobile phone 1013. The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103. The network 102 can include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0036] A user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0037] The terminal device 101 can be various electronic devices with a display screen and supporting web browsing, in addition to the notebook computer 1011, the tablet computer 1012 or the mobile phone 1013, the terminal device 101 can also be an electronic book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer and a desktop computer, etc.

[0038] The server 103 can be a server providing various services, for example, a background server providing support for a page displayed on the terminal device 101.

[0039] It should be noted that the code update visualization method provided by the embodiments of the present application is generally executed by a server, and accordingly, the code update visualization device is generally arranged in the server.

[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in

[0041] With reference to Figure 2 , a flow chart of one embodiment of a code update visualization method according to the present application is shown. The code update visualization method includes the following steps:

[0042] Step 201, obtaining a statistical dimension.

[0043] The statistical dimension is selected or input by a visualization monitoring terminal according to a visualization monitoring requirement, and the statistical dimension includes at least any one of a team dimension, a project dimension, a personal dimension and a time dimension.

[0044] More specifically, for example, the team dimension is team dimension identification information, i.e. a team name / department name, etc. Similarly, the project dimension is project dimension identification information, i.e. a project name; the personal dimension is personal dimension identification information, i.e. a personal name / personal ID number, etc.; and the time dimension is a time point or time period information of a code development or writing transmitted into a code library.

[0045] The statistical dimension is obtained so as to facilitate code update visualization viewing or monitoring personnel to view the code update visualization according to the statistical dimension, thereby controlling the progress of the development of the business project code.

[0046] The code update visualization method described in this embodiment can be applied to the code development visualization monitoring scene of a financial service project. For example, when a new online banking service project is developed, the code update visualization method is used to monitor and control the development of the new online banking service project. Of course, the code update visualization method can also be applied to the code development visualization monitoring scene of a medical online service project. For example, when a new medical online service APP is developed, the code update visualization method is used to monitor and control the development of the new medical online service APP.

[0047] In step 202, the target code stored in the target code library is queried from the target code library by taking the statistical dimension as a search field.

[0048] In this embodiment, the target code is the new development code input when a specific service project is developed.

[0049] In step 203, the target code is analyzed by using a preset code analysis tool to obtain a code analysis result.

[0050] Specifically, when the target code is analyzed by using the preset code analysis tool, the target code is analyzed according to the preset multi-dimensional analysis dimension, so as to obtain a multi-dimensional code analysis result.

[0051] In step 204, the code analysis result is displayed to the visualization monitoring end in a visual view mode, and the code update visualization monitoring is completed.

[0052] Specifically, the visualization conversion tool and the visualization display interface are connected in advance. After the code analysis result is obtained, the code analysis result is displayed to the visualization monitoring end in a visual view mode, and the code update visualization monitoring is completed.

[0053] In this embodiment, the statistical dimension is obtained, the target code stored in the target code library is queried from the target code library by taking the statistical dimension as a search field, the target code is analyzed by using a preset code analysis tool to obtain a code analysis result, and the code analysis result is displayed to the visualization monitoring end in a visual view mode, and the code update visualization monitoring is completed. Therefore, the code update visualization checking or monitoring personnel can check the code update visualization according to the statistical dimension, so as to control the development of the service project code. The code update visualization method can be applied to the code development visualization monitoring scene of a financial service project or a medical online service APP, and the development and progress can be efficiently and quickly monitored and controlled.

[0054] With reference to Figure 3In some optional implementations, before performing the step 202, the method further comprises a step of performing a second code library construction, Figure 3 is a flowchart of one specific embodiment of performing a second code library construction in the code update visualization method described in the present application, comprising the following steps:

[0055] Step 301, according to a preset first screening strategy, screening common type code shared by multiple development projects from a first code library, wherein the first screening strategy comprises common type tool class code screening and common type function plug-in code screening;

[0056] Specifically, common type tool class code or common type function plug-in code (such as login plug-in, SMS verification plug-in) is screened from the first code library, and the common type code is stored separately, so as to avoid excessive code quantity in the first code library and affect subsequent processing efficiency.

[0057] Step 302, according to a preset second screening strategy, screening common code corresponding to each development project from the first code library, wherein the second screening strategy comprises screening common code according to the total frequency of calling each code block or execution function;

[0058] Specifically, common code corresponding to each development project is screened from the first code library, and the common code is stored separately, so as to avoid excessive code quantity in the first code library and affect subsequent processing efficiency.

[0059] Step 303, according to a preset third screening strategy, screening recently developed code from the first code library, wherein the recent refers to a time period between a target previous time point and a current time point, and the third screening strategy comprises screening recently developed code by taking the time period between the target previous time point and the current time point as a screening limiting parameter;

[0060] Specifically, when visualizing code update, the code involved is mostly recently developed code, so the recently developed code is screened from the first code library and stored separately, so as to avoid directly and blindly querying target code from the first code library with large code quantity, and to make the method more reasonable and scientific.

[0061] Step 304, storing the common type code, the common code and the recently developed code to a preset cache space, and constructing a second code library.

[0062] By copying the common code, the frequently used code and the newly developed code to the preset cache space, a second code library is constructed, so that when the code updating visualization processing is performed, the newly developed code is queried from the second code library, and the target code is not blindly queried from the first code library with a large amount of code, so that the code updating visualization processing is more efficient, reasonable and scientific.

[0063] In the embodiment, the target code library includes the first code library and the second code library, wherein the first code library includes a GitLab code library or a GitHub code library, and the first code library generally stores a large amount of code, and the second code library is code extracted from the first code library according to a certain filtering strategy, for example, this month's newly added code, this week's newly added code, etc.

[0064] By introducing the cache mechanism, the frequently used or recently developed data is directly introduced into the second code library, the frequent access to the Git repository (the first code library) is reduced, and the data processing speed is further improved.

[0065] With reference to Figure 4 , Figure 4 is Figure 2 a flowchart of one specific embodiment of step 202, including the following steps:

[0066] Step 401, identifying whether the statistical dimension includes a time dimension;

[0067] Step 402, if the statistical dimension includes a time dimension and the statistical condition corresponding to the time dimension is real-time statistics, acquiring a real-time statistical parameter, constructing a code query instruction with the real-time statistical parameter, and executing the code query instruction to acquire real-time code of the target statistical dimension from the first code library;

[0068] Step 403, if the statistical dimension does not include a time dimension or the statistical dimension includes a time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, taking the statistical dimension as a search field to acquire code of the target statistical dimension from the second code library or / and the first code library.

[0069] With reference to Figure 5 , Figure 5 is Figure 4 a flowchart of one specific embodiment of step 402, including the following steps:

[0070] Step 501, according to a preset system time acquisition function, extracting the current system time, and taking the current system time as the real-time statistical parameter;

[0071] Step 502, the real-time statistical parameter is taken as a code query control parameter, and a code query instruction is constructed in combination with a preset instruction construction template, wherein the preset instruction construction template includes an instruction construction template provided by a Git log API, for example, "git log --after="the real-time statistical parameter" provided in the Git log API, which indicates that the code submitted after the real-time statistical parameter is displayed, and the code submitted at a time point corresponding to the real-time statistical parameter is included.

[0072] Step 503, the code query instruction is executed to obtain real-time code of the target statistical dimension from the first code library, wherein the first code library includes a GitLab code library or a GitHub code library.

[0073] In the embodiment, before the step of executing the code query instruction to obtain code of the target statistical dimension from the second code library or / and the first code library, the method further includes: setting a priority of code acquisition from the second code library to be higher than that of code acquisition from the first code library; and setting the priority of code acquisition from the second code library to be higher than that of code acquisition from the first code library, so as to preferentially perform new development code query from the second code library, avoid blindly performing target code query from the first code library with a large amount of code, and be more efficient, reasonable and scientific, which also helps to improve the query efficiency.

[0074] With reference to Figure 6 , Figure 6 is Figure 4 a flowchart of one specific embodiment of step 403, including the following steps:

[0075] Step 601, code of the target statistical dimension is obtained from the second code library by taking the statistical dimension as a search field;

[0076] Step 602, if the code of the target statistical dimension obtained from the second code library is a null value, code of the target statistical dimension is obtained from the first code library by taking the statistical dimension as a search field.

[0077] Specifically, if the code of the target statistical dimension obtained from the second code library is a null value, it indicates that the newly submitted development code in the first code library, i.e., the GitLab code library or the GitHub code library, has not been transferred to the second code library, and therefore, code of the target statistical dimension is obtained from the first code library by taking the statistical dimension as a search field. If the code of the target statistical dimension obtained from the second code library is not a null value, target code can be additionally obtained from the first code library in combination with a specific statistical dimension.

[0078] In the embodiment, the step of obtaining the code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as the search field further comprises: if the statistical dimension does not contain the time dimension, parsing the dimension identification information from the statistical dimension; determining whether the dimension identification information is single identification information; if the dimension identification information is single identification information and is only team dimension identification information, obtaining the update code uploaded by all members under the team dimension identification information from the second code library or / and the first code library by taking the team dimension identification information as the search field; if the dimension identification information is single identification information and is only project dimension identification information, obtaining the update code under the directory corresponding to the project dimension identification information from the second code library or / and the first code library by taking the project dimension identification information as the search field; if the dimension identification information is single identification information and is only personal dimension identification information, obtaining the update code uploaded by the developer corresponding to the personal dimension identification information from the second code library or / and the first code library by taking the personal dimension identification information as the search field; and if the dimension identification information is not single identification information, obtaining the update code corresponding to different dimension identification information from the second code library or / and the first code library according to the acquisition priority set in advance for different dimension identification information.

[0079] In the embodiment, the step of obtaining the code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as the search field further comprises: if the statistical dimension contains the time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, parsing the statistical dimension to obtain the time dimension identification information and other dimension identification information corresponding to the non-real-time statistics, wherein the other dimension identification information comprises team dimension identification information, project dimension identification information or / and personal dimension identification information; taking the time dimension identification information as the first restriction parameter for collaborative acquisition and taking the other dimension identification information as other restriction parameters for collaborative acquisition, and collaboratively obtaining the corresponding update code from the second code library or / and the first code library.

[0080] Specifically, if the statistical dimension contains the time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, that is, the statistical dimension at least contains the time dimension, for example, obtaining the code developed by the developer with the worker number 12002 during the period from May 6, 2025 to June 6, 2025. Obviously, this involves collaborative acquisition, that is, the acquisition condition contains the time dimension information and also contains the personal dimension identification information.

[0081] In the embodiment, the step of analyzing the target code by using the preset code analysis tool to obtain a code analysis result, i.e., step 203, specifically includes: counting, by the code analysis tool, the total number of lines of the target code, the code data volume contained in the target code, the number of code vocabularies contained in the target code, the number of execution functions contained in the target code, the number of code blocks contained in the target code, the submission time of the target code, the identifier information of the submitter of the target code, the team identifier information to which the submitter belongs, and all project identifier information related to the target code.

[0082] In the embodiment, the step of displaying the code analysis result to the visual monitoring end in a visual view mode to complete the visual monitoring of the code update, i.e., step 204, specifically includes: displaying the total number of lines of the target code, the code data volume contained in the target code, the number of code vocabularies contained in the target code, the number of execution functions contained in the target code, the number of code blocks contained in the target code, the submission time of the target code, the identifier information of the submitter of the target code, the team identifier information to which the submitter belongs, and all project identifier information related to the target code to the visual monitoring end in a visual view mode to complete the visual monitoring of the code update.

[0083] In the embodiment, the statistical dimension is acquired, the stored target code is queried from the target code library by taking the statistical dimension as a search field, the target code is analyzed by using a preset code analysis tool to obtain a code analysis result, the code analysis result is displayed to the visual monitoring end in a visual view mode to complete the visual monitoring of the code update. This facilitates the code update visual checking or monitoring personnel to check the code update visually according to the statistical dimension, thereby controlling the development progress of the business project code. When applied to the visual monitoring scene of the financial business project code development or the medical online service APP development, the development progress and schedule can be monitored and controlled efficiently and quickly.

[0084] The embodiments of the application can acquire and process related data based on artificial intelligence technology. Artificial intelligence (AI) is a theory, method, technology and application system for simulating, extending and expanding human intelligence by using a digital computer or a machine controlled by a digital computer to perceive an environment, acquire knowledge and use the knowledge to obtain optimal results.

[0085] The artificial intelligence basic technology generally includes technologies such as sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction system, mechatronics, etc. The artificial intelligence software technology mainly includes computer vision technology, robot technology, biometric identification technology, speech processing technology, natural language processing technology, and machine learning / deep learning, etc.

[0086] In the embodiment, the statistical dimension is acquired; the stored target code is queried from the target code library by taking the statistical dimension as a search field; the target code is analyzed by using a preset code analysis tool to obtain a code analysis result; and the code analysis result is displayed to the visual monitoring end in a visual view mode to complete visual monitoring of code updating. This facilitates code updating visual viewing or monitoring personnel to view the code updating according to the statistical dimension, thereby controlling the development progress of the business project code. When applied to the financial business project code development or medical online service APP development visual monitoring scene, the development progress and schedule can be efficiently and quickly monitored and controlled.

[0087] Further referring to Figure 7 , as an implementation of the method shown in Figure 2 , the present application provides an embodiment of a code updating visual device. The device embodiment corresponds to the method embodiment shown in Figure 2 . The device can be applied to various electronic devices.

[0088] As shown in Figure 7 , the code updating visual device 700 includes a statistical dimension acquisition module 701, a target code query module 702, a target code analysis module 703, and a visual display module 704. Wherein:

[0089] The statistical dimension acquisition module 701 is configured to acquire a statistical dimension, wherein the statistical dimension is selected or input by the visual monitoring end according to visual monitoring requirements, and the statistical dimension includes at least any one of a team dimension, a project dimension, a personal dimension, and a time dimension;

[0090] The target code query module 702 is configured to query the stored target code from the target code library by taking the statistical dimension as a search field;

[0091] The target code analysis module 703 is configured to analyze the target code by using a preset code analysis tool to obtain a code analysis result;

[0092] The visual display module 704 is configured to display the code analysis result to the visual monitoring end in a visual view mode to complete visual monitoring of code updating.

[0093] The application obtains a statistical dimension, queries stored target code from a target code library by taking the statistical dimension as a search field, analyzes the target code by using a preset code analysis tool to obtain a code analysis result, and displays the code analysis result to the visual monitoring end in a visual view mode to complete visual monitoring of code updating. This facilitates code updating visual viewing or monitoring personnel to view the code updating according to the statistical dimension, thereby controlling the development progress of a business project code. The application can be applied to a financial business project code development or medical online service APP development visual monitoring scene to efficiently and quickly monitor and control the development progress and schedule.

[0094] In the embodiment, the code updating visual device 700 further includes a public code screening module, a commonly used code screening module, a recent code screening module, and a second code library construction module. Specifically,

[0095] The public code screening module is configured to screen public codes commonly used by multiple development projects from the first code library according to a preset first screening strategy, wherein the first screening strategy includes public tool class code screening and public function plug-in code screening.

[0096] The commonly used code screening module is configured to screen commonly used codes corresponding to each development project from the first code library according to a preset second screening strategy, wherein the second screening strategy includes commonly used code screening according to a total frequency of calling each code block or execution function.

[0097] The recent code screening module is configured to screen recently developed codes from the first code library according to a preset third screening strategy, wherein the recent refers to a time period between a previous time point and a current time point, and the third screening strategy includes recent developed code screening with the time period between the previous time point and the current time point as a screening limiting parameter.

[0098] The second code library construction module is configured to store the public codes, the commonly used codes, and the recently developed codes to a preset cache space to construct a second code library.

[0099] In the embodiment, the target code query module 702 includes a time dimension identification unit, a target code first query unit, and a target code second query unit. Specifically,

[0100] The time dimension identification unit is configured to identify whether the statistical dimension contains a time dimension.

[0101] The target code first query unit is configured to, if the statistical dimension contains a time dimension and a statistical condition corresponding to the time dimension is real-time statistics, acquire a real-time statistical parameter, construct a code query instruction based on the real-time statistical parameter, and execute the code query instruction to acquire real-time code of the target statistical dimension from the first code library.

[0102] The target code second query unit is configured to, if the statistical dimension does not contain a time dimension or the statistical dimension contains a time dimension but a statistical condition corresponding to the time dimension is not real-time statistics, acquire code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as a search field.

[0103] In this embodiment, the target code query module 702 further includes a real-time statistical parameter acquisition unit, a code query instruction construction unit and a code query instruction execution unit. Among them:

[0104] The real-time statistical parameter acquisition unit is configured to extract a current system time based on a preset system time acquisition function, and take the current system time as the real-time statistical parameter;

[0105] The code query instruction construction unit is configured to take the real-time statistical parameter as a code query control parameter, and construct a code query instruction based on a preset instruction construction template. The preset instruction construction template includes an instruction construction template provided by a Git log API.

[0106] The code query instruction execution unit is configured to execute the code query instruction to acquire real-time code of the target statistical dimension from the first code library.

[0107] In this embodiment, the code updating visual device 700 further includes a code library priority setting module, which is configured to set a priority of acquiring code from the second code library to be higher than a priority of acquiring code from the first code library.

[0108] In this embodiment, the target code second query unit is configured to first acquire code of the target statistical dimension from the second code library by taking the statistical dimension as a search field, and further configured to, if the code of the target statistical dimension acquired from the second code library is a null value, acquire code of the target statistical dimension from the first code library by taking the statistical dimension as a search field.

[0109] In this embodiment, the code updating visual device 700 further includes a dimension identification information analysis module, a single identification information judgment module, a target code first acquisition module, a target code second acquisition module, a target code third acquisition module, a target code fourth acquisition module and a target code fifth acquisition module. Among them:

[0110] dimension identification information from the statistical dimension; and if the statistical dimension contains a time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, parsing the statistical dimension to obtain the time dimension identification information and other dimension identification information corresponding to the non-real-time statistics, wherein the other dimension identification information includes team dimension identification information, project dimension identification information, or / and personal dimension identification information.

[0111] single identification information determination module, configured to determine whether the dimension identification information is single identification information;

[0112] target code first obtaining module, configured to, if the dimension identification information is single identification information and is only team dimension identification information, take the team dimension identification information as a search field to obtain the update code uploaded by all members under the team dimension identification information from the second code library or / and the first code library;

[0113] target code second obtaining module, configured to, if the dimension identification information is single identification information and is only project dimension identification information, take the project dimension identification information as a search field to obtain the update code under the corresponding directory of the project dimension identification information from the second code library or / and the first code library;

[0114] target code third obtaining module, configured to, if the dimension identification information is single identification information and is only personal dimension identification information, take the personal dimension identification information as a search field to obtain the update code uploaded by the corresponding developer of the personal dimension identification information from the second code library or / and the first code library;

[0115] target code fourth obtaining module, configured to, if the dimension identification information is not single identification information, according to the obtaining priority set in advance for different dimension identification information, obtain the update code corresponding to different dimension identification information from the second code library or / and the first code library in sequence.

[0116] target code fifth obtaining module, configured to take the time dimension identification information as a cooperative obtaining first limiting parameter, and take other dimension identification information as a cooperative obtaining other limiting parameter, and cooperatively obtain the corresponding update code from the second code library or / and the first code library.

[0117] In the embodiment, the target code analysis module 703 is specifically configured to count, by the code analysis tool, the total line number of the target code, the code data volume contained in the target code, the code vocabulary quantity contained in the target code, the execution function quantity contained in the target code, the code block quantity contained in the target code, the submission time of the target code, the submitter identification information of the target code, the team identification information to which the submitter belongs, and all project identification information related to the target code.

[0118] In the embodiment, the visualization display module 704 is specifically configured to display the total line number of the target code, the code data volume contained in the target code, the code vocabulary quantity contained in the target code, the execution function quantity contained in the target code, the code block quantity contained in the target code, the submission time of the target code, the submitter identification information of the target code, the team identification information to which the submitter belongs, and all project identification information related to the target code in a visual view to the visualization monitoring terminal, thereby completing the update visualization monitoring of the code.

[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by computer readable instructions instructing related hardware, and the computer readable instructions can be stored in a computer readable storage medium. When the program is executed, the processes of the above-mentioned embodiments can be included. The storage medium can be a non-volatile storage medium such as a magnetic disc, an optical disc, a read-only memory (ROM), or a random access memory (RAM).

[0120] It should be understood that, although each step in the flowchart of the accompanying drawings is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and they can be executed in other sequences. Moreover, at least part of the steps in the flowchart of the accompanying drawings can include multiple sub-steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or sub-steps or stages of other steps.

[0121] To solve the above technical problems, the embodiment of the present application further provides a computer device. For details, please refer to Figure 8 , Figure 8 The basic structure block diagram of the computer device of the embodiment is shown in the following figure.

[0122] The computer device 8 comprises a memory 8a, a processor 8b, and a network interface 8c which are communicatively connected by a system bus. It should be noted that, Figure 8 The computer device 8 is only shown with the components of the memory 8a, the processor 8b, and the network interface 8c, but it should be understood that all the shown components are not required to be implemented, and more or fewer components can be alternatively implemented. Here, the computer device is understood by those skilled in the art as a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0123] The computer device can be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The computer device can interact with a user through a keyboard, a mouse, a remote controller, a touchpad, a voice control device, or the like.

[0124] The memory 8a comprises at least one type of readable storage medium, including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 8a can be an internal storage unit of the computer device 8, such as a hard disk or a memory of the computer device 8. In other embodiments, the memory 8a can also be an external storage device of the computer device 8, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. of the computer device 8. Of course, the memory 8a can also include both the internal storage unit and the external storage device of the computer device 8. In the present embodiment, the memory 8a is generally used to store an operating system and various application software installed in the computer device 8, such as computer readable instructions of a code updating visualization method, etc. In addition, the memory 8a can also be used to temporarily store various data which have been output or will be output.

[0125] The processor 8b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 8b is generally used to control the overall operation of the computer device 8. In the present embodiment, the processor 8b is configured to run computer-readable instructions stored in the memory 8a or process data, such as computer-readable instructions of the code update visualization method.

[0126] The network interface 8c may include a wireless network interface or a wired network interface, and is generally used to establish a communication connection between the computer device 8 and other electronic devices.

[0127] The computer device provided in the present embodiment belongs to the technical field of research and development design, and is applied to the code update visualization scenario in the development of a business project. The statistical dimension is obtained, the target code stored in the target code library is queried from the target code library by taking the statistical dimension as a search field, the target code is analyzed by using a preset code analysis tool to obtain a code analysis result, and the code analysis result is displayed to the visualization monitoring end in a visual view mode to complete the visualization monitoring of the code update. This facilitates the code update visualization viewing or monitoring personnel to view the code update according to the statistical dimension, thereby controlling the development progress of the business project code. The present application is applied to the visualization monitoring scenario in the development of a financial business project code or a medical online service APP, and can efficiently and quickly monitor and control the development progress.

[0128] The present application also provides another implementation, that is, a computer readable storage medium storing computer readable instructions, which can be executed by a processor to make the processor execute the steps of a code update visualization method as described above.

[0129] The computer readable storage medium provided in the present embodiment belongs to the technical field of research and development design, and is applied to the code update visualization scenario in the development of a business project. The statistical dimension is obtained, the target code stored in the target code library is queried from the target code library by taking the statistical dimension as a search field, the target code is analyzed by using a preset code analysis tool to obtain a code analysis result, and the code analysis result is displayed to the visualization monitoring end in a visual view mode to complete the visualization monitoring of the code update. This facilitates the code update visualization viewing or monitoring personnel to view the code update according to the statistical dimension, thereby controlling the development progress of the business project code. The present application is applied to the visualization monitoring scenario in the development of a financial business project code or a medical online service APP, and can efficiently and quickly monitor and control the development progress.

[0130] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, also can be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a plurality of instructions to make a terminal device (may be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present application.

[0131] Obviously, the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments, and the preferred embodiments of the present application are given in the drawings, but do not limit the patent scope of the present application. The present application can be realized in many different forms, and conversely, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing specific embodiments, or make equivalent replacements to some technical features. Any equivalent structure made by using the content of the specification and drawings, directly or indirectly applied to other related technical fields, is also within the scope of the patent protection of the present application. The non-company software tools or components appearing in the embodiments of the present application are only illustrative, not representing the actual use.

Claims

1. A code update visualization method, characterized by, The method comprises the following steps: acquiring a statistical dimension, wherein the statistical dimension is selected or input by a visual monitoring terminal according to a view monitoring requirement, and the statistical dimension comprises at least any one of a team dimension, a project dimension, a personal dimension, and a time dimension; querying stored target code from a target code library by taking the statistical dimension as a search field; analyzing the target code by using a preset code analysis tool to obtain a code analysis result; displaying the code analysis result to the visual monitoring terminal in a visual view mode to complete visual monitoring of code updating.

2. The code update visualization method of claim 1, wherein, Before the step of querying the stored target code from the target code library by taking the statistical dimension as the search field, the method further comprises the following steps: filtering common type code shared by multiple development projects from a first code library according to a preset first filtering strategy, wherein the first filtering strategy comprises common type tool class code filtering and common type function plug-in code filtering; filtering common code corresponding to each development project respectively from the first code library according to a preset second filtering strategy, wherein the second filtering strategy comprises common code filtering according to a total frequency of calling of each code block or execution function; filtering recently developed code from the first code library according to a preset third filtering strategy, wherein the recent period refers to a time period between a target previous time point and a current time point, and the third filtering strategy comprises recent developed code filtering by taking the time period between the target previous time point and the current time point as a filtering limiting parameter; storing the common type code, the common code, and the recently developed code to a preset cache space to build a second code library.

3. The code update visualization method of claim 2, wherein, The target code library comprises the first code library and the second code library, and the step of querying the stored target code from the target code library by taking the statistical dimension as the search field specifically comprises the following steps: identifying whether the statistical dimension comprises a time dimension; if the statistical dimension comprises the time dimension and a statistical condition corresponding to the time dimension is real-time statistics, acquiring a real-time statistical parameter, constructing a code query instruction by taking the real-time statistical parameter, and executing the code query instruction to acquire real-time code of the target statistical dimension from the first code library; if the statistical dimension does not comprise the time dimension or the statistical dimension comprises the time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, acquiring code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as the search field.

4. The code update visualization method of claim 3, wherein, The step of acquiring the real-time statistical parameter and constructing the code query instruction by taking the real-time statistical parameter, and executing the code query instruction to acquire the real-time code of the target statistical dimension from the first code library specifically comprises the following steps: extracting a system current time by taking a preset system time acquisition function, and taking the system current time as the real-time statistical parameter. The real-time statistical parameter is taken as a code query control parameter, and a code query instruction is constructed by combining a preset instruction construction template, where the preset instruction construction template includes an instruction construction template provided by a Git log API. The code query instruction is executed to obtain real-time code of a target statistical dimension from the first code library, where the first code library includes a GitLab code library or a GitHub code library.

5. The code update visualization method of claim 3, wherein, Before the step of searching for code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as a search field, the method further includes: Setting a priority of code acquisition from the second code library to be higher than that of code acquisition from the first code library. The step of searching for code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as a search field includes: First, searching for code of the target statistical dimension from the second code library by taking the statistical dimension as a search field. If the code of the target statistical dimension obtained from the second code library is a null value, searching for code of the target statistical dimension from the first code library by taking the statistical dimension as a search field.

6. The code update visualization method of claim 3, wherein, The step of searching for code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as a search field further includes: If the statistical dimension does not include a time dimension, parsing dimension identification information from the statistical dimension. Determining whether the dimension identification information is single identification information. If the dimension identification information is single identification information and is only team dimension identification information, searching for updated code uploaded by all members under the team dimension identification information from the second code library or / and the first code library by taking the team dimension identification information as a search field. If the dimension identification information is single identification information and is only project dimension identification information, searching for updated code under a directory corresponding to the project dimension identification information from the second code library or / and the first code library by taking the project dimension identification information as a search field. If the dimension identification information is single identification information and is only personal dimension identification information, searching for updated code uploaded by a developer corresponding to the personal dimension identification information from the second code library or / and the first code library by taking the personal dimension identification information as a search field. If the dimension identification information is not single identification information, according to an acquisition priority set in advance for different dimension identification information, updated code corresponding to different dimension identification information is sequentially obtained from the second code library or / and the first code library.

7. The code update visualization method of claim 3, wherein, The step of searching for code of the target statistical dimension from the second code library or / and the first code library by taking the statistical dimension as a search field further includes: If the statistical dimension includes a time dimension but the statistical condition corresponding to the time dimension is not real-time statistics, the statistical dimension is parsed to obtain the time dimension identifier information and other dimension identifier information corresponding to the non-real-time statistics, wherein the other dimension identifier information includes team dimension identifier information, project dimension identifier information, or / and personal dimension identifier information; The time dimension identifier information is used as a cooperative acquisition of a first restriction parameter, and the other dimension identifier information is used as a cooperative acquisition of other restriction parameters, and corresponding update codes are cooperatively acquired from the second code library or / and the first code library.

8. The code update visualization method of claim 1, wherein, The step of analyzing the target code by using the preset code analysis tool to obtain a code analysis result specifically includes: The total line number of the target code, the code data volume contained in the target code, the code vocabulary quantity contained in the target code, the execution function quantity contained in the target code, the code block block number contained in the target code, the submission time of the target code, the submitter identifier information of the target code, the team identifier information to which the submitter belongs, and all project identifier information related to the target code are counted by using the code analysis tool. The step of displaying the code analysis result to the visual monitoring end in a visual view mode to complete the update visual monitoring of the code specifically includes: The total line number of the target code, the code data volume contained in the target code, the code vocabulary quantity contained in the target code, the execution function quantity contained in the target code, the code block block number contained in the target code, the submission time of the target code, the submitter identifier information of the target code, the team identifier information to which the submitter belongs, and all project identifier information related to the target code are displayed to the visual monitoring end in a visual view mode to complete the update visual monitoring of the code.

9. A code update visualisation apparatus, characterised in that, The method comprises: The statistical dimension acquisition module is configured to acquire a statistical dimension, wherein the statistical dimension is selected or input by the visual monitoring end according to a visual monitoring requirement, and the statistical dimension includes at least any one of a team dimension, a project dimension, a personal dimension, and a time dimension; The target code query module is configured to query the stored target code from a target code library by taking the statistical dimension as a retrieval field; The target code analysis module is configured to analyze the target code by using a preset code analysis tool to obtain a code analysis result; The visual display module is configured to display the code analysis result to the visual monitoring end in a visual view mode to complete the update visual monitoring of the code.

10. A computer device, comprising: The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by the processor to realize the steps of the code update visual method in any one of claims 1 to 8.

11. A computer readable storage medium, characterized in that, The computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by the processor to realize the steps of the code update visual method in any one of claims 1 to 8.