CN113992459B - Code review data processing method, device, computer equipment and storage medium - Google Patents

Code review data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113992459B
CN113992459B CN202010655507.6A CN202010655507A CN113992459B CN 113992459 B CN113992459 B CN 113992459B CN 202010655507 A CN202010655507 A CN 202010655507A CN 113992459 B CN113992459 B CN 113992459B
Authority
CN
China
Prior art keywords
review
code
session
message
code review
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.)
Active
Application number
CN202010655507.6A
Other languages
Chinese (zh)
Other versions
CN113992459A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010655507.6A priority Critical patent/CN113992459B/en
Publication of CN113992459A publication Critical patent/CN113992459A/en
Application granted granted Critical
Publication of CN113992459B publication Critical patent/CN113992459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a code review data processing method, a code review data processing device, computer equipment and a storage medium. The method comprises the following steps: displaying a session message in a multi-person session; the session object of the multi-person session includes a virtual user; when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to a processing server corresponding to the virtual user, so that the processing server determines code review operation aiming at the target code based on the code review instruction information, and generates corresponding response message based on the code review operation; and displaying the response message returned by the processing server in the multi-person session. By adopting the method, the code review efficiency can be improved.

Description

Code review data processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for processing code review data, a computer device, and a storage medium.
Background
Code review is a very important process in the software development process, and is mainly performed in a peer review mode, so as to find and correct errors which are not found in the early stage of the software development.
In the conventional art, a special code review tool is required for code review. The special code review tool is mainly a code review tool based on a webpage, and a review initiator and a reviewer can conduct code review in a browser through the webpage.
However, since the web page has no active notification function, the review sponsor or auditor must be notified by other communication means, for example, by mail. The user needs to switch back and forth between the mail system and the review system, which consumes a lot of time and further causes low code review efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a code review data processing method, apparatus, computer device, and storage medium capable of improving code review efficiency.
A method of code review data processing, the method comprising:
displaying a session message in a multi-person session; the session object of the multi-person session includes a virtual user;
when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to a processing server corresponding to the virtual user, so that the processing server determines code review operation aiming at the target code based on the code review instruction information, and generates corresponding response message based on the code review operation;
And displaying the response message returned by the processing server in the multi-person session.
In one embodiment, the method further comprises:
acquiring a code review statistical message sent by a processing server; the code review statistical message is generated by the processing server according to the current review state of each target code, and comprises a code identifier, a corresponding user identifier to be reviewed and the current review state; the code review statistics message is presented in a multi-person session.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is query review information, the response message includes review information of an object code corresponding to the code identifier, and the review information includes at least one of a current review status, a user identifier to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identifier.
A code review data processing apparatus, the apparatus comprising:
the session message display module is used for displaying session messages in the multi-person session; the session object of the multi-person session includes a virtual user;
the session message processing module is used for sending the session message to a processing server corresponding to the virtual user when the session message comprises the marking information and the code review instruction information of the virtual user, so that the processing server determines code review operation aiming at the target code based on the code review instruction information and generates a corresponding response message based on the code review operation;
And the response message display module is used for displaying the response message returned by the processing server in the multi-person session.
In one embodiment, the code review data processing apparatus further comprises:
the virtual user creation module is used for acquiring a virtual user creation instruction, responding to the virtual user creation instruction, acquiring a virtual user network address, wherein the virtual user network address is used for determining a processing server corresponding to the virtual user, and generating the virtual user according to the virtual user network address.
In one embodiment, the code review instruction information includes an instruction keyword and a code identifier, the code identifier is used for instructing the processing server to determine a corresponding target code, the instruction keyword is used for instructing the processing server to match the target keyword with a preset instruction standard keyword, and a code review operation for the target code is determined according to a matching result.
In one embodiment, the code review instruction information includes a code identifier and a corresponding user identifier to be reviewed, the code review operation corresponding to the code review instruction information is to initiate code review, and the response message includes a review portal corresponding to the code identifier and the user identifier to be reviewed.
In one embodiment, the code review data processing apparatus further comprises:
The system comprises a review opinion determining module, a processing server and a processing server, wherein the review opinion determining module is used for receiving a first trigger operation acting on a review portal, displaying a code review page according to the first trigger operation, the code review page comprises an information display area and an information editing area, the information display area is used for displaying target codes, the information editing area is used for inputting review opinions, receiving a first review opinion input operation acting on the information editing area, generating a first review opinion aiming at the target codes according to the first review opinion input operation, and sending a first code review opinion completion notification to the processing server when the completion of the review opinion input operation is detected, so that the processing server generates corresponding code review opinion feedback information according to the first code review opinion completion notification, and displaying the code review opinion feedback information returned by the processing server in a multi-person session.
In one embodiment, the multi-person conversation includes a conversation editing area, the review opinion determination module is further configured to receive a second review opinion input operation acting on the conversation editing area, generate a second review opinion corresponding to the target code according to the second review opinion input operation, generate a second code review opinion completion notification corresponding to the second review opinion, the second code review opinion completion notification includes the second review opinion and tag information of the virtual user, display the second code review opinion completion notification in the multi-person conversation, and send the second code review opinion completion notification to the processing server, so that the processing server stores the second review opinion in association with the target code.
In one embodiment, the code review data processing apparatus further comprises:
the reply opinion determination module is used for receiving a second trigger operation acting on the review portal, and displaying a code review page according to the second trigger operation, wherein the code review page comprises the current review opinion; receiving input operation acting on the code review page, carrying out review opinion reply on the current review opinion according to the input operation, and sending a review reply opinion completion notification to the processing server when the completion of the input operation is detected, so that the processing server generates a corresponding code review reply opinion feedback message according to the review reply opinion completion notification, and displaying the code review reply opinion feedback message returned by the processing server in a multi-person session.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes code identifiers, the code review operation corresponding to the code review instruction information is to allocate users to be reviewed, and the response message includes the target user identifiers to be reviewed determined according to the code review workload corresponding to each target user.
In one embodiment, the code review data processing apparatus further comprises:
The statistical message determining module is used for acquiring the code review statistical message sent by the processing server, wherein the code review statistical message is generated by the processing server according to the current review state of each target code, and the code review statistical message comprises a code identifier, a corresponding user identifier to be reviewed and the current review state, and the code review statistical message is displayed in a multi-person session.
In one embodiment, the session message includes a session identifier of the multiplayer session, the response message includes the session identifier, and the session message processing module is further configured to send the session message to a message server corresponding to the multiplayer session, such that the message server forwards the session message to the processing server. The response message display module is also used for receiving a response message returned by the message server based on the session identification, wherein the response message is sent to the message server by the processing server, and the response message is displayed in the multi-person session corresponding to the session identification.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is query review information, the response message includes review information of an object code corresponding to the code identifier, and the review information includes at least one of a current review status, a user identifier to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identifier.
A code review data processing system, characterized in that the system terminal and processing server;
the terminal is used for displaying the session message in the multi-person session, and when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to the processing server; the session object of the multi-person session comprises a virtual user, and the session message comprises a session identifier of the multi-person session;
the processing server is used for determining code review operation aiming at the target code based on the code review instruction information, generating corresponding response information based on the code review operation and returning the response information to the terminal;
the terminal is also configured to present the response message in a multi-person session.
In one embodiment, the session message includes a session identification of the multi-person session, the response message includes the session identification, and the system further includes a message server; the terminal is also used for sending the session message to the message server; a message server for forwarding the session message to the processing server; the processing server is also used for sending the response message to the message server; the message server is further configured to forward the response message to the terminal based on the session identification.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Displaying a session message in a multi-person session; the session object of the multi-person session includes a virtual user;
when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to a processing server corresponding to the virtual user, so that the processing server determines code review operation aiming at the target code based on the code review instruction information, and generates corresponding response message based on the code review operation;
and displaying the response message returned by the processing server in the multi-person session.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
displaying a session message in a multi-person session; the session object of the multi-person session includes a virtual user;
when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to a processing server corresponding to the virtual user, so that the processing server determines code review operation aiming at the target code based on the code review instruction information, and generates corresponding response message based on the code review operation;
and displaying the response message returned by the processing server in the multi-person session.
According to the code review data processing method, the code review data processing device, the computer equipment and the storage medium, through displaying the session message in the multi-person session, when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to the processing server corresponding to the virtual user, so that the processing server determines the code review operation aiming at the target code based on the code review instruction information, generates the corresponding response message based on the code review operation, and displays the response message returned by the processing server in the multi-person session. In this way, the code review and the multi-person session are combined, the user can send relevant session information of the code review to the virtual user in the multi-person session, the session information can be sent to the processing server, and the processing server processes the relevant session information to generate corresponding response information. The response message may be presented directly in the multiplayer session to notify all users. The user does not need to switch back and forth among a plurality of operating systems, and can respond to relevant operations of the user for code review in real time through intelligent and flexible interaction between the application corresponding to the multi-user session and the processing server, so that the code review efficiency is effectively improved.
A method of code review data processing, the method comprising:
acquiring a session message generated in a multi-person session; the session message comprises mark information and code review instruction information of the virtual user;
determining a code review operation for the target code based on the code review instruction information;
generating a corresponding response message based on the code review operation;
returning a response message; the response message is for presentation in a multi-person session.
In one embodiment, a session object of the multi-person session includes a plurality of target users, the code review instruction information includes a code identifier, a code review operation corresponding to the code review instruction information is to allocate a user to be reviewed, and a corresponding response message is generated based on the code review operation, including: counting the code review workload of each target user; determining the allocation priority corresponding to each target user according to the statistical result; taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed; and generating a response message based on the target user identification to be reviewed.
In one embodiment, the code review instruction information includes a code identifier, a code review operation corresponding to the code review instruction information is to close the code review, and a corresponding response message is generated based on the code review operation, including: acquiring the current review state of the target code corresponding to the code identifier; updating the current evaluation state according to the code evaluation operation to obtain a target evaluation state; the target review state is closed; a response message is generated based on the target review status.
A code review data processing apparatus, the apparatus comprising:
a session message acquisition module for acquiring a session message generated in a multi-person session; the session message comprises mark information and code review instruction information of the virtual user;
the code review operation determining module is used for determining a code review operation aiming at the target code based on the code review instruction information;
the response message generation module is used for generating a corresponding response message based on the code review operation;
a response message sending module, configured to return a response message; the response message is for presentation in a multi-person session.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is to distribute the users to be reviewed, and the response message generating module is further used for counting the code review workload of each target user; determining the allocation priority corresponding to each target user according to the statistical result; taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed; and generating a response message based on the target user identification to be reviewed.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is closing the code review, and the response message generating module is further configured to obtain a current review state of the target code corresponding to the code identifier; updating the current evaluation state according to the code evaluation operation to obtain a target evaluation state, wherein the target evaluation state is closed; a response message is generated based on the target review status.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a session message generated in a multi-person session; the session message comprises mark information and code review instruction information of the virtual user;
determining a code review operation for the target code based on the code review instruction information;
generating a corresponding response message based on the code review operation;
returning a response message; the response message is for presentation in a multi-person session.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a session message generated in a multi-person session; the session message comprises mark information and code review instruction information of the virtual user;
determining a code review operation for the target code based on the code review instruction information;
generating a corresponding response message based on the code review operation;
returning a response message; the response message is for presentation in a multi-person session.
The code review data processing method, the code review data processing device, the computer equipment and the storage medium are used for acquiring session messages generated in a multi-person session; the session message comprises marking information and code review instruction information of the virtual user, code review operation aiming at the target code is determined based on the code review instruction information, corresponding response message is generated based on the code review operation, and the response message is returned; the response message is for presentation in a multi-person session. In this way, the processing server can receive the relevant session information of the code review sent to the virtual user in the multi-person session, process the session information in time to obtain the response information and return the response information, and further automatically display the response information in the multi-person session. The user does not need to switch back and forth among a plurality of systems, and can respond to relevant operations of the user for code review in real time through intelligent and flexible interaction between the processing server and the application corresponding to the multi-person session, so that the code review efficiency is effectively improved.
Drawings
FIG. 1 is an application environment diagram of a code review data processing method in one embodiment;
FIG. 2 is a flow diagram of a method of code review data processing in one embodiment;
FIG. 3 is a diagram of an interface for a user to query standard keywords in one embodiment;
FIG. 4 is a flow diagram of a process for publishing review comments in one embodiment;
FIG. 5 is a schematic diagram of an interface for a user to publish review comments in one embodiment;
FIG. 6 is a schematic diagram of an interface for a user to publish review comments in another embodiment;
FIG. 7 is a flow chart of a method for publishing a review opinion in another embodiment;
FIG. 8 is a flow diagram of a review opinion reply according to one embodiment;
FIG. 9 is a diagram showing an interface for a user to issue a reply opinion according to yet another embodiment;
FIG. 10 is a schematic diagram of an interface for a virtual user to send code review statistics messages in one embodiment;
FIG. 11 is a flow diagram of a method of code review data processing in one embodiment;
FIG. 12 is a block diagram of a code review data processing method in one embodiment;
FIG. 13 is a block diagram of the architecture of a code review data processing system in one embodiment;
FIG. 14 is a block diagram of a code review data processing system in another embodiment;
FIG. 15 is a block diagram of a code review data processing apparatus in one embodiment;
FIG. 16 is a block diagram of a code review data processing apparatus in one embodiment;
FIG. 17 is an internal block diagram of a computer device in one embodiment;
fig. 18 is an internal structural view of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The code review data processing method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may present the session message in a multi-person session, wherein the session object of the multi-person session comprises a virtual user. When the session message includes the tag information and the code review instruction information of the virtual user, the terminal 102 may transmit the session message to the server 104 (processing server corresponding to the virtual user). Server 104 may determine a code review operation for the object code based on the code review instruction information, and generate a corresponding response message based on the code review operation. The server 104 may send a response message to the terminal 102, which the terminal 102 presents in a multi-person session.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a code review data processing method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step S202, a session message is displayed in a multi-person session; the session object of the multiplayer session includes a virtual user.
Wherein, the multi-person session refers to a session form of message interaction through at least two session objects. The multi-person session can realize instant messaging and resource sharing among session objects. Session objects refer to session participants. The session object includes a target user, which refers to a user that is actually present, and a virtual user, which refers to a virtual user implemented through software. The virtual user can be realized by software, can respond to the requirements of the target user, and can interact with the target user through messages. Session messages refer to session messages generated in a multi-person session. The conversation message includes at least one of a text message, a voice message, a video message, a picture message, an expression message, and the like. In one embodiment, the multi-person session may be a group session, the session message may be a group message generated in the group session, the session object may be a group member, and the virtual user may be a group robot in the group member.
Specifically, an operating system is operated on the terminal, and an application program is operated on the operating system, wherein the application program can realize multi-user session. The terminal can display the multi-person conversation window through the application program, acquire conversation information input by a user in the multi-person conversation window, and display the conversation information in the multi-person conversation. Wherein the application program may be an instant messaging application.
In step S204, when the session message includes the tag information and the code review instruction information of the virtual user, the session message is sent to the processing server corresponding to the virtual user, so that the processing server determines a code review operation for the target code based on the code review instruction information, and generates a corresponding response message based on the code review operation.
The marking information is special information used for marking the target session object corresponding to the session message. The tag information may include a specified tag and a user identification. For example, the execution mark may be a "@" mark, when the user selects the "@" symbol through the terminal, the terminal may display a list of user identities in the multi-user session, and the user may select at least one user identity from the list of user identities, where the "@" symbol and the user identity selected by the user form mark information. The user identifier is an identifier for uniquely identifying a session object in a multi-person session, and may specifically be at least one of a number, a letter, a symbol, or the like. The user identification may specifically be the name of the session object in the multi-person session. The marking information of the virtual user is used for marking the target session object corresponding to the session message as the virtual user. The tag information of the virtual user may include a designated tag and a user identification of the virtual user. For example, a "@" symbol and a "code review assistant" (the name of the virtual user in the multi-person session). The virtual user may be implemented by a set of session message handling services deployed on a processing server, the session message handling services being used to process session messages, generating response messages. When adding a virtual user in a multi-person session, a virtual user network address may be added to the configuration information of the virtual user. The virtual user network address is an address in the processing server for receiving session messages. When the session message includes the tag information of the virtual user, the session message may be transmitted to the processing server.
The code review instruction information is instruction information for determining a code review operation for the target code. The code review operation refers to a specific review operation on the code. The code review operations include operations of initiating code review, publishing review comments, replying to review comments, assigning users to be reviewed, querying review information, closing code review, and the like. The response message is a reply message responding to the session message and is used for notifying the target user that the session message is received and notifying the target user to execute corresponding code review operation.
Specifically, when the session message includes the tag information of the virtual user, the terminal may transmit the session message to the processing server corresponding to the virtual user. That is, only session messages including the markup information of the virtual user are called back to the processing server, and other session messages are not called back, so that the processing pressure of the processing server is reduced. After receiving the session message, the processing server may analyze the session message. When the session message includes the marking information and the code review instruction information of the virtual user, the processing server may determine a code review operation for the target code according to the code review instruction information in the session message, and further generate a corresponding response message according to the code review operation obtained by analysis so as to notify the user. After the processing server generates the response message, the response message may be sent to the terminal.
For example, user 1 in a multi-person session of an instant messaging application sends a session message "@ code review assistant allocates a user to be reviewed" for http:// xxx/xx/xx (the memory address of code a) through the terminal. After receiving the session message, the processing server can determine that the code review operation for the code A is the allocation of the user to be reviewed according to code review instruction information (the code A storage address is allocated to http:// xxx/xx/xx), automatically allocates the user to be reviewed for the code A according to the code review operation, for example, is user 2 in a multi-person session, and further generates a response message such as '@user 2 please you issue review comments' to http:// xxx/xx/xx (the code A storage address). After receiving this response message, user 2 may review code a. Thus, by utilizing the widely used and lightweight instant messaging application in daily life, the operation related to code review can be initiated through special session information in the instant messaging application, and the user can respond to the message in real time without additionally butting other notification systems. The code review and daily work communication are integrated, and the code review efficiency is improved. In addition, different operating systems are not needed to be considered, other notification systems are not needed to be additionally connected, and the code review cost is reduced.
In one embodiment, the message format of the response message may be preset. The message formats of response messages corresponding to different code review operations may be different. When the processing server determines the code review operation for the target code, the processing server generates a response message based on the message format corresponding to the code review operation.
In one embodiment, the session message includes a session identifier of the multi-person session, and the sending the session message to the processing server corresponding to the virtual user includes: the session message is sent to a message server corresponding to the multiplayer session so that the message server forwards the session message to the processing server.
The session identifier is an identifier, which is used for identifying a multi-person session, and may specifically include at least one of letters, numbers, symbols, and the like. For example, the name of the group session.
In particular, session messages in a multi-person session may be sent to a corresponding message server. When the message server detects that the session message includes the tag information of the virtual user, the message server may forward the session message to the processing server. When the processing server generates the corresponding response message based on the session message, the session identifier can be carried into the response message, so that the response message can be ensured to be accurately returned to the corresponding multi-person session. When the message server detects that the session message does not include the tag information of the virtual user, the message server may forward the session message to a terminal corresponding to the target user in the multi-user session. When the application program corresponding to the multi-user session is the instant messaging application, the message server is the instant messaging server.
In one embodiment, the code review instruction information includes instruction keywords for determining code review operations and code identifications for determining object codes. The processing server can determine the corresponding target code based on the code identification, match the instruction keywords with preset instruction standard keywords, and determine the code review operation for the target code according to the matching result.
In one embodiment, the user may upload the code to be reviewed to a processing server for storage via a terminal. The user can obtain the storage address of the code through the terminal. Further, the user may edit the session message based on the storage address and the instruction keyword and send the session message in a multi-person session.
Step S206, the response message returned by the processing server is displayed in the multi-person session.
Specifically, after acquiring the response message, the terminal may display the response message in a multi-person session.
In one embodiment, the sender identification of the response message may be a user identification of the virtual user. That is, the response message is used as a reply message, and the session message is replied to by the virtual user. The response message may also be popped up in a popup window in the multi-person conversation window.
In one embodiment, the session message includes a session identifier of the multi-person session, the response message includes the session identifier, and the displaying the response message returned by the processing server in the multi-person session includes: receiving a response message returned by the message server based on the session identifier, wherein the response message is sent to the message server by the processing server; and displaying the response message in the multi-person session corresponding to the session identification.
Specifically, after the processing server generates the response message, an interface corresponding to the message server may be invoked, and the response message carrying the session identifier may be sent to the message server through the interface. After receiving the response message, the message server can determine the terminals corresponding to the target users in the multi-user session corresponding to the session identifier, and forward the response message to the terminals corresponding to the target users. After receiving the response message, the terminal corresponding to each target user displays the response message in the multi-user session corresponding to the session identifier. In this way, the session information and the response information are transmitted between the terminal, the message server and the processing server based on the session identification, so that the response information corresponding to the session information can be ensured to be accurately transmitted, the accuracy of code review is further improved, and the message is prevented from being transmitted to other multi-user sessions in error.
According to the code review data processing method, the session message is displayed in the multi-person session, when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to the processing server corresponding to the virtual user, so that the processing server determines the code review operation aiming at the target code based on the code review instruction information, generates the corresponding response message based on the code review operation, and displays the response message returned by the processing server in the multi-person session. In this way, the code review and the multi-person session are combined, the user can send relevant session information of the code review to the virtual user in the multi-person session, the session information can be sent to the processing server, and the processing server processes the relevant session information to generate corresponding response information. The response message may be presented directly in the multiplayer session to notify all users. The user does not need to switch back and forth among a plurality of operating systems, and can respond to relevant operations of the user for code review in real time through intelligent and flexible interaction between the application corresponding to the multi-user session and the processing server, so that the code review efficiency is effectively improved.
In one embodiment, before step S202, the code review data processing method further includes: obtaining a virtual user creation instruction; responding to a virtual user creation instruction, and acquiring a virtual user network address, wherein the virtual user network address is used for determining a processing server corresponding to a virtual user; and generating the virtual user according to the virtual user network address.
Wherein the virtual user creation instruction is a creation instruction for creating a virtual user. The virtual user network address is an address in the processing server for receiving session messages.
Specifically, the control used for triggering the virtual user to create the action is displayed in the application program corresponding to the multi-person session. When a triggering operation acting on the control is detected, a virtual user creation interface may be popped up, in which the user may enter a virtual user network address. When it is detected that the input operation is completed, for example, when the "complete" button is clicked, the terminal may generate the virtual user from the virtual user network address. The user may also enter a user identification of the virtual user, such as a name and a head portrait of the virtual user, in the virtual user creation interface.
In one embodiment, a target user in a multi-person session may create a virtual user in the multi-person session. When the virtual user creates successfully, the session object of the multi-user session is newly added into the session object of the multi-user session, and the target user can send a session message to the virtual user, and the session message is transferred to the processing server. The same virtual user may participate in at least one multiplayer session.
In one embodiment, after the terminal obtains the virtual user creation instruction, the virtual user creation instruction may be sent to the message server, and the message server allocates a corresponding interface for the virtual user to be created according to the virtual user creation instruction and feeds back to the terminal. After receiving the interface, the terminal can display a corresponding virtual user creation interface. The terminal can acquire the virtual user network address and other relevant configuration information input by the user, and send the virtual user network address and other relevant configuration information to the message server, and trigger the message server to generate a session message processing service based on the interface, the virtual user network address and other relevant configuration information so as to realize the virtual user. The user may run a session message handling service on the handling server.
In this embodiment, by acquiring the virtual user creation instruction, the virtual user network address is acquired in response to the virtual user creation instruction, and the virtual user is generated according to the virtual user network address. The virtual user may assist in processing session messages for code review.
In one embodiment, the code review instruction information includes an instruction keyword and a code identifier, the code identifier is used for instructing the processing server to determine a corresponding target code, the instruction keyword is used for instructing the processing server to match the target keyword with a preset instruction standard keyword, and a code review operation for the target code is determined according to a matching result.
The instruction keywords are used for determining code review operations. The code identification is an identification for uniquely identifying a code, and may specifically be at least one of a number, letter, symbol, or the like. Such as the memory address of the code, the file name of the code, etc. The instruction standard keywords are preset standard keywords, and the instruction standard keywords have corresponding code review operations. The same code review operation may correspond to at least one instruction criterion keyword. The user needs to edit a session message including identification information of the virtual user based on the instruction criterion keyword, and the processing server needs to determine a code review operation based on the instruction criterion keyword.
Specifically, after receiving the session message, the processing server may perform semantic analysis on the session message, and extract the instruction keyword and the code identifier from the session message. The processing server may determine, from the code identifier, the target code to which the code identifier corresponds, that is, determine the target object. The processing server can acquire a preset instruction standard keyword, match the extracted instruction keyword with the instruction standard keyword, and take a code review operation corresponding to the successfully matched instruction standard keyword as a code review operation for the target code, namely, determine an operation for the target object.
Referring to FIG. 3, FIG. 3 is a schematic diagram of an interface for a user to query for standard keywords of an instruction in one embodiment. The multi-person session is group 1, and the session objects include target users (group member 1, group member 2, group members 3, … …) and virtual users (group robots—code review assistants). Group member 2 may send a "@ code review aid" such session message in the group to query for instruction criteria keywords. After receiving the session message, the code review assistant may send the session message to a processing server, where the processing server performs semantic analysis on the session message to determine that the session message is used for querying the command standard keywords. The processing server may generate a response message based on the preset instruction criterion keywords and return. The code review assistant can send a response message in the group consisting of instruction criteria keywords that "query the current state of { code address } to automatically reassign { code address } to { group member } … …". Wherein, "inquiring the current state of { code address }," automatically reassigning { code address }, "assigning { code address } to { group members }" refers to different instruction standard keywords, respectively corresponding to different code review operations. The code review operation corresponding to the "query current state of { address of code } is to query current review state of a certain group of codes," the code review operation corresponding to the "automatically reassigning { address of code } is to be a user to be reviewed who automatically assigns a certain group of codes," the "assign { address of code } to { group member } corresponding to the code review operation is to be a reviewer who designates a certain group of codes. When the user wants to automatically reassign a reviewer of a certain group of codes, the user can automatically reassign session messages such as http:// xxx/xx/xx (the storage address of the code A) based on "automatically reassigning { address of code }" edit "@ code review assistant to instruct the processing server to automatically assign the user to be reviewed to the code A, namely, assign the reviewer to the code A.
In one embodiment, when the instruction keyword and a certain instruction criterion keyword are identical, it is determined that the instruction keyword and the instruction criterion keyword are successfully matched. Of course, when the matching degree of the instruction keyword and a certain instruction standard keyword is greater than a preset threshold, it may be determined that the instruction keyword and the instruction standard keyword are successfully matched. The preset threshold value can be customized according to requirements.
In the embodiment, the corresponding target code is determined through the code identification in the code review instruction information, and the code review operation is determined through the instruction keywords in the code review instruction information, so that the code review operation for the target code can be accurately and quickly determined.
In one embodiment, the code review instruction information includes a code identifier and a corresponding user identifier to be reviewed, the code review operation corresponding to the code review instruction information is to initiate code review, and the response message includes a review portal corresponding to the code identifier and the user identifier to be reviewed.
The user identification to be reviewed refers to the user identification of the user to be reviewed (reviewer). The user to be reviewed is a reviewer corresponding to the target code, and the review opinion for the target code can be filled in. The user to be reviewed may be at least one target user in a multi-person session and the user identification to be reviewed may be the user name of the target user in the multi-person session.
Specifically, the user can select at least one user to be reviewed corresponding to the target code in the multi-person session, edit a session message for initiating code review based on the code identification of the target code, the user identification of the user to be reviewed, the mark information of the virtual user and the corresponding instruction standard keyword, and send the session message to the multi-person session. For example, "@ code review assistant assigns code a to a session message such as group member 2". The terminal may send the session message to the processing server. The processing server determines the code review operation as initiating the code review according to the instruction standard keywords in the session message. Based on the code review operation, the processing server can generate a review portal corresponding to the target code, and further generate a corresponding response message according to the review portal and the user identification of the user to be reviewed. For example, "@ user 2http:// xxx/xx/xxx (review portal for code A) please review. The user to be reviewed can acquire the review task of the user by checking and collecting the response message, and can review the target code by triggering a review portal in the response message to release the review opinion. Other users in the multi-person session may also learn about the review task by looking up the response message.
In one embodiment, the session message carries a review initiating user identification, which refers to the user identification of the target user that initiated the code review, i.e., the user identification of the target user that sent the session message for initiating the code review in a multi-person session. After receiving the session message, the processing server may store the review initiating user identification in association with the code identification.
In one embodiment, as shown in fig. 4, after step S406, the code review data processing method further includes:
step S402, receiving a first trigger operation acting on a review portal, and displaying a code review page according to the first trigger operation; the code review page comprises an information display area and an information editing area, wherein the information display area is used for displaying the target code, and the information editing area is used for inputting review comments.
Step S404, receiving a first comment input operation acting on the information editing area, and generating a first comment aiming at the target code according to the first comment input operation.
In step S406, when the completion of the review opinion input operation is detected, a first code review opinion completion notification is sent to the processing server, so that the processing server generates a corresponding code review opinion feedback message according to the first code review opinion completion notification.
And step S408, the code review opinion feedback message returned by the processing server is displayed in the multi-person session.
Specifically, when the response message presented in the multi-person session includes a review portal and a user identification to be reviewed, the user may trigger the review portal to enter the code review page. When the triggering operation of the review portal is detected, the terminal can display the code review page. The code review page includes an information presentation area for presenting the object code and an information editing area for inputting the review opinions. The user can refer to the object code, and input a review opinion for the object code in the information editing region. When the review opinion input operation is detected, the terminal may generate a review opinion for the object code according to the review opinion input operation. When it is detected that the review opinion input operation is completed, for example, the user clicks the "completion" button, the terminal may generate a code review opinion completion notification and transmit the code review opinion completion notification to the processing server. After receiving the code review opinion completion notification, the processing server may generate a corresponding code review opinion feedback message according to the code review opinion completion notification, and return the code review opinion feedback message to the terminal. After receiving the code review opinion feedback message, the terminal can display the code review opinion feedback message in a multi-person session. The code review opinion feedback message can be sent to the multi-person conversation through the virtual user, and can also be popped up in a popup window in the multi-person conversation window.
In one embodiment, the code review page may be popped up in the form of a window in the multi-person session, or may be jumped to by the multi-person session. The information displayed in the code review page can be updated in real time, for example, a user can modify the target code, and the latest target code is always displayed in the code review page. The user can modify the review opinions, and the latest review opinion is always displayed in the code review page.
In one embodiment, the first code review opinion completion notification includes a code identification, and the code review opinion feedback message includes the code identification and a review initiating user identification. After receiving the notification of the completion of the first code review opinion, the processing server may search for the review initiating user identifier associated with the code identifier. And the processing server generates a code review opinion feedback message according to the code identification and the review initiating user identification. For example, "@ group member 1 review opinion of code a has issued such a code review opinion feedback message. The code review opinion feedback message may also include a review portal for the user to view specific review opinions by triggering the review portal.
Referring to FIG. 5, FIG. 5 is a schematic diagram of an interface for a user to publish review comments in one embodiment. The code review page includes an information presentation area and an information editing area. The information presentation area presents detailed information of the object code. The user to be reviewed (user 2) can expose the information editing area by triggering the object code line. When the user 2 clicks on the 66 th line code, the code review page automatically displays an information editing area below the 66 th line code, and can continue to display the 67 th line and later below the information editing area. User 2 may enter a review opinion for the 66 th line code in the information editing region. When the review opinion input is completed, the user 2 may click on the "newly added comment" button to issue the review opinion. When user 2 clicks the "Add comment" button, the code comment page may be as shown in FIG. 6. After the user 2 issues the review opinions, the terminal may generate a code review opinion completion notification and send the code review opinion completion notification to the processing server. After receiving the code review opinion completion notification, the processing server may generate a corresponding code review opinion feedback message according to the code review opinion completion notification, and return the code review opinion feedback message to the terminal, so that the terminal displays the code review opinion feedback message in a multi-person session. Subsequently, the review initiating user of the target code may click a "reply" button in the code review page to review the opinion replies.
In this embodiment, the user to be reviewed may issue the review opinion in the code review page. When the user to be reviewed completes the review opinion input, the processing server may receive the code review opinion completion notification and generate a corresponding code review opinion feedback message. The user to be reviewed does not need to send a special notification message in the multi-person conversation, and the processing server can actively send the code review opinion feedback message to be displayed in the multi-person conversation to notify all conversation objects in the multi-person conversation in real time, so that the efficiency of code review is improved.
In one embodiment, as shown in fig. 7, the multi-person session includes a session editing area, and after step S206, the code review data processing method further includes:
step S702, receiving a second comment input operation acting on the session editing area, generating a second comment corresponding to the target code according to the second comment input operation, and generating a second code comment completion notification corresponding to the second comment, wherein the second code comment completion notification comprises the second comment and the mark information of the virtual user.
Step S704, a second code review opinion completion notice is displayed in the multi-person session, and the second code review opinion completion notice is sent to the processing server, so that the processing server stores the second review opinion in association with the target code.
Specifically, in addition to the review opinions being published in the code review page, the review opinions may also be published in a multi-person conversation. The multi-person session includes a session editing area in which a user may enter review comments. When the review opinion input operation is detected, the terminal may generate a review opinion for the object code according to the review opinion input operation. For example, the review opinion "the newly added code of the code a should have the comment explanation reason". The user may also input the mark information of the virtual user in the session editing area. And generating a code review opinion completion notice according to the review opinion input by the user and the mark information of the virtual user. For example, the newly added code of the "@ code review helper code a should have a comment-explanation reason" such as a code review opinion completion notification. A code review opinion completion notification may be sent to the multiplayer session for presentation. Since the code review opinion completion notification includes the tag information of the virtual user, the terminal may transmit the code review opinion completion notification to the processing server. After receiving the notification of the completion of the code review opinion, the processing server may store the review opinion in association with the target code. Subsequently, when the user triggers the review portal corresponding to the target code, the code review page can automatically display the review comments issued by the user to be reviewed in the multi-person session.
In one embodiment, the second code review opinion completion notification includes a user identification to be reviewed. After receiving the second code review opinion completion notification, the processing server may store the review opinion in association with the user identification to be reviewed. When a plurality of users to be reviewed exist, the review opinions and the user identifications to be reviewed are stored in an associated mode, and therefore the review opinions respectively issued by different users to be reviewed can be distinguished conveniently.
In the embodiment, the user to be reviewed can issue the review opinions in the multi-person session besides the review opinion in the code review page, the issuing modes of the review opinion are diversified, and the flexibility of the code review is improved.
In one embodiment, as shown in fig. 8, the code review data processing method further includes:
step S802, receiving a second trigger operation acting on the review portal, and displaying a code review page according to the second trigger operation; the code review page includes the current review opinion.
Step S804, receiving an input operation acting on the code review page, and replying the review opinion aiming at the current review opinion according to the input operation.
In step S806, when the input operation is detected to be completed, a review reply opinion completion notification is sent to the processing server, so that the processing server generates a corresponding code review reply opinion feedback message according to the review reply opinion completion notification.
Step S808, the code review reply opinion feedback message returned by the processing server is displayed in the multi-person session.
Specifically, after the review initiating user checks the code review opinion feedback message or the second code review opinion completion notification, the review initiating user may trigger the review portal to enter the code review page. When the triggering operation of the review portal is detected, the terminal can display the code review page. The code review page is provided with an object code and a current review opinion, and the current review opinion can be a first review opinion which is issued by a user to be reviewed in the code review page or a second review opinion which is issued by the user to be reviewed in a multi-person session. The review initiating user can reply to the current review opinion through input operation in the code review page, for example, if the current review opinion is a modification of a certain row of codes, the review initiating user can modify the target codes in the code review page and issue reply opinions to reply to the review opinion. As shown in fig. 6, the review initiating user (user 1) may click on the "reply" button in the code review page to enter a reply opinion. When the user 1 reply opinion input is completed, the code review page may be as shown in FIG. 9. If the current review opinion is a question about a certain line of codes, the review initiating user can input a reply opinion in the code review page to interpret the line of codes to reply to the review opinion. When it is detected that the input operation is completed, for example, the user clicks the "complete" button, the terminal may generate a review reply opinion completion notification and transmit to the processing server. After receiving the review reply opinion completion notification, the processing server may generate a corresponding code review reply opinion feedback message according to the review reply opinion completion notification, and return the code review reply opinion feedback message to the terminal. For example, a code such as "user 1 has replied to review opinions" reviews the reply opinion feedback message. After receiving the code review reply opinion feedback message, the terminal can display the code review reply opinion feedback message in a multi-person session. The code review reply opinion feedback message may also include a user identification to be reviewed and a code identification. For example, "@ user 2 user 1 has replied to a code review reply opinion feedback message such as" review opinion about code a ".
In one embodiment, when the object code does not need to be modified, the review opinions may be returned in a multi-person session in addition to the review opinions in the code review page. Receiving a reply opinion input operation acting on the conversation editing area, generating a reply opinion aiming at the current comment according to the reply opinion input operation, and generating a second comment reply opinion completion notice corresponding to the reply opinion, wherein the second comment reply opinion completion notice comprises the reply opinion and the mark information of the virtual user. And displaying a second review reply opinion completion notice in the multi-person session, and sending the second review reply opinion completion notice to the processing server so that the processing server can store the reply opinion in association with the target code. The review comments and the reply comments in the code review page may also be sent to a processing server for storage.
In one embodiment, the code review page may also present controls for triggering the end of the review, such as an "agree" button. When the user to be reviewed is detected to trigger the control, a code review passing notification is generated according to the triggering operation, the code review passing notification is sent to the processing server, so that the processing server generates a corresponding code review ending feedback message according to the code review passing notification, and the corresponding code review ending feedback message is returned to the terminal. After receiving the code review end feedback message, the terminal can display the code review end feedback message in the multi-person session.
In this embodiment, the review initiating user may make a review opinion reply in the code review page. When the review initiating user completes the review opinion reply, the processing server may receive a review reply opinion completion notification and generate a corresponding code review reply opinion feedback message. The comment initiating user does not need to send a special notification message in the multi-person session, and the processing server can actively send the code comment reply feedback message to be displayed in the multi-person session to notify all session objects in the multi-person session in real time, so that the efficiency of code comment is improved.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes code identifiers, the code review operation corresponding to the code review instruction information is to allocate users to be reviewed, and the response message includes the target user identifiers to be reviewed determined according to the code review workload corresponding to each target user.
Specifically, the user may edit a session message for instructing the processing server to automatically allocate a user to be reviewed for the target code corresponding to the code identifier based on the corresponding instruction criterion keyword and the corresponding code identifier. For example, "@ code review assistant assigns a session message for code a, such as user to be reviewed". The terminal sends the session message to the processing server. The processing server can count the code review workload of each target user in the multi-person session, and sort the corresponding target users according to the code review workload, wherein the larger the code review workload is, the earlier the corresponding target user sorting is. The processing server can acquire the identification of at least one target user after the sorting as a target user identification to be reviewed, and generates a corresponding response message based on the target user identification to be reviewed. For example, a response message such as "assigned user 2 review code a". The response message may also include a review portal to which the code identification corresponds, such that user 2 publishes the review opinion in the code review page by triggering the review portal. For example, "@ user 2 asks you to issue a response message" comment "to http:// xxx/xx/xxx (the comment portal of code A).
In one embodiment, the corresponding code review workload may be determined based on the review tasks of the target user. For example, a set of codes is a review task, and the code review workload corresponding to a review task is 1. Code review workload may also be determined based on the data volume of each set of codes to be reviewed. Code review workload corresponding to different data volumes can be set. For example, the code review workload corresponding to the code line number of the group of codes to be reviewed is 1 when the code line number is 0-100, the code review workload corresponding to the code line number is 2 when the code line number is 100-200, and the like, without being limited thereto.
In one embodiment, the session message for assigning the user to be reviewed carries a session identification. After receiving the session message for distributing the user to be reviewed, the processing server may send a target user query request to the message server or the terminal, where the target user query request carries the session identifier. After receiving the target user query request, the message server or the terminal can acquire the user identification of each target user in the multi-user session corresponding to the session identification, and return the user identification to the processing server.
In this embodiment, the target user to be reviewed is determined through the code review workload, and the user to be reviewed can be automatically allocated to the target code. And taking the target user with less code review workload as a target user to be reviewed, wherein the target user to be reviewed can review the target code as soon as possible, thereby improving the code review efficiency.
In one embodiment, the code review data processing method further comprises: acquiring a code review statistical message sent by a processing server; the code review statistical message is generated by the processing server according to the current review state of each target code, and comprises a code identifier, a corresponding user identifier to be reviewed and the current review state; the code review statistics message is presented in a multi-person session.
Wherein the code review statistics message is for informing the user of the currently incomplete review task.
Specifically, at various stages in the code review process, the processing server may receive a corresponding session message or notification. The processing server can update the review state of the target code in time according to the corresponding session message or notification. The review status includes at least one of to-be-reviewed, in-review, and closed. The processing server acquires the relevant information of each target code to be reviewed in the current review state at intervals of preset time, and generates code review statistical information according to the acquired relevant information. The relevant information of the target code comprises a code identification, a corresponding user identification to be reviewed and a review residence time. The review retention time is calculated as the difference between the review initiation time and the current time. The review initiation time may be the time of receipt by the processing server of the session message for initiating the code review.
Referring to FIG. 10, FIG. 10 is an interface diagram of a virtual user sending a code review statistics message in one embodiment. The code review statistics message is "there is not yet reviewed code: group member 1: http://123/1/1/5491, blocked for 5 days; group member 2: http://123/1/1/5485, blocked for 5 days; group member 2: http://123/1/1/96 blocked for 3 days; … …). In "@ group member 1: http://123/1/1/5491, blocked for 5 days. "group Member 1" represents the user identity to be reviewed, "http://123/1/1/5491" represents the code identity, "blocked 5 days" represents the review residence time. The code corresponding to "http://123/1/1/5491" initiates the code review 5 days ago, but group member 1 has not yet reviewed.
In one embodiment, when the code review operation corresponding to the code review instruction information in the session message is initiation of the code review, the processing server receives the session message, and the processing server may modify the review status of the target code to be reviewed. When the processing server receives the first code review opinion completion notification or the second code review opinion completion notification or the review reply opinion completion notification, the processing server may modify the review status of the object code into in-review. When the code review operation corresponding to the code review instruction information in the session message is closing code review, the processing server receives the session message, and the processing server can modify the review state of the target code to be closed. When the processing server receives the code review pass notification, the processing server may modify the review status of the object code to closed.
In this embodiment, the code review statistics message is generated according to the statistics result by periodically counting the review tasks that have been initiated but not completed. The code review statistical message is displayed in the multi-person session, so that relevant responsible personnel can be reminded to process as soon as possible, and the code review efficiency is improved.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is query review information, the response message includes review information of an object code corresponding to the code identifier, and the review information includes at least one of a current review status, a user identifier to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identifier.
Specifically, the user may also edit a session message for querying the review information of the object code in a multi-person session, and send the session message to the processing server through the terminal. After receiving the session message, the processing server may acquire the review information of the object code, generate a response message according to the review information of the object code, and return to the terminal. And after receiving the response message, the terminal displays the response message in the multi-user session. The review information of the object code includes at least one of a current review status, a user identification to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiating time, and a review initiating user identification. That is, the user may query at least one type of review information corresponding to the object code.
In the embodiment, the review information of the target code can be queried through the session message, so that a user can query the review information of the target code at any stage in the code review process at any time.
In one embodiment, as shown in fig. 11, a code review data processing method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step S1102, obtaining a session message generated in a multi-person session; the session message includes the tag information and the code review instruction information of the virtual user.
Specifically, the processing server may acquire a session message including the tag information and the code review instruction information of the virtual user, which are transmitted by the terminal.
In one embodiment, the message server may obtain session messages generated in a multi-person session sent by the terminal. When the session message includes the tag information of the virtual user, the message server may transmit the session message to the processing server. When the user edits the session message at the terminal, the mark information of the virtual user, such as an "@" symbol plus the user identification of the virtual user, may be added to the session message. When the application program corresponding to the multi-user session is the instant messaging application, the message server is the instant messaging server.
Step S1104, a code review operation for the target code is determined based on the code review instruction information.
Step S1106, a corresponding response message is generated based on the code review operation.
Specifically, after the processing server obtains the session message, the session message may be analyzed, a code review operation for the target code is determined according to code review instruction information in the session message, and a corresponding response message is generated according to the code review operation.
In one embodiment, the code review instruction information includes an instruction keyword and a code identifier, the processing server may extract the code identifier from the code review instruction information, determine a corresponding target code according to the code identifier, extract the instruction keyword from the code review instruction information, match the instruction keyword with a preset instruction standard keyword, determine a code review operation according to a matching result, and finally determine the code review operation for the target code by integrating the processing result of the instruction keyword and the code identifier. The user can upload the target code to the processing server in advance through the terminal for storage, and the storage address of the target code is obtained as the code identification. A plurality of instruction standard keywords and code review operations corresponding to the instruction standard keywords can be preset and stored in the processing server. The user can inquire the instruction standard keywords in the multi-user session through the terminal. Further, the user can edit the session message according to the storage address of the object code and the queried instruction standard keywords, and transmit the session message in the multi-person session.
In one embodiment, when the conversation message is a text message, the processing server may directly extract the instruction keywords and the code identification. When the session message is a voice message, the processing server can perform voice recognition on the voice message to obtain a corresponding text message, and then extract the instruction keywords and the code identification. When the session message is a picture message, the processing server can identify the text message in the picture message, and then determine the instruction keyword and the code identifier according to the identified text message.
Step S1108, returning a response message; the response message is for presentation in a multi-person session.
Specifically, after the processing server generates the response message, the response message may be sent to the terminal corresponding to the target user in the multi-user session. After receiving the response message, the terminal may present the response message in a multi-person session.
In one embodiment, the session message carries a session identification. The processing server may carry the session identification to the response message when generating the response message. The processing server may send the response message to the message server, where the message server determines a corresponding multi-user session according to the session identifier, determines terminals corresponding to each target user in the multi-user session, and then sends the response message to the terminals corresponding to each target user. After receiving the response message, the terminal may display the response message in a corresponding multi-person session.
The code review data processing method comprises the steps of obtaining session messages generated in a multi-person session; the session message comprises marking information and code review instruction information of the virtual user, code review operation aiming at the target code is determined based on the code review instruction information, corresponding response message is generated based on the code review operation, and the response message is returned; the response message is for presentation in a multi-person session. In this way, the processing server can receive the relevant session information of the code review sent to the virtual user in the multi-person session, process the session information in time to obtain the response information and return the response information, and further automatically display the response information in the multi-person session. The user does not need to switch back and forth among a plurality of systems, and can respond to relevant operations of the user for code review in real time through intelligent and flexible interaction between the processing server and the application corresponding to the multi-person session, so that the code review efficiency is effectively improved.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes a code identifier, and the code review operation corresponding to the code review instruction information is to allocate the user to be reviewed, and step S1106 includes: counting the code review workload of each target user; determining the allocation priority corresponding to each target user according to the statistical result; taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed; and generating a response message based on the target user identification to be reviewed.
Specifically, when the processing server determines that the corresponding code review operation is to be allocated to the user to be reviewed according to the code review instruction information in the session message, the processing server may count the code review workload of each target user in the multi-user session, and rank the code review workload of each target user according to the statistics result, so as to determine the priority of each target user allocated to the user to be reviewed according to the ranking result, that is, determine the allocation priority corresponding to each target user. The smaller the code review workload corresponding to the target user, the higher the allocation priority corresponding to the target user can be set. And taking the target user with the highest allocation priority as a target user to be reviewed, and taking the identification of the target user as the identification of the target user to be reviewed. And the processing server generates a response message according to the target user identification to be reviewed.
In the embodiment, the allocation priority is determined through the code review workload, so that the workload of the target to-be-reviewed user which is automatically allocated is small, the target to-be-reviewed user can review the target code as soon as possible, and the code review efficiency is improved.
In one embodiment, the code review instruction information includes a code identifier, and the code review operation corresponding to the code review instruction information is closing the code review, step S1106 includes: acquiring the current review state of the target code corresponding to the code identifier; updating the current evaluation state according to the code evaluation operation to obtain a target evaluation state, wherein the target evaluation state is closed; a response message is generated based on the target review status.
Specifically, the user may send a session message for closing the code review in a multi-person session and to the processing server through the terminal. After receiving the session message, the processing server may modify the current review status of the object code to closed to mark that the review task corresponding to the object code is completed. The processing server can also generate a response message according to the modified review state, send the response message to the terminal and display the response message in the multi-user session so as to inform the target user that the closing is successful.
Referring to fig. 12, fig. 12 is an overall architecture diagram corresponding to the code review data processing method in one embodiment. The enterprise WeChat application can realize instant communication among group members, receive the conversation message that a group member sends through the local enterprise WeChat customer end, push the conversation message to other group member's enterprise WeChat customer end. Group members of a group session of an enterprise WeChat application include user A, user B, user C, user D, and group bots. Callback URLs (Uniform Resource Locator, uniform resource locators) are added to the configuration of the group robots to accept session messages sent to the group robots by group members in the group session. The callback URL is a virtual user network address in the code review system background for receiving the session message. The code review system background is preset with instruction standard keywords corresponding to various code review operations, and a user can edit the session message based on the instruction standard keywords so that the code review system background can identify the session message. The code review operations include operations of initiating code review, publishing review comments, closing code review, querying review information, replying to review comments, and the like. The code review system background is provided with a code base and a review opinion storage area, a user can upload codes to be reviewed to the code base so that the code review system background can identify target codes, and review opinions and reply opinions released by the user can be stored in the review opinion storage area so as to facilitate subsequent inquiry.
The session information sent by the group members can be sent to the enterprise WeChat background through the terminal, and the session information carries the session identifier. User D may send a session message including the virtual user's tag information, instruction keywords, and code identification to the group session, and user a, user B, and user C may check the session message in the local group session. When the session message includes the markup information of the virtual user, the enterprise WeChat background may send the session message to the code review system background. The code review system background performs semantic analysis on the session message, extracts a code identifier, determines a corresponding target code according to the code identifier, extracts an instruction keyword, and matches the instruction keyword with an instruction standard keyword to determine a corresponding code review operation. And the code review system background generates a corresponding response message according to the code review operation aiming at the target code, and carries the session identifier to the response message. The response message is sent to the enterprise WeChat background by calling the enterprise WeChat OpenAPI (developed application program interface) through the SDK (Software Development Kit) of the enterprise WeChat. The enterprise WeChat background determines a corresponding group session according to the session identification, determines terminals corresponding to the user A, the user B, the user C and the user D in the group session, and sends response messages to the terminals corresponding to the user A, the user B, the user C and the user D. The response message may be issued by the group robot to other group members in a group session.
When the code review operation is an initiating code review, user D may specify a reviewer in the session message, such as "initiate review: http:// xxx/xx/xx (memory address of object code) to user a ". When the code review system background carries out semantic analysis on the session message, a reviewer of the target code can be determined according to the semantics of the keywords such as 'give', 'pair', 'to', and the like. The code review system background can also extract the user identification and determine the reviewer according to the user identification. After the code review system background determines the target code, a review entry corresponding to the target code can be generated. And the code review system background can generate a response message according to a review portal corresponding to the target code and the user identification of the user A so as to remind the user A to carry out review. The user A can trigger the review portal to enter a code review page, and review comments are issued in the code review page. When the code review opinion completion notification is received, the code review system background can generate a corresponding code review opinion feedback message and send the corresponding code review opinion feedback message to the group session so as to remind the user D of reviewing the review opinions and timely modify the target codes and reply the review opinions. The user a may also send a session message including the tag information of the virtual user, the instruction keyword corresponding to the published review opinion, the code identifier, and the review opinion to the group session. After receiving the session message, the code review system background can store the review opinion and the target code in an associated manner, generate a corresponding code review opinion feedback message and send the corresponding code review opinion feedback message to the group session. When the user D replies the review comments, the review portal can be triggered to enter a code review page, the review comments are replied in the code review page, and session messages for replying the review comments can be issued in the group session. When the background of the code review system receives a review reply opinion completion notice or a corresponding session message, the background of the code review system can generate a corresponding code review reply opinion feedback message and send the corresponding code review reply opinion feedback message to the group session so as to remind the user A to review the reply opinion again. When the user A considers that the target code has no problem, the user A can trigger the review portal to enter a code review page, end the review in the code review page, and can also issue a session message for closing the code review in the group session. When the background of the code review system receives a review passing notification or a corresponding session message, the background of the code review system can generate a corresponding code review ending feedback message and send the corresponding code review ending feedback message to the group session so as to remind the group member that the review is ended.
The code review system background can also count the currently incomplete review tasks at regular time, generate a code review statistic message and send the code review statistic message to the group session so as to inform relevant responsible persons of timely review.
The code review and the enterprise WeChat are combined, a new IM/S (Instant Messaging/Server) architecture is created, the existing capability of the enterprise WeChat is fully utilized, multiple reviewers can be simultaneously notified in a group session of the enterprise WeChat at the first time, the reviewers can directly issue review comments in the group session and directly feed back to a review initiator, and the review initiator and the reviewers can directly communicate in the group session based on the context information of the code review whole process, so that the code review and daily work communication are integrated, the process of the code review is completely simplified, and the efficiency of the code review is greatly improved. The related information of the code review whole process can be notified in real time and fed back in real time in the group session, so that the code review circulation efficiency is improved. And moreover, different operating systems are not required to be considered, a special interface is not required to be developed, an additional docking notification system is not required, and the development cost is reduced.
It can be appreciated that the code review can also be combined with other instant messaging applications, and the same technical effects can be achieved.
In one embodiment, as shown in FIG. 13, a code review data processing system is provided that includes a terminal 1302 and a server 1304.
A terminal 1302 for displaying a session message in a multi-person session, and transmitting the session message to a processing server when the session message includes tag information and code review instruction information of a virtual user; the session object of the multiplayer session includes a virtual user and the session message includes a session identification of the multiplayer session.
The processing server 1304 is configured to determine a code review operation for the target code based on the code review instruction information, generate a corresponding response message based on the code review operation, and return the response message to the terminal;
the terminal 1302 is also configured to present a response message in a multi-person session.
According to the code review data processing system, the code review and the multi-person session are combined, the user can send relevant session information of the code review to the virtual user in the multi-person session, the terminal sends the session information to the processing server, and the processing server processes the session information to generate corresponding response information. The processing server sends a response message to the terminal for presentation in a multi-person session to notify all users. The user can respond to relevant operations of the user for code review in real time through intelligent and flexible interaction between the terminal and the processing server without switching back and forth among a plurality of operating systems, so that the code review efficiency is effectively improved.
In one embodiment, as shown in FIG. 14, the code review data processing system further comprises a message server 1303. The session message includes a session identification of the multi-person session and the response message includes the session identification.
The terminal 1302 is also configured to send a session message to a message server.
The message server 1303 is configured to forward the session message to the processing server.
The processing server 1304 is also configured to send a response message to the message server.
The message server 1303 is further configured to forward the response message to the terminal based on the session identifier.
In the embodiment, the session information and the response information are transmitted between the terminal and the processing server based on the session identifier through the message server, so that the response information corresponding to the session information can be ensured to be accurately transmitted to the corresponding multi-user session, further the accuracy of code review is improved, and the message is prevented from being transmitted to other multi-user sessions in error.
The specific definition of the code review data processing system is referred to above as the definition of the code review data processing method, and will not be described in detail herein.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed in turn or alternately with at least a part of other steps or stages.
In one embodiment, as shown in fig. 15, a code review data processing apparatus is provided, which may employ software modules or hardware modules, or a combination of both, as part of a computer device, the apparatus specifically comprising: a session message presentation module 1502, a session message processing module 1504, and a response message presentation module 1506, wherein:
a session message presentation module 1502 for presenting session messages in a multi-person session; the session object of the multiplayer session includes a virtual user.
And the session message processing module 1504 is configured to, when the session message includes the tag information and the code review instruction information of the virtual user, send the session message to a processing server corresponding to the virtual user, so that the processing server determines a code review operation for the target code based on the code review instruction information, and generates a corresponding response message based on the code review operation.
The response message displaying module 1506 is configured to display the response message returned by the processing server in the multi-person session.
In one embodiment, the code review data processing apparatus further comprises:
the virtual user creation module is used for acquiring a virtual user creation instruction; responding to a virtual user creation instruction, and acquiring a virtual user network address, wherein the virtual user network address is used for determining a processing server corresponding to a virtual user; and generating the virtual user according to the virtual user network address.
In one embodiment, the code review instruction information includes an instruction keyword and a code identifier, the code identifier is used for instructing the processing server to determine a corresponding target code, the instruction keyword is used for instructing the processing server to match the target keyword with a preset instruction standard keyword, and a code review operation for the target code is determined according to a matching result.
In one embodiment, the code review instruction information includes a code identifier and a corresponding user identifier to be reviewed, the code review operation corresponding to the code review instruction information is to initiate code review, and the response message includes a review portal corresponding to the code identifier and the user identifier to be reviewed.
In one embodiment, the code review data processing apparatus further comprises:
the review opinion determining module is used for receiving a first trigger operation acting on the review portal and displaying a code review page according to the first trigger operation; the code review page comprises an information display area and an information editing area, wherein the information display area is used for displaying target codes, and the information editing area is used for inputting review comments; receiving a first comment input operation acting on the information editing area, and generating a first comment aiming at the target code according to the first comment input operation; when the completion of the comment input operation is detected, a first code comment completion notification is sent to the processing server, so that the processing server generates a corresponding code comment feedback message according to the first code comment completion notification; and displaying the code review opinion feedback message returned by the processing server in the multi-person session.
In one embodiment, the multi-person conversation includes a conversation editing area, the review opinion determination module is further configured to receive a second review opinion input operation acting on the conversation editing area, generate a second review opinion corresponding to the target code according to the second review opinion input operation, and generate a second code review opinion completion notification corresponding to the second review opinion, where the second code review opinion completion notification includes the second review opinion and the tag information of the virtual user; and displaying the second code review opinion completion notification in the multi-person session, and sending the second code review opinion completion notification to the processing server so that the processing server can store the second review opinion in association with the target code.
In one embodiment, the code review data processing apparatus further comprises:
the reply opinion determining module is used for receiving a second trigger operation acting on the review portal and displaying a code review page according to the second trigger operation; the code review page comprises current review comments; receiving input operation acting on a code review page, and replying review comments aiming at the current review comments according to the input operation; when the completion of the input operation is detected, sending a review reply opinion completion notification to the processing server, so that the processing server generates a corresponding code review reply opinion feedback message according to the review reply opinion completion notification; and the code review reply opinion feedback message returned by the processing server is displayed in the multi-person session.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes code identifiers, the code review operation corresponding to the code review instruction information is to allocate users to be reviewed, and the response message includes the target user identifiers to be reviewed determined according to the code review workload corresponding to each target user.
In one embodiment, the code review data processing apparatus further comprises:
the statistical message determining module is used for acquiring the code review statistical message sent by the processing server; the code review statistical message is generated by the processing server according to the current review state of each target code, and comprises a code identifier, a corresponding user identifier to be reviewed and the current review state; the code review statistics message is presented in a multi-person session.
In one embodiment, the session message includes a session identifier of the multiplayer session, the response message includes the session identifier, and the session message processing module is further configured to send the session message to a message server corresponding to the multiplayer session, such that the message server forwards the session message to the processing server. The response message display module is also used for receiving a response message returned by the message server based on the session identifier, wherein the response message is sent to the message server by the processing server; and displaying the response message in the multi-person session corresponding to the session identification.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is query review information, the response message includes review information of an object code corresponding to the code identifier, and the review information includes at least one of a current review status, a user identifier to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identifier.
In one embodiment, as shown in fig. 16, a code review data processing apparatus is provided, which may employ software modules or hardware modules, or a combination of both, as part of a computer device, the apparatus specifically comprising: a session message acquisition module 1602, a code review operation determination module 1604, a response message generation module 1606, and a response message transmission module 1608, wherein:
a session message obtaining module 1602, configured to obtain a session message generated in a multi-person session; the session message comprises mark information and code review instruction information of the virtual user;
a code review operation determination module 1604 for determining a code review operation for the target code based on the code review instruction information;
A response message generation module 1606 for generating a corresponding response message based on the code review operation;
a response message sending module 1608, configured to return a response message; the response message is for presentation in a multi-person session.
In one embodiment, the session object of the multi-person session includes a plurality of target users, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is to distribute the users to be reviewed, and the response message generating module is further used for counting the code review workload of each target user; determining the allocation priority corresponding to each target user according to the statistical result; taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed; and generating a response message based on the target user identification to be reviewed.
In one embodiment, the code review instruction information includes a code identifier, the code review operation corresponding to the code review instruction information is closing the code review, and the response message generating module is further configured to obtain a current review state of the target code corresponding to the code identifier; updating the current evaluation state according to the code evaluation operation to obtain a target evaluation state, wherein the target evaluation state is closed; a response message is generated based on the target review status.
The specific definition of the code review data processing apparatus may be referred to above as the definition of the code review data processing method, and will not be described here. The various modules in the code review data processing apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 17. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as object codes, review opinions, reply opinions and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a code review data processing method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 18. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a code review data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the structures shown in fig. 17 and 18 are merely block diagrams of portions of structures associated with aspects of the application and are not intended to limit the computer apparatus to which aspects of the application may be applied, and that a particular computer apparatus may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (30)

1. A method of processing code review data, the method comprising:
displaying a session message in a multi-person session; the session object of the multi-person session comprises a virtual user;
when the session message comprises marking information and code review instruction information of a virtual user, the session message is sent to a processing server corresponding to the virtual user, so that the processing server determines code review operation aiming at target codes based on the code review instruction information, and generates corresponding response message based on the code review operation;
displaying the response message returned by the processing server in the multi-person session; when the code review operation corresponding to the code review instruction information is code review initiation, the code review instruction information comprises a code identifier corresponding to the target code and a corresponding user identifier to be reviewed, and the response message comprises a review entry corresponding to the code identifier and the user identifier to be reviewed;
Displaying a second code review opinion completion notification in the multi-person session; the second code review opinion completion notification includes second review opinions for the target code and the markup information of the virtual user;
sending the second code review opinion completion notification to the processing server to cause the processing server to store the second review opinion in association with the target code;
responding to a triggering operation for the review portal, and displaying a code review page; the code review page displays the object code and the second review opinion.
2. The method of claim 1, wherein prior to the presenting the session message in the multiplayer session, the method further comprises:
obtaining a virtual user creation instruction;
responding to the virtual user creation instruction, and acquiring a virtual user network address, wherein the virtual user network address is used for determining a processing server corresponding to the virtual user;
and generating the virtual user according to the virtual user network address.
3. The method of claim 1, wherein the code review instruction information includes an instruction keyword and a code identifier, the code identifier is used for instructing the processing server to determine a corresponding target code, the instruction keyword is used for instructing the processing server to match the instruction keyword with a preset instruction standard keyword, and the code review operation for the target code is determined according to a matching result.
4. The method of claim 1, wherein after the presenting the response message returned by the processing server in the multiplayer session, the method further comprises:
receiving a first trigger operation acting on the review portal, and displaying a code review page according to the first trigger operation; the code review page comprises an information display area and an information editing area, wherein the information display area is used for displaying the target code, and the information editing area is used for inputting review comments;
receiving a first comment input operation acting on the information editing area, and generating a first comment aiming at the target code according to the first comment input operation;
when the completion of the review opinion input operation is detected, a first code review opinion completion notification is sent to the processing server, so that the processing server generates a corresponding code review opinion feedback message according to the first code review opinion completion notification;
and displaying the code review opinion feedback message returned by the processing server in the multi-person session.
5. The method of claim 1, wherein the multi-person session includes a session edit section, the method further comprising, after the response message returned by the processing server is presented in the multi-person session:
And receiving a second comment input operation acting on the session editing area, generating a second comment corresponding to the target code according to the second comment input operation, and generating a second code comment completion notification corresponding to the second comment.
6. The method according to any one of claims 4 or 5, further comprising:
receiving a second trigger operation acting on the review portal, and displaying a code review page according to the second trigger operation; the code review page comprises current review opinions;
receiving input operation acting on the code review page, and replying review comments aiming at the current review comments according to the input operation;
when the input operation is detected to be completed, sending a review reply opinion completion notification to the processing server, so that the processing server generates a corresponding code review reply opinion feedback message according to the review reply opinion completion notification;
and displaying the code review reply opinion feedback message returned by the processing server in the multi-person session.
7. The method of claim 1, wherein the session object of the multi-person session comprises a plurality of target users, the code review instruction information comprises code identifications when the code review operation corresponding to the code review instruction information is to assign users to be reviewed, and the response message comprises target user identifications to be reviewed determined according to code review workload corresponding to each target user.
8. The method according to claim 1, wherein the method further comprises:
acquiring a code review statistical message sent by the processing server; the code review statistical message is generated by the processing server according to the current review state of each target code, and comprises a code identifier, a corresponding user identifier to be reviewed and the current review state;
the code review statistics message is presented in the multi-person session.
9. The method of claim 1, wherein the session message includes a session identifier of the multi-person session, wherein the response message includes the session identifier, and wherein the sending the session message to the processing server corresponding to the virtual user includes:
transmitting the session message to a message server corresponding to the multi-person session, so that the message server forwards the session message to the processing server;
the step of displaying the response message returned by the processing server in the multi-person session comprises the following steps:
receiving the response message returned by the message server based on the session identifier, wherein the response message is sent to the message server by the processing server;
And displaying the response message in the multi-person session corresponding to the session identification.
10. The method of claim 1, wherein when the code review operation corresponding to the code review instruction information is query review information, the code review instruction information includes a code identifier, the response message includes review information of an object code corresponding to the code identifier, and the review information includes at least one of a current review status, a user identifier to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identifier.
11. A method of processing code review data, the method comprising:
acquiring a session message generated in a multi-person session; the session message comprises marking information and code review instruction information of the virtual user;
determining a code review operation for the target code based on the code review instruction information;
generating a corresponding response message based on the code review operation;
returning the response message; the response message is used for being displayed in the multi-person session; when the code review operation corresponding to the code review instruction information is code review initiation, the code review instruction information comprises a code identifier corresponding to the target code and a corresponding user identifier to be reviewed, and the response message comprises a review portal corresponding to the code identifier and the user identifier to be reviewed;
Acquiring a second code review opinion completion notification generated in the multi-person session; the second code review opinion completion notification includes second review opinions for the target code and the markup information of the virtual user;
storing the second review opinion in association with the object code; the second review opinion is used for being displayed in a code review page which enters through triggering the review portal, and the code review page also displays the target code.
12. The method of claim 11, wherein the session object of the multi-person session comprises a plurality of target users, and wherein the code review instruction information comprises a code identification when a code review operation corresponding to the code review instruction information is to assign a user to be reviewed;
the generating a corresponding response message based on the code review operation includes:
counting the code review workload of each target user;
determining the allocation priority corresponding to each target user according to the statistical result;
taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed;
and generating a response message based on the target user identification to be reviewed.
13. The method of claim 11, wherein when a code review operation corresponding to code review instruction information is to turn off the code review, the code review instruction information includes a code identification;
the generating a corresponding response message based on the code review operation includes:
acquiring the current review state of the target code corresponding to the code identifier;
updating the current review state according to the code review operation to obtain a target review state; the target review state is closed;
and generating a response message based on the target review status.
14. A code review data processing system, wherein the system comprises a terminal and a processing server;
the terminal is used for displaying the session message in the multi-person session, and when the session message comprises the marking information and the code review instruction information of the virtual user, the session message is sent to the processing server; the session object of the multi-person session comprises a virtual user, and the session message comprises a session identifier of the multi-person session;
the processing server is used for determining code review operation aiming at target codes based on the code review instruction information, generating corresponding response messages based on the code review operation and returning the response messages to the terminal;
The terminal is further configured to display the response message in the multiplayer session; when the code review operation corresponding to the code review instruction information is code review initiation, the code review instruction information comprises a code identifier corresponding to the target code and a corresponding user identifier to be reviewed, and the response message comprises a review entry corresponding to the code identifier and the user identifier to be reviewed;
the terminal is further used for displaying a second code review opinion completion notification in the multi-person session and sending the second code review opinion completion notification to the processing server; the second code review opinion completion notification includes second review opinions for the target code and the markup information of the virtual user;
the processing server is further used for storing the second review opinion in association with the target code;
the terminal is also used for responding to the triggering operation for the evaluation portal and displaying a code evaluation page; the code review page displays the object code and the second review opinion.
15. The system of claim 14, wherein the session message includes a session identification of the multi-person session, wherein the response message includes the session identification, and wherein the system further comprises a message server;
The terminal is further configured to send the session message to the message server;
the message server is used for forwarding the session message to the processing server;
the processing server is further configured to send the response message to the message server;
the message server is further configured to forward the response message to the terminal based on the session identification.
16. A code review data processing apparatus, the apparatus comprising:
the session message display module is used for displaying session messages in the multi-person session; the session object of the multi-person session comprises a virtual user;
the session message processing module is used for sending the session message to a processing server corresponding to the virtual user when the session message comprises marking information and code review instruction information of the virtual user, so that the processing server determines code review operation aiming at target codes based on the code review instruction information and generates corresponding response messages based on the code review operation;
the response message display module is used for displaying the response message returned by the processing server in the multi-person session; when the code review operation corresponding to the code review instruction information is code review initiation, the code review instruction information comprises a code identifier corresponding to the target code and a corresponding user identifier to be reviewed, and the response message comprises a review entry corresponding to the code identifier and the user identifier to be reviewed;
The device is also for:
displaying a second code review opinion completion notification in the multi-person session; the second code review opinion completion notification includes second review opinions for the target code and the markup information of the virtual user;
sending the second code review opinion completion notification to the processing server to cause the processing server to store the second review opinion in association with the target code;
responding to a triggering operation for the review portal, and displaying a code review page; the code review page displays the object code and the second review opinion.
17. The apparatus of claim 16, wherein the apparatus is further configured to:
obtaining a virtual user creation instruction;
responding to the virtual user creation instruction, and acquiring a virtual user network address, wherein the virtual user network address is used for determining a processing server corresponding to the virtual user;
and generating the virtual user according to the virtual user network address.
18. The apparatus of claim 16, wherein the code review instruction information includes an instruction keyword and a code identifier, the code identifier is used to instruct the processing server to determine a corresponding target code, the instruction keyword is used to instruct the processing server to match the instruction keyword with a preset instruction standard keyword, and the code review operation for the target code is determined according to a matching result.
19. The apparatus of claim 16, wherein the apparatus is further configured to:
receiving a first trigger operation acting on the review portal, and displaying a code review page according to the first trigger operation; the code review page comprises an information display area and an information editing area, wherein the information display area is used for displaying the target code, and the information editing area is used for inputting review comments;
receiving a first comment input operation acting on the information editing area, and generating a first comment aiming at the target code according to the first comment input operation;
when the completion of the review opinion input operation is detected, a first code review opinion completion notification is sent to the processing server, so that the processing server generates a corresponding code review opinion feedback message according to the first code review opinion completion notification;
and displaying the code review opinion feedback message returned by the processing server in the multi-person session.
20. The apparatus of claim 16, wherein the multi-person session comprises a session editing area, the apparatus further configured to:
and receiving a second comment input operation acting on the session editing area, generating a second comment corresponding to the target code according to the second comment input operation, and generating a second code comment completion notification corresponding to the second comment.
21. The apparatus of claim 19 or 20, wherein the apparatus is further configured to:
receiving a second trigger operation acting on the review portal, and displaying a code review page according to the second trigger operation; the code review page comprises current review opinions;
receiving input operation acting on the code review page, and replying review comments aiming at the current review comments according to the input operation;
when the input operation is detected to be completed, sending a review reply opinion completion notification to the processing server, so that the processing server generates a corresponding code review reply opinion feedback message according to the review reply opinion completion notification;
and displaying the code review reply opinion feedback message returned by the processing server in the multi-person session.
22. The apparatus of claim 16, wherein the session object of the multi-person session comprises a plurality of target users, the code review instruction information comprises a code identification when the code review operation corresponding to the code review instruction information is to assign users to be reviewed, and the response message comprises target user identifications to be reviewed determined according to code review workload corresponding to each target user.
23. The apparatus of claim 16, wherein the apparatus is further configured to:
acquiring a code review statistical message sent by the processing server; the code review statistical message is generated by the processing server according to the current review state of each target code, and comprises a code identifier, a corresponding user identifier to be reviewed and the current review state;
the code review statistics message is presented in the multi-person session.
24. The apparatus of claim 16, wherein the session message comprises a session identification of the multi-person session, and wherein the response message comprises the session identification;
the session message processing module is further configured to send the session message to a message server corresponding to the multi-person session, so that the message server forwards the session message to the processing server;
the response message display module is further used for receiving the response message returned by the message server based on the session identifier, wherein the response message is sent to the message server by the processing server; and displaying the response message in the multi-person session corresponding to the session identification.
25. The apparatus of claim 16, wherein when the code review operation corresponding to the code review instruction information is query review information, the code review instruction information includes a code identification, the response message includes review information of an object code corresponding to the code identification, and the review information includes at least one of a current review status, a user identification to be reviewed, a review opinion, a reply opinion, a review retention time, a review initiation time, and a review initiation user identification.
26. A code review data processing apparatus, the apparatus comprising:
a session message acquisition module for acquiring a session message generated in a multi-person session; the session message comprises marking information and code review instruction information of the virtual user;
the code review operation determining module is used for determining a code review operation aiming at the target code based on the code review instruction information;
the response message generation module is used for generating a corresponding response message based on the code review operation;
a response message sending module, configured to return the response message; the response message is used for being displayed in the multi-person session; when the code review operation corresponding to the code review instruction information is code review initiation, the code review instruction information comprises a code identifier corresponding to the target code and a corresponding user identifier to be reviewed, and the response message comprises a review portal corresponding to the code identifier and the user identifier to be reviewed;
The device is also for:
acquiring a second code review opinion completion notification generated in the multi-person session; the second code review opinion completion notification includes second review opinions for the target code and the markup information of the virtual user;
storing the second review opinion in association with the object code; the second review opinion is used for being displayed in a code review page which enters through triggering the review portal, and the code review page also displays the target code.
27. The apparatus of claim 26, wherein the session object of the multi-person session comprises a plurality of target users, and wherein the code review instruction information comprises a code identification when a code review operation corresponding to the code review instruction information is to assign a user to be reviewed;
the response message generation module is also used for counting the code review workload of each target user; determining the allocation priority corresponding to each target user according to the statistical result; taking the identification of the target user with the highest allocation priority as the identification of the target user to be reviewed; and generating a response message based on the target user identification to be reviewed.
28. The apparatus of claim 26, wherein when a code review operation corresponding to code review instruction information is to turn off code review, the code review instruction information includes a code identification;
the response message generation module is also used for acquiring the current review state of the target code corresponding to the code identifier; updating the current review state according to the code review operation to obtain a target review state; the target review state is closed; and generating a response message based on the target review status.
29. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 13 when the computer program is executed.
30. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 13.
CN202010655507.6A 2020-07-09 2020-07-09 Code review data processing method, device, computer equipment and storage medium Active CN113992459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010655507.6A CN113992459B (en) 2020-07-09 2020-07-09 Code review data processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010655507.6A CN113992459B (en) 2020-07-09 2020-07-09 Code review data processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113992459A CN113992459A (en) 2022-01-28
CN113992459B true CN113992459B (en) 2023-09-15

Family

ID=79731322

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010655507.6A Active CN113992459B (en) 2020-07-09 2020-07-09 Code review data processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113992459B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114924956A (en) * 2022-05-13 2022-08-19 北京百度网讯科技有限公司 Code review method, device, equipment and medium
CN115102938B (en) * 2022-05-16 2024-06-25 中国航空工业集团公司西安飞行自动控制研究所 Method and system for pushing dynamic information generated by multi-user concurrent file based on HTTP (hyper text transport protocol)
WO2024016690A1 (en) * 2022-07-22 2024-01-25 华为云计算技术有限公司 Message sending method, code display method, apparatuses, and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639828A (en) * 2019-01-15 2019-04-16 腾讯科技(深圳)有限公司 Conversation message treating method and apparatus
CN110809756A (en) * 2017-06-29 2020-02-18 微软技术许可有限责任公司 Code review reset differences

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9201646B2 (en) * 2013-01-05 2015-12-01 Vmware, Inc. Automatic code review and code reviewer recommendation
US10834079B2 (en) * 2018-11-28 2020-11-10 International Business Machines Corporation Negotiative conversation chat bot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809756A (en) * 2017-06-29 2020-02-18 微软技术许可有限责任公司 Code review reset differences
CN109639828A (en) * 2019-01-15 2019-04-16 腾讯科技(深圳)有限公司 Conversation message treating method and apparatus

Also Published As

Publication number Publication date
CN113992459A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN113992459B (en) Code review data processing method, device, computer equipment and storage medium
US10412184B2 (en) System and method for displaying contextual activity streams
US9020138B1 (en) Targeted issue routing
KR101863981B1 (en) Using text messages to interact with spreadsheets
CN106470110B (en) Method and device for sending messages to multiple users in user list in group mode
CN112231463B (en) Session display method, apparatus, computer device and storage medium
CN112350923A (en) Session message display method and device, computer equipment and storage medium
CN112287262B (en) Session display method, apparatus, computer device and storage medium
WO2015007228A1 (en) Keyword based automatic reply generation in messaging application
CN112230821B (en) Session display method and device, computer equipment and storage medium
CN111162998A (en) Session data processing method, device, equipment and medium
JP2018506793A (en) Method, apparatus, system and computer program for providing a rich menu of official accounts in an instant messaging service
CN112202661A (en) Session message processing method and device, computer equipment and storage medium
CN112307357A (en) Social method and device for strangers
CN112732386A (en) Message processing method, device, terminal and storage medium
KR102066802B1 (en) Business processing method and device
CN110929133A (en) Operation and maintenance information query system and method
CN106485520B (en) Cross-channel communication control method and server
CN107832342B (en) Robot chatting method and system
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
US11012382B2 (en) State display information transmission system using chatbot
CN114157627B (en) Group processing method, device, electronic equipment and medium
WO2023284630A1 (en) Emoticon image adding method and apparatus, and device and storage medium
CN113256240B (en) Message processing method and device and server
CN114765640B (en) To-do display method, related device, 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
GR01 Patent grant
GR01 Patent grant