CN117648122A - Visual code warehouse optimization method, system, equipment and storage medium - Google Patents

Visual code warehouse optimization method, system, equipment and storage medium Download PDF

Info

Publication number
CN117648122A
CN117648122A CN202410102071.6A CN202410102071A CN117648122A CN 117648122 A CN117648122 A CN 117648122A CN 202410102071 A CN202410102071 A CN 202410102071A CN 117648122 A CN117648122 A CN 117648122A
Authority
CN
China
Prior art keywords
code
configuration
configuration area
user
repository
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410102071.6A
Other languages
Chinese (zh)
Inventor
王鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yitan Network Technology Co ltd
Original Assignee
Beijing Yitan Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yitan Network Technology Co ltd filed Critical Beijing Yitan Network Technology Co ltd
Priority to CN202410102071.6A priority Critical patent/CN117648122A/en
Publication of CN117648122A publication Critical patent/CN117648122A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a visual code warehouse optimization method, a system, equipment and a storage medium, which comprise the following steps: providing a loading information configuration interface, wherein the loading information configuration interface comprises a first configuration area for configuring the address of a code warehouse, and loading codes in the code warehouse to be optimized to the local; providing an analysis information configuration interface, wherein the analysis information configuration interface comprises a second configuration area for analyzing function configuration and a third configuration area for displaying analysis results; analyzing the codes and displaying the codes in a third configuration area; providing an execution function configuration interface, wherein the execution function configuration interface comprises a fourth configuration area for executing deletion and a fifth configuration area for executing pushing; deleting the code to be deleted to generate a change record; pushing the change records to corresponding first server addresses of the code warehouse. The invention can simplify the operation complexity of the code warehouse, is convenient for users to intuitively optimize the code warehouse according to different service demands, and saves the storage cost of the code warehouse.

Description

Visual code warehouse optimization method, system, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a system, an apparatus, and a storage medium for optimizing a visual code repository.
Background
Code management tools, also called code hosting and collaboration tools, are becoming increasingly important tools for modern software development enterprises to improve production efficiency and quality in the software development process, and are becoming important choices in code management, version control, and collaborative development. Currently, most of the code warehouses of companies adopt Git as version management, and all version files in the development process are saved as version management tools. With the expansion of team scale, the continuous iteration and the new addition of the code warehouse in the project can lead to the increasing of the Git warehouse, thereby leading to the shortage of storage space and the increase of time consumption for warehouse downloading. At this time, the garbage files with long history in the warehouse need to be cleaned, but according to the current cleaning mode, developers need to execute the deleting operation step by step under the condition of knowing the Git operation command and the command line operation step, the command line operation is complex, in addition, the operation of deleting codes can only be deleted once, the operation of deleting a plurality of files needs to be repeatedly executed for a plurality of times, and the problems of extremely low efficiency, higher requirement on the use learning threshold and skill of operators and more complex installation and maintenance exist.
It should be noted that the information disclosed in the foregoing background section is only for enhancement of understanding of the background of the invention and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a visual code warehouse optimization method, a system, equipment and a storage medium, which are used for replacing the optimization of a code warehouse in the prior art in a command line mode.
The embodiment of the invention also provides a visual code warehouse optimization method, which comprises the following steps:
providing a loading information configuration interface on a client loading module, wherein a loading information configuration page comprises a first configuration area for configuring a code warehouse address;
responding to the setting of a user in a first configuration area to acquire a code warehouse to be optimized, and loading codes in the code warehouse to be optimized to the local;
providing an analysis information configuration interface on the client analysis module, wherein the analysis information configuration interface comprises a second configuration area for analysis function configuration and a third configuration area for displaying analysis results;
responding to the setting of the user in the second configuration area, analyzing the code and displaying the code in the third configuration area;
providing an execution function configuration interface on the client execution module, wherein the execution function configuration interface comprises a fourth configuration area for executing deletion and a fifth configuration area for executing pushing;
deleting the code to be deleted in response to the selection operation of the user on the third configuration area and the setting of the fourth configuration area, and generating a change record;
and responding to the setting of the user in the fifth configuration area, and pushing the change record to the corresponding first server address of the code warehouse.
Further, the first configuration area includes a server-side code repository configuration option, a local code repository configuration option, and a scan local folder configuration option.
Further, the server-side code repository configuration option includes a server-side code repository address setting area, and when the user configures a corresponding first server address of the code repository in the server-side code repository address setting area, the obtaining of the code repository to be optimized is set to be implemented by executing the loading script.
Further, the second configuration area includes an analyze by code file size option, a create time analyze by code option, a call time analyze by code option, and an analyze by custom rule option.
Further, the response user is configured to implement by executing the analysis script in response to the setting of the second configuration area.
Further, the selection operation of responding to the user to the codes to be optimized in the third configuration area is set to check box selection of the analyzed codes to be optimized in the third configuration area.
Further, in response to the setting of the user in the fifth configuration area, the method is set to call the push script.
Further, the visual code warehouse optimization method further comprises a code backup method, and the visual code warehouse optimization method comprises the following steps:
after the setting of the fourth configuration area, popping up a window for confirming the setting of the fourth configuration area again by the user;
responding to the user to confirm the setting of the fourth configuration area again, and generating a backup code by the codes to be deleted of the third configuration area selected by the user;
and deleting the code to be deleted, and generating a change record.
Further, in response to the setting of the user in the fifth configuration area, pushing the backup code to a preset second server address.
The embodiment of the invention also provides a visual code warehouse optimization system for realizing the visual code warehouse optimization method, the system comprises a client and a server, the client comprises a loading module, an analysis module and an execution module, the server is provided with a second server address, and the server receives and stores the backup code sent by the execution module through the second server address.
The embodiment of the invention also provides visual code warehouse optimizing equipment, which comprises the following steps:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the visual code warehouse optimization method via execution of the executable instructions.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the visual code warehouse optimization method.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
The visual code warehouse optimization method, the system, the equipment and the storage medium have the following beneficial effects:
the invention can simplify the operation complexity of the code warehouse, is convenient for users to intuitively optimize the code warehouse according to different service demands, simplifies the code warehouse optimization flow, improves the operation efficiency and saves the storage cost of the code warehouse.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings.
FIG. 1 is a schematic diagram of a visual code repository optimization client according to an embodiment of the present invention;
FIG. 2 is a flow chart of a visual code repository optimization method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a code backup method of a visual code repository optimization method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a visual code repository optimization client loading information configuration interface according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a first portion of a visual code repository optimization client analysis module analysis information configuration interface according to one embodiment of the present invention;
FIG. 6 is a schematic diagram of a visual code repository optimization client analysis module analysis information configuration interface second portion and execution module execution function configuration interface according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a visual code repository optimization client execution module secondary validation interface according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the visual code warehouse optimization apparatus of an embodiment of the present invention;
fig. 9 is a schematic structural view of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only and not necessarily all steps are included. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
As shown in fig. 1, an embodiment of the present invention provides a visual code repository optimization client, which includes a loading module M100, an analyzing module M200 and an executing module M300, where the loading module M100 is configured to load a code in a code repository to be optimized to a local place, the analyzing module M200 is configured to analyze the code and display an analysis result, and the executing module M300 is configured to delete the code to be deleted, generate a change record and push the change record to a corresponding first server address of the code repository. The first server address is defined as the server address where the code repository is located.
And the loading module M100 is used for loading codes in the local or remote code warehouse to be optimized and pulling the remote code warehouse to a local operation.
The analysis module M200 is configured to analyze and display a code repository specified to be analyzed according to a preset rule, for example, analyze according to a code size, analyze according to a code file name, analyze according to a time of creating a code file, or analyze according to an update time of the code file, and display an analysis result so as to facilitate a user to perform a selection operation of a code to be deleted.
Optionally, the analysis module M200 may further analyze according to a rule customized by a user, and store the customized rule for subsequent selection. Such as providing attributes such as creation, update time, modification time, file size, etc., creating custom analysis rules in conjunction with logical operators.
The execution module M300 is configured to perform deletion execution of the code to be deleted, and provide a function of secondary confirmation during the execution, so as to prevent misoperation of the user. In addition, the execution module M300 is responsible for recording change on the optimized code warehouse and pushing the record change back to the code warehouse so as to complete optimization of the remote code warehouse.
Optionally, the execution module M300 has a code backup function, and since the optimization operation in the remote code repository is unrecoverable, in order to ensure traceability, a backup operation for the code file to be deleted is added to the execution module M300 and a backup file is generated. The backup file may be backed up locally.
Optionally, the execution module M300 has a sending function, and sends the backup file to a second server address, i.e. another server address, default by the client execution module M300 or set by the user.
Optionally, the visual code warehouse optimizing client can be realized by adopting a mode of independently developing the app, and each module of the client can be realized in the form of a plug-in at the existing git client.
As shown in fig. 2, an embodiment of the present invention provides a visual code repository optimization method, including the following steps:
s100: providing a loading information configuration interface on the client loading module M100, wherein the loading information configuration page comprises a first configuration area for configuring a code warehouse address;
in this embodiment, the loading information configuration interface is an interface for configuring the address of the code repository, and the address of the code repository is implemented in the first configuration area.
Optionally, the first configuration area includes a server-side code repository configuration option, a local code repository configuration option, and a scan local folder configuration option.
In this embodiment, as shown in fig. 4, the first configuration area provides three configurations of acquiring code repository addresses, namely, server-side code repository configuration options, namely, cloning from URLs, local code repository configuration options, namely, adding existing local repositories, and scanning local folder configuration options, namely, scanning local folders. The code repository is obtained from the URL clone, i.e. from the first server address, i.e. the corresponding address of the code repository at the Git server. The existing local repository is added, i.e. the code repository is obtained by the directory address of the code repository that the user has loaded locally. The local folder is scanned, namely, the directory address of the code warehouse is not required to be specified through the file searching function provided by the running system where the client is located, and the directory address of the code warehouse is searched through the file searching function provided by the running system. The option of multiple code warehouse address configuration modes provided by the embodiment is beneficial to greatly facilitating the user to select the configuration selection of the code warehouse to be optimized.
S200: responding to the setting of a user in a first configuration area to acquire a code warehouse to be optimized, and loading codes in the code warehouse to be optimized to the local;
in this embodiment, as shown in fig. 5, in response to the setting of the user in the first configuration area, the code repository to be optimized is acquired, the acquired code repository to be optimized is displayed in the repository list, and the acquired three repository codes are listed in the upper half of fig. 5 by way of example.
Optionally, the server-side code repository configuration option includes a server-side code repository address setting area, and when the user configures a corresponding first server address of the code repository in the server-side code repository address setting area, the obtaining of the code repository to be optimized is set to be implemented by executing the loading script.
In this embodiment, in response to a user setting in the first configuration zone being set to a configuration according to the code repository address of the first configuration zone, the command to load the script pulls the code repository from the remote repository to local using, for example, git clone git@git.xxx, git. Xxx being an example of the code repository address. The loading script sets the operation directory to be a local repository directory, for example, in the windows system, the specified directory is entered by using a cd repository directory. The method has the advantages that the method is beneficial to setting of loading scripts, is convenient for the operation of a user, can load the code warehouse to the local place without using the operation of a command line, and sets the operation catalog to the catalog of the code warehouse, thereby being convenient for the execution of subsequent software. The first server address is an address stored in a code repository, e.g. a git server, which is stored at the code repository end of, e.g. a git server, each code repository having its first server address.
S300: providing an analysis information configuration interface on the client analysis module M200, wherein the analysis information configuration interface comprises a second configuration area for analysis function configuration and a third configuration area for displaying analysis results;
optionally, the second configuration area includes an analyze by code file size option, a create time analyze by code option, a call time analyze by code option, and an analyze by custom rule option.
In this embodiment, as shown in fig. 5, two kinds of code analysis function configurations provided by the second configuration area are exemplarily shown in the lower half of fig. 5, which are respectively according to code file size analysis options, i.e., according to file size sorting analysis, and according to code creation time analysis options, i.e., according to file addition history sorting analysis. However, the configuration mode of the code analysis function is not limited to this, and the method further comprises analyzing the code according to the last call time analysis option of the code and according to the analysis option of the custom rule, wherein the custom rule provides attributes such as creation, update time, modification time, file size and the like, and creates the custom analysis rule by combining a logic operator.
S400: responding to the setting of the user in the second configuration area, analyzing the code and displaying the code in the third configuration area;
in this embodiment, as shown in fig. 6, the result of analyzing the code according to the code file size analysis option provided by the third configuration area is exemplarily shown in the upper half of fig. 6, and the file size columns are sorted from top to bottom in the order of the code files from top to bottom. The code analysis display result displayed by the third configuration area is benefited, so that a user can intuitively select different analysis options to view the code files in the code warehouse according to different service requirements.
Optionally, the setting in the second configuration area in response to the user is configured to be implemented by executing an analysis script. In this embodiment, in response to a user setting in the second configuration area being set to a configuration according to the code repository address of the second configuration area, the command to analyze the script employs a command line of the command count-objects-v, for example, when analyzing options according to the code file size, i.e., sorting according to the file size, viewed through the command line of the (feature/Test) X du-d 1-h. Metadata information of the whole code warehouse is stored under the git directory, and the metadata information comprises a submission history record, branch information, tag information and a file object. Command line viewing finds that objects are large, cleaning objects for emphasis. According to other manners of analysis, for example, analysis according to code creation time analysis options, namely, analysis according to file addition history ordering, analysis according to code last calling time analysis options and analysis according to custom rules can be implemented in an analysis script in a manner of adopting command lines of corresponding functions, and details are omitted herein.
S500: providing an execution function configuration interface on the client execution module M300, wherein the execution function configuration interface comprises a fourth configuration area for executing deletion and a fifth configuration area for executing pushing;
in this embodiment, as shown in fig. 6, in the lower half of fig. 6, the fourth configuration area for performing deletion provided by the execution module M300, that is, the confirmation deletion in fig. 6, and the fifth configuration area for performing push, that is, one-touch push in fig. 6, are exemplarily shown.
S600: deleting the code to be deleted in response to the selection operation of the user on the third configuration area and the setting of the fourth configuration area, and generating a change record;
in this embodiment, in response to the user selecting the code to be optimized in the third configuration area, the check box selection is set to be performed on the analyzed code to be optimized in the third configuration area, and as shown in fig. 6, the first four large files ordered by size are exemplarily selected. In response to the user setting in the fourth configuration area being set to implement by executing the deletion script according to the selection of the code to be deleted, for example, the code to be deleted selects the libccoas 2d.a file, the deletion command line of the deletion script adopts the git filter-branch-f-print-empty-index-filter 'gitrm-rf-cached-unmatch, line/points/yppcacos/libccoas 2d.a' -tag-name-filter cat-all, and if the third configuration area boxes the analyzed code to be optimized, the deletion script is set to be repeatedly invoked to implement deletion of the plurality of files.
S700: and responding to the setting of the user in the fifth configuration area, and pushing the change record to the corresponding first server address of the code warehouse.
In this embodiment, the first server address selects the address of the Git server where the code repository is located, but the method is not limited thereto, and other code management tools, such as Gittee or enterprise self-built code repository, may be used.
Optionally, in response to the setting of the user in the fifth configuration area, the method is set to call the push script.
In this embodiment, the one-touch push is performed in response to the user setting in the fifth configuration area, i.e., the user confirmation. In the Git system, the operation of deleting the file is involved, and the change record of the deleting operation to the code warehouse needs to be updated on the Git index. The command of pushing the script adopts, for example, git reflog expire-expire= = now = & Git gc-prune = now-progressive to implement the Git index of the update code repository; the gate push origin-force-all completes pushing the operation of deleting the code to the first server address, and completes optimizing the code warehouse.
As shown in fig. 3, the embodiment of the invention further provides a code backup method of the visual code warehouse optimization method, which comprises the following steps:
s601: after the setting of the fourth configuration area, popping up a window for confirming the setting of the fourth configuration area again by the user;
in this embodiment, as shown in fig. 7, an exemplary pop-up window layer that needs to be confirmed by the user for setting the fourth configuration area again is covered on the third configuration area, the relative position of the pop-up window is not specifically limited in the present invention, and fig. 7 is only an exemplary illustration, and other positions and manners of pop-up positions for achieving the effects of the present invention are all within the scope of protection of the present invention. The window that pops up for the user to confirm again the settings of the fourth configuration area is presented as two option windows asking if it is determined to delete the selected file and determining and cancelling. With the benefit of the configuration, the user can be effectively prevented from misoperation of deleting codes.
S602: responding to the user to confirm the setting of the fourth configuration area again, and generating a backup code by the codes to be deleted of the third configuration area selected by the user;
in this embodiment, in response to the user confirming the setting of the fourth configuration area again, the code to be deleted set as the third configuration area selected according to the user is backed up by executing the backup script, and the backup generation of the back backup file is implemented by the command line cp libcocoas2 d.a-/. Back. The backup of the deleted codes by the backup script can effectively prevent misoperation or rollback of the code warehouse, and is convenient for guaranteeing the code integrity during code backtracking analysis. The method is beneficial to isolating the production codes from the non-production codes, cleaning the production code space in time and preventing the production codes from being too bloated and influencing the production code efficiency. Meanwhile, the cost of the code warehouse can be saved.
S603: and deleting the code to be deleted, and generating a change record.
Optionally, in response to the setting of the user in the fifth configuration area, pushing the backup code to a preset second server address. In this embodiment, in response to the user setting in the fifth configuration area, that is, the user confirming that the push-to-push is performed, the backup code is pushed to the second server, where the second server is different from the first server and is used to store the backup code, and the second server receives the backup data through a second server address preset in the client tool. The default address of the second server is set as the default address set by the client of the invention, and any network storage space can be specified by a user. The backup code pushing technology is not particularly limited, and the backup code pushing technology can be an ftp mode or other data transmission modes capable of achieving the technical effect of the backup code pushing technology, and belongs to the protection scope of the backup code pushing technology.
The invention takes the design of the code operation steps and the command lines of the Git code warehouse as an example, but the invention is not limited to the above, and the invention is applicable to other code management tools, can adaptively adjust the selection of the operation steps and the command lines, can achieve the same aim and the adaptive adjustment of the technical effects, and belongs to the protection scope of the invention.
In the visual code repository optimization method of this embodiment, the serial number of each step is merely to distinguish the steps, and is not limited to the specific execution sequence of the steps, and the execution sequence between the steps may be adjusted and changed as required.
In the visual code warehouse optimization method of the embodiment, the setting of each configuration area is only used for displaying, but not used as a limitation for setting a single page, the setting of the configuration area can be configured as a single page or a certain area of the whole page or a certain functional area of other products, the setting of each configuration area can be adjusted to achieve the same aim and technical effects, and the change and adjustment of the adaptability belong to the protection scope of the invention.
The embodiment of the invention also provides a visual code warehouse optimization system, which comprises a client and a server, wherein the client comprises a loading module M100, an analysis module M200 and an execution module M300, the server is provided with a second server address, and the server receives and stores the backup codes sent by the execution module M300 through the second server address. In the visual code warehouse optimization system, the functions of each module can be realized by adopting the specific implementation mode of the visual code warehouse optimization method.
The embodiment of the invention also provides visual code warehouse optimizing equipment, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the visual code warehouse optimization method via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code library, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" platform.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 600 shown in fig. 8 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 8, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores a program code repository executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the visual code repository optimization method section above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 2.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode warehouse, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In the visual code warehouse optimization device, the steps of the visual code warehouse optimization method are realized when the program in the memory is executed by the processor, so that the device can also obtain the technical effects of the visual code warehouse optimization method.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the visual code warehouse optimization method. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising a program code repository for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the visual code repository optimization method section of this specification, when the program product is executed on the terminal device.
Referring to fig. 9, a program product 800 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include a program code repository, and may be executed on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with a readable program code repository carried therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code repository embodied on the readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The program code repository for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code repository may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The steps of the visual code warehouse optimization method are realized when the program in the computer storage medium is executed by the processor, so that the technical effects of the visual code warehouse optimization method can be obtained by the computer storage medium.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (10)

1. A visual code repository optimization method, comprising the steps of:
providing a loading information configuration interface on a client loading module, wherein a loading information configuration page comprises a first configuration area for configuring a code warehouse address;
responding to the setting of a user in a first configuration area to acquire a code warehouse to be optimized, and loading codes in the code warehouse to be optimized to the local;
providing an analysis information configuration interface on the client analysis module, wherein the analysis information configuration interface comprises a second configuration area for analysis function configuration and a third configuration area for displaying analysis results;
responding to the setting of the user in the second configuration area, analyzing the code and displaying the code in the third configuration area;
providing an execution function configuration interface on the client execution module, wherein the execution function configuration interface comprises a fourth configuration area for executing deletion and a fifth configuration area for executing pushing;
deleting the code to be deleted in response to the selection operation of the user on the third configuration area and the setting of the fourth configuration area, and generating a change record;
and responding to the setting of the user in the fifth configuration area, and pushing the change record to the corresponding first server address of the code warehouse.
2. The visual code repository optimization method of claim 1, wherein the first configuration area includes a server-side code repository configuration option, a local code repository configuration option, and a scan local folder configuration option.
3. The visual code repository optimization method of claim 2, wherein the server-side code repository configuration options include a server-side code repository address setting area, and the obtaining the code repository to be optimized is configured to be implemented by executing a loading script when a user configures a corresponding first server address of the code repository at the server-side code repository address setting area.
4. The visual code repository optimization method of claim 1, wherein the second configuration area includes an analyze by code file size option, a create time analyze by code option, a call time analyze by code option, and an analyze by custom rule option.
5. The visual code repository optimization method of claim 1, wherein the response to the user setting in the fifth configuration area is configured to invoke a push script.
6. The visual code repository optimization method according to claim 1, further comprising a code backup method comprising the steps of:
after the setting of the fourth configuration area, popping up a window for confirming the setting of the fourth configuration area again by the user;
responding to the user to confirm the setting of the fourth configuration area again, and generating a backup code by the codes to be deleted of the third configuration area selected by the user;
and deleting the code to be deleted, and generating a change record.
7. The visual code repository optimization method of claim 6, wherein the backup code is pushed to a preset second server address in response to a user setting in the fifth configuration area.
8. A visual code repository optimization system for implementing the visual code repository optimization method of any one of claims 1 to 7, the system comprising a client and a server, the client comprising a loading module, an analysis module and an execution module, the server being provided with a second server address, the server receiving and storing the backup code sent by the execution module via the second server address.
9. A visual code repository optimization apparatus, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the visual code repository optimization method of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program, characterized in that the program when executed by a processor implements the steps of the visual code warehouse optimization method of any one of claims 1 to 7.
CN202410102071.6A 2024-01-25 2024-01-25 Visual code warehouse optimization method, system, equipment and storage medium Pending CN117648122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410102071.6A CN117648122A (en) 2024-01-25 2024-01-25 Visual code warehouse optimization method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410102071.6A CN117648122A (en) 2024-01-25 2024-01-25 Visual code warehouse optimization method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117648122A true CN117648122A (en) 2024-03-05

Family

ID=90043580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410102071.6A Pending CN117648122A (en) 2024-01-25 2024-01-25 Visual code warehouse optimization method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117648122A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597506A (en) * 2019-11-14 2019-12-20 南京百敖软件有限公司 Front-end application visualization development tool and use method
CN114064113A (en) * 2021-11-26 2022-02-18 中国工商银行股份有限公司 Host version control method and device
CN114115842A (en) * 2021-10-11 2022-03-01 浪潮通信信息系统有限公司 Visual configuration method and system for GitLab assembly line
CN115904382A (en) * 2021-09-30 2023-04-04 中兴通讯股份有限公司 Code development method, system, client, server, device and storage medium
CN116775013A (en) * 2023-05-23 2023-09-19 北京邮电大学 Development system of visual low-code platform
CN116820480A (en) * 2023-06-28 2023-09-29 平安银行股份有限公司 Method and device for improving code readability

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597506A (en) * 2019-11-14 2019-12-20 南京百敖软件有限公司 Front-end application visualization development tool and use method
CN115904382A (en) * 2021-09-30 2023-04-04 中兴通讯股份有限公司 Code development method, system, client, server, device and storage medium
CN114115842A (en) * 2021-10-11 2022-03-01 浪潮通信信息系统有限公司 Visual configuration method and system for GitLab assembly line
CN114064113A (en) * 2021-11-26 2022-02-18 中国工商银行股份有限公司 Host version control method and device
CN116775013A (en) * 2023-05-23 2023-09-19 北京邮电大学 Development system of visual low-code platform
CN116820480A (en) * 2023-06-28 2023-09-29 平安银行股份有限公司 Method and device for improving code readability

Similar Documents

Publication Publication Date Title
US11226967B2 (en) Managing sharable cell-based analytical notebooks
US10210233B2 (en) Automated identification of complex transformations and generation of subscriptions for data replication
US20170357486A1 (en) Enhancing a crowdsourced integrated development environment application
KR20080007332A (en) Sync manager conflict resolution
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
JPH07271689A (en) System and method for transmission of computer object
US10983782B1 (en) User interface upgrade analyzer
CN109753437B (en) Test program generation method and device, storage medium and electronic equipment
US20210397646A1 (en) Method, electronic device, and storage medium for processing visual data of deep model
CN111831536A (en) Automatic testing method and device
US11120005B2 (en) Reliable workflow system provenance tracking at runtime
JP2008009861A (en) System configuration management method
US8392892B2 (en) Method and apparatus for analyzing application
CN117648122A (en) Visual code warehouse optimization method, system, equipment and storage medium
US20230088670A1 (en) Reverse compiler
US10552524B1 (en) Systems and methods for in-line document tagging and object based data synchronization
US20220300830A1 (en) Updating chatbot workspaces
CN111045991B (en) Implementation method for quickly opening file based on command line mode
CN112988139B (en) Method and device for developing event processing file
CN113343649A (en) File annotation method and device, storage medium and computing equipment
CN113485981B (en) Data migration method, device, computer equipment and storage medium
CN112748936B (en) Service integration method, system, device and storage medium for container
US6944866B1 (en) System and method for coordinating operator efforts using action diaries
US11888937B2 (en) Domain specific provider contracts for core data services
CN111625257B (en) Service platform upgrading method, system, equipment and storage medium

Legal Events

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