Data processing method and related equipment
The configuration form and field configuration data are generated through the plug-in configuration data of the target plug-in, which solves the problem of low efficiency and flexibility of table data processing, and realizes custom table data processing and a more open data processing method.
Patent Information
- Application Number
- CN202410796350.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-10
AI Technical Summary
The existing table data processing methods are not efficient and flexible enough to meet user-defined needs.
The configuration form is generated through the plug-in configuration data of the target plug-in, and the field configuration data of the target field is generated based on the form data set by the user and the template data of the plug-in configuration data, thereby realizing custom table data processing and improving the efficiency and flexibility of data processing. .
It realizes customized processing of table data, improves the efficiency and flexibility of data processing, allows developers to test, create and update target plug-ins, and provides a more open data processing method.
Smart Images

Figure CN118627482A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method and related equipment. Background Art
[0002] Tables often require processing and analysis of the data content in the table. However, the existing table processing method is inefficient and users are unable to generate new table content according to their needs, making the table processing method inflexible. Summary of the invention
[0003] The present disclosure proposes a data processing method and related equipment to solve the technical problems of low processing efficiency and low flexibility of table data to a certain extent.
[0004] In a first aspect, the present disclosure provides a data processing method, comprising:
[0005] In response to a plug-in call request for a target plug-in, obtaining plug-in configuration data of the target plug-in; the target plug-in is used to generate a target field in a table;
[0006] Generate a configuration form based on the description data in the plug-in configuration data;
[0007] In response to receiving the form data of the configuration form, generating field configuration data of the target field based on the form data and the template data in the plug-in configuration data;
[0008] A target field content of the target field is generated based on the field configuration data.
[0009] In a second aspect of the present disclosure, a data processing method is provided, comprising:
[0010] In response to receiving a plug-in debugging request for a target plug-in, creating a debugging plug-in for the target plug-in; the target plug-in is used to generate a target field in a table;
[0011] In response to a debugging call request for the debugging plug-in, obtaining debugging configuration data of the debugging plug-in;
[0012] Generate a debugging configuration form based on the description data in the debugging configuration data;
[0013] In response to receiving the debugging data of the debugging configuration form, generating a test result of the target plug-in.
[0014] According to a third aspect of the present disclosure, a data processing device is provided, comprising:
[0015] A first acquisition module, configured to acquire, in response to a plug-in call request for a target plug-in, plug-in configuration data of the target plug-in; the target plug-in is configured to generate a target field in a table;
[0016] A first configuration module, configured to generate a configuration form based on the description data in the plug-in configuration data;
[0017] A target field module, configured to generate field configuration data of the target field based on the form data and template data in the plug-in configuration data in response to receiving the form data of the configuration form;
[0018] A field content module is used to generate target field content of the target field based on the field configuration data.
[0019] In a fourth aspect of the present disclosure, a data processing device is provided, comprising:
[0020] A creation module, configured to create a debugging plug-in of a target plug-in in response to receiving a plug-in debugging request for the target plug-in; the target plug-in is configured to generate a target field in a table;
[0021] A second acquisition module, configured to acquire the debugging configuration data of the debugging plug-in in response to a debugging call request for the debugging plug-in;
[0022] A second configuration module, used to generate a debugging configuration form based on the description data in the debugging configuration data;
[0023] The debugging module is used to generate a test result of the target plug-in in response to receiving the debugging data of the debugging configuration form.
[0024] In a fifth aspect of the present disclosure, an electronic device is provided, comprising one or more processors, a memory; and one or more programs, wherein the one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the method described in the first aspect or the second aspect.
[0025] According to a sixth aspect of the present disclosure, a non-volatile computer-readable storage medium containing a computer program is provided. When the computer program is executed by one or more processors, the processors execute the method described in the first aspect or the second aspect.
[0026] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0027] From the above, it can be seen that the data processing method and related equipment provided by the present disclosure generate a configuration form through the description data of the plug-in configuration data of the target plug-in; and based on the form data of the configuration form set by the user and the template data of the plug-in configuration data, generate the field configuration data of the target field, thereby generating the corresponding target field content. In this way, by calling the target plug-in, it is possible to implement customized processing of the table data and obtain the corresponding target field, thereby improving the efficiency and flexibility of data processing. In addition, developers can test, create, and update the target plug-in, realizing a more open and flexible data processing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 A schematic diagram of a data processing architecture according to an embodiment of the present disclosure.
[0030] Figure 2 The figure is a schematic diagram of the hardware structure of an exemplary electronic device according to an embodiment of the present disclosure.
[0031] Figure 3 A schematic flowchart of a data processing method according to an embodiment of the present disclosure.
[0032] Figure 4 A schematic diagram of a search target plug-in according to an embodiment of the present disclosure.
[0033] Figure 5 This is a schematic diagram of obtaining specified version data of a target plug-in according to an embodiment of the present disclosure.
[0034] Figure 6 The figure is a schematic diagram of the application principle of the target plug-in according to the embodiment of the present disclosure.
[0035] Figure 7 A schematic flowchart of a data processing method according to an embodiment of the present disclosure.
[0036] Figure 8 The figure is a schematic diagram of the development principle of the target plug-in according to the embodiment of the present disclosure.
[0037] Fig. 9 The figure is a schematic diagram of the principles of review and deployment of the target plug-in according to an embodiment of the present disclosure.
[0038] Fig.10 Schematic diagram of a data processing device according to an embodiment of the present disclosure.
[0039] Fig.11 Schematic diagram of a data processing device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0041] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0042] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0044] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0046] Figure 1 A schematic diagram of a data processing architecture of an embodiment of the present disclosure is shown. Figure 1 , the data processing architecture 100 may include a server 110, a terminal 120, and a network 130 providing a communication link. The server 110 and the terminal 120 may be connected via a wired or wireless network 130. The server 110 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, security services, and CDN.
[0047] The terminal 120 may be implemented in hardware or software. For example, when the terminal 120 is implemented in hardware, it may be various electronic devices having a display screen and supporting page display, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, and desktop computers, etc. When the terminal 120 device is implemented in software, it may be installed in the electronic devices listed above; it may be implemented as multiple software or software modules (such as software or software modules used to provide distributed services), or it may be implemented as a single software or software module, which is not specifically limited here.
[0048] It should be noted that the data processing method provided in the embodiment of the present application can be executed by the terminal 120 or by the server 110. It should be understood that Figure 1 The number of terminals, networks and servers in the embodiment is only for illustration and is not intended to limit the number of terminals, networks and servers. Any number of terminals, networks and servers may be provided as required.
[0049] Figure 2 FIG. 2 shows a schematic diagram of the hardware structure of an exemplary electronic device 200 provided in an embodiment of the present disclosure. Figure 2 As shown, the electronic device 200 may include: a processor 202, a memory 204, a network module 206, a peripheral interface 208 and a bus 210. The processor 202, the memory 204, the network module 206 and the peripheral interface 208 are connected to each other in communication within the electronic device 200 through the bus 210.
[0050] Processor 202 may be a central processing unit (CPU), a data processor, a neural network processor (NPU), a microcontroller (MCU), a programmable logic device, a digital signal processor (DSP), an application specific integrated circuit (ASIC), or one or more integrated circuits. Processor 202 may be used to perform functions related to the technology described in this disclosure. In some embodiments, processor 202 may also include multiple processors integrated into a single logical component. For example, Figure 2 As shown, processor 202 may include a plurality of processors 202a, 202b, and 202c.
[0051] The memory 204 may be configured to store data (eg, instructions, computer code, etc.). Figure 2 As shown, the data stored in the memory 204 may include program instructions (e.g., program instructions for implementing the data processing method of the embodiment of the present disclosure) and data to be processed (e.g., the memory may store configuration files of other modules, etc.). The processor 202 may also access the program instructions and data stored in the memory 204, and execute the program instructions to operate on the data to be processed. The memory 204 may include a volatile storage device or a non-volatile storage device. In some embodiments, the memory 204 may include a random access memory (RAM), a read-only memory (ROM), an optical disk, a magnetic disk, a hard disk, a solid-state drive (SSD), a flash memory, a memory stick, etc.
[0052] The network module 206 can be configured to provide communication with other external devices to the electronic device 200 via a network. The network can be any wired or wireless network capable of transmitting and receiving data. For example, the network can be a wired network, a local wireless network (e.g., Bluetooth, WiFi, near field communication (NFC) etc.), a cellular network, the Internet or a combination thereof. It is understood that the type of network is not limited to the above specific examples. In some embodiments, the network module 306 can include any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, etc., in any combination.
[0053] The peripheral interface 208 can be configured to connect the electronic device 200 to one or more peripheral devices to achieve information input and output. For example, the peripheral devices can include input devices such as a keyboard, a mouse, a touch pad, a touch screen, a microphone, and various sensors, and output devices such as a display, a speaker, a vibrator, and an indicator light.
[0054] The bus 210 can be configured to transmit information between various components of the electronic device 200 (e.g., the processor 202, the memory 204, the network module 206, and the peripheral interface 208), such as an internal bus (e.g., a processor-memory bus), an external bus (USB port, PCI-E bus), etc.
[0055] It should be noted that, although the architecture of the electronic device 200 only shows the processor 202, the memory 204, the network module 206, the peripheral interface 208 and the bus 210, in the specific implementation process, the architecture of the electronic device 200 may also include other components necessary for normal execution. In addition, it can be understood by those skilled in the art that the architecture of the electronic device 200 may also only include the components necessary for implementing the embodiments of the present disclosure, and does not necessarily include all the components shown in the figure.
[0056] Tabular data often needs to be processed and analyzed, but the existing tabular data processing methods are inefficient and inflexible. Therefore, how to improve the processing efficiency and flexibility of tabular data has become a technical problem that needs to be solved urgently.
[0057] In view of this, the embodiments of the present disclosure provide a data processing method and related equipment. A configuration form is generated through the description data of the plug-in configuration data of the target plug-in; and based on the form data of the configuration form set by the user and the template data of the plug-in configuration data, the field configuration data of the target field is generated, thereby generating the corresponding target field content. By calling the target plug-in, custom processing of the table data can be achieved, and the corresponding target field can be obtained, thereby improving the efficiency and flexibility of data processing. In addition, developers can test, create, and update the target plug-in, realizing a more open and flexible data processing method.
[0058] See also Figure 3 , Figure 3 A schematic flow chart of a data processing method according to an embodiment of the present disclosure is shown. The data processing method according to an embodiment of the present disclosure can be deployed on a terminal or a server, for example, on an application platform. Figure 3 In the data processing method 300, the data processing method 300 may further include the following steps.
[0059] In step S310, in response to a plug-in call request for a target plug-in, plug-in configuration data of the target plug-in is acquired; the target plug-in is used to generate a target field in a table.
[0060] A plug-in may refer to a functional component with business custom logic on an application platform. A plug-in call request is used to call a target plug-in. Plug-in configuration data may refer to a series of parameters and setting information set for a plug-in to work properly or customize its function according to specific requirements.
[0061] In some embodiments, the plug-in configuration data may include description data and template data. The description data may refer to the DSL description data of the field component in the plug-in, and the description data may be used to render the configuration form, and provide the plug-in configuration data visually to the user for setting. The template data may refer to a preset structured content model, and the template data may be customized. Different template data may correspond to target plug-ins with different functions. For example, for a target plug-in that implements formula processing, the template data may include a preset formula model; for a target plug-in that implements content expansion, the template data may include a preset prompt word model.
[0062] In some embodiments, before the plug-in call request for the target plug-in, the method further includes:
[0063] In response to receiving a plug-in query request containing a keyword, determining a target data set based on a query plug-in type in the plug-in query request;
[0064] Searching in the target data set based on the keyword; wherein the preset data set includes meta information of multiple plug-ins;
[0065] Determine the plug-in corresponding to the meta information matching the keyword as the search result, and obtain a search result list;
[0066] The target plug-in is determined based on a plug-in selected by a user in the search result list.
[0067] See also Figure 4 , Figure 4A schematic diagram of a search target plug-in according to an embodiment of the present disclosure is shown. In Figure E, a user sends a plug-in query request for a target plug-in to the front-end FE. For example, the user can enter a search keyword in the input area of the real interface and trigger the search button in the display interface to generate a plug-in query request including the keyword. The front-end FE sends the plug-in query request to the back-end Pack. In response to the plug-in query request, the back-end Pack queries the meta information document from the meta information sdk and verifies the reading authority of the meta information document; if the reading authority verification of the meta information document passes, the keyword is verified (the keyword cannot be empty). The back-end Pack can query the brand to which the meta information document belongs in the global meta information global meta (for example, query the field brand in the meta information). If the meta information document is a non-preset unit (for example, cn unit), it crosses to the preset unit to query data. Based on the search request, it is determined whether the queried plug-in is a field type plug-in. In response to the plug-in queried by the search request being a field type plug-in, the back-end Pack searches based on the keyword in the corresponding specified data set (such as the first search data set) to obtain search results. The backend Pack can obtain the basic information of the search result plug-in from the database and verify the user visibility of the basic information. If the user visibility verification passes, the operation classification of the search result can be obtained from the database. The backend Pack can return the search results to the frontend FE in the form of a list to show the user the plug-in list of the search results.
[0068] In some embodiments, determining the target data set based on the query plug-in type in the plug-in query request includes:
[0069] In response to the query plug-in type being a preset plug-in, determining the first search data set as the target data set;
[0070] In response to the query plug-in type being a non-preset plug-in, a second search data set is determined to be the target data set, and the second search data set is independent of the first search data set.
[0071] The preset plug-in may refer to a field plug-in for generating a custom field, such as a formula plug-in or an AI extension plug-in. The first search data set may be a search data set corresponding to a preset plug-in, and the second search data set may correspond to a non-preset plug-in.
[0072] In some embodiments, in response to a plug-in call request for a target plug-in, obtaining plug-in configuration data of the target plug-in includes:
[0073] In response to the plug-in call request including a specified version, obtaining plug-in configuration data and specified version data corresponding to the specified version;
[0074] In response to the plug-in call request not including the specified version, the plug-in configuration data and the latest version data corresponding to the latest version are obtained.
[0075] See also Figure 5 , Figure 5 A schematic diagram of obtaining specified version data of a target plug-in according to an embodiment of the present disclosure is shown. Figure 5 In the process, the user sends a plug-in call request to the front-end FE, and the plug-in call request includes querying the specified version data. The front-end FE sends the plug-in call request to the back-end Pack, and the back-end Pack queries the plug-in configuration data corresponding to the target plug-in from the database and verifies the user visibility. If the user visibility verification passes, the operation classification of the target plug-in is obtained from the database. In response to determining that the plug-in configuration data includes multi-version data, it is determined whether there is a specified version number in the parameters of the plug-in call request; in response to the existence of the specified version number in the parameters, the plug-in configuration data corresponding to the specified version is queried in the database; in response to the absence of the specified version number in the parameters, the plug-in configuration data corresponding to the latest version is queried in the database. The queried plug-in configuration data is assembled with the corresponding version data, and sent to the front-end FE via the back-end Pack to be displayed to the user.
[0076] In step S320, a configuration form is generated based on the description data in the plug-in configuration data.
[0077] The configuration form may refer to dynamically building a user interface based on the plug-in configuration metadata (such as field name, type, default value, description, etc.) provided by the target plug-in, so that the user can customize or modify the configuration of the plug-in by filling in the form.
[0078] In step S330, in response to receiving the form data of the configuration form, field configuration data of the target field is generated based on the form data and the template data in the plug-in configuration data.
[0079] When the user submits specific configuration information through the configuration form, the field configuration data of the target field can be generated or updated according to the form data and the template data pre-defined by the plug-in.
[0080] In step S340, target field content of the target field is generated based on the field configuration data.
[0081] In some embodiments, the template data comprises formula template data and the target field comprises a formula field;
[0082] Then, based on the form data and the template data in the plug-in configuration data, the field configuration data of the target field is generated, including: generating a corresponding formula from the form data and the formula template data, and obtaining the field configuration data of the target field based on the formula;
[0083] Generating the target field content of the target field based on the field configuration data includes: substituting the field content corresponding to the field configuration data in the table data into the formula to obtain the target field content.
[0084] In some embodiments, the template data includes prompt word template data, and the target field includes a prompt word field;
[0085] Then, based on the form data and the template data in the plug-in configuration data, field configuration data of the target field is generated, including:
[0086] Generate corresponding prompt words from the form data and the prompt word template data, and obtain field configuration data of the target field based on the prompt words;
[0087] Generating target field content of the target field based on the field configuration data includes: automatically generating the target field content based on the prompt word.
[0088] See also Figure 6 , Figure 6 A schematic diagram of the application principle of a target plug-in according to an embodiment of the present disclosure is shown. Figure 6 In the example, the user can call the plug-in for the current data object to implement the function of the target plug-in for the current data object. The target plug-in can be used to generate the open field of the current data object, which can refer to the custom field created by the developer on the open slot. For example, calling the target plug-in based on the current data object can obtain the open formula field after performing formula operation on at least part of the data fields in the current data object, or can obtain the AI extended field by performing AI expansion on at least part of the data fields in the current data object.
[0089] The user can send a plug-in information request to the front-end FE to obtain the target plug-in information. In response to the plug-in information request, the front-end FE obtains the plug-in information under each operation category from the back-end Pack, and displays each target plug-in in the corresponding interface. Specifically, the target plug-in can be an open field plug-in. The user can perform a trigger operation to add a new field in the display interface. For example, click the new field button in the display interface, and the field panel will be displayed in the associated area of the new field button. The field panel can display one or more field buttons, and each field button can be used to generate different fields. The field panel can also display a field center button, and the user can trigger the field center button to display the corresponding field center interface. The field center interface may include one or more field buttons. Because the field panel can only carry a limited number of field plug-ins due to regional restrictions, all field plug-ins can be carried in the field center.
[0090] The field center interface can also display a search component for searching plug-ins, which can include an input area and a corresponding search trigger component. The input area can be used to input search information, such as keyword input; the search trigger component can be used to send a plug-in search request to the front-end FE, and the plug-in search request can include the search information input in the input area.
[0091] The front-end FE sends the plug-in search request to the back-end Pack, and the back-end Pack sends the search information to the search center; the search center searches the index information of all plug-ins based on the search information, and returns the plug-in search results to the back-end Pack in the form of a plug-in list. The back-end Pack returns the plug-in list of the plug-in search results to the front-end FE for display, for example, the plug-in list can be displayed in the field center interface in the form of a list or view.
[0092] The user can select the plug-in search results displayed by the front-end FE and trigger the selected target plug-in, for example, click the target plug-in in the plug-in search results to generate a target plug-in call request. In response to the target plug-in call request, the front-end FE obtains the corresponding plug-in configuration data from the back-end Pack, and renders the configuration form based on the form rendering data in the plug-in configuration data. The front-end FE displays the configuration form to the user, the user sets the configuration data in the configuration form, and sends the set configuration form to the front-end FE. The front-end FE maintains the settings of the configuration form, obtains the configuration data and its settings, generates the target field about the current data object, and displays it to the user. The current data object can be a data table, and the data table table can include a initial fields. After calling the target plug-in, the data table table adds a target field. At this time, the data table table includes a initial fields and 1 target field.
[0093] In some embodiments, the method 300 further includes: in response to a user's upgrade request for the target plug-in, upgrading the target plug-in based on upgrade data in the upgrade request.
[0094] The user can manually upgrade the target plug-in. Specifically, the user triggers an upgrade request, which usually includes the current version information of the target plug-in and the new version information that the user wants to upgrade to, and sometimes also includes some additional upgrade parameters or configurations and other upgrade data.
[0095] See also Figure 7 , Figure 7 A schematic flow chart of a data processing method according to an embodiment of the present disclosure is shown. The data processing method according to an embodiment of the present disclosure can be deployed on a terminal or a server, for example, on an application platform. Figure 7 In the data processing method 700, the data processing method 700 may further include the following steps.
[0096] In step S710 , in response to receiving a plug-in debugging request for a target plug-in, a debugging plug-in of the target plug-in is created; the target plug-in is used to generate a target field in a table.
[0097] The developer can debug the target plug-in through the test environment provided by the application platform, and judge whether the target plug-in can achieve the expected function through the debugging results. Figure 8 , Figure 8 A schematic diagram of the development principle of a target plug-in according to an embodiment of the present disclosure is shown. Figure 8 In the process, the developer can send a first plug-in test request to the front-end FE; the front-end FE responds to the first plug-in test request, creates a debugging plug-in for debugging the target plug-in, and generates corresponding plug-in protocol data. Specifically, a toolbar can be displayed on the corresponding interface, and the developer fills in the setting data of the plug-in protocol data through the toolbar and generates plug-in protocol data about the target plug-in. The plug-in protocol data may refer to the plug-in configuration data provided by the developer based on the supported language (such as a programming language), which has a structured information format and can define the communication and configuration between the application (such as a platform or framework) and the plug-in. The plug-in protocol data may include at least one of the following: form rendering data, template data, and other necessary data (such as metadata, function description, dependency, etc. of the plug-in) to ensure that the plug-in can be recognized, loaded and executed correctly by the host application. The developer can execute the trigger operation of the plug-in test request (such as clicking the corresponding test button, etc.), send the first plug-in test request to the front-end FE, and submit the plug-in protocol data to the front-end FE in the form of a file. The front-end FE creates the plug-in configuration data of the target plug-in based on the received plug-in protocol data, and transmits it to the back-end Pack for storage.
[0098] In some embodiments, method 700 further includes: in response to receiving an update request for the debug plug-in, updating the debug plug-in based on the update data in the update request. Wherein, the target plug-in may be multi-version, and the plug-in protocol data may be the corresponding multi-version data. The developer may send a second plug-in test request to the front-end FE; in response to the second plug-in test request, the front-end FE loads the existing debug plug-in for updating. At this time, the existing debug plug-in may be the first version, and its corresponding plug-in protocol data is also the first version. The developer may submit the plug-in protocol data of the new version to the front-end FE in the form of a file, for example, the new version may refer to the second version. The front-end FE updates the plug-in configuration data of the first version of the debug plug-in based on the received plug-in protocol data of the second version, and obtains the plug-in configuration data of the second version. The updated plug-in configuration data of the second version is transmitted to the back-end Pack for storage, thereby completing the update of the existing debug plug-in. In step S720, in response to the debug call request for the debug plug-in, the debug configuration data of the debug plug-in is obtained.
[0099] Specifically, the developer can trigger the call of the debug plug-in (for example, the developer can select the debug plug-in in the corresponding interface and click a button to add the debug plug-in) to send a debug plug-in call request to the front-end FE.
[0100] In step S730, a debugging configuration form is generated based on the description data in the debugging configuration data.
[0101] Specifically, the front-end FE responds to the debugging plug-in call request, pulls the configuration data of the target plug-in from the back-end Pack, and renders the form component according to the form rendering data in the configuration data to display the configuration form of the debugging plug-in on the corresponding interface.
[0102] In step S740, in response to receiving the debugging data of the debugging configuration form, a test result of the target plug-in is generated.
[0103] Specifically, the developer can fill in the corresponding form items in the configuration form, and the front-end FE obtains the corresponding data value from the form item to process the configuration data of the debugging plug-in to generate the target field. The target field can be saved and displayed in the corresponding interface to check whether the content generation of the target field meets expectations.
[0104] In some embodiments, method 700 further includes:
[0105] When the test result meets expectations, receiving a plug-in creation request for creating the target plug-in;
[0106] In response to receiving the plug-in creation request, the plug-in protocol data of the target plug-in is acquired from an attachment field in the plug-in creation request; wherein the plug-in protocol data is generated based on protocol setting data input by a user.
[0107] See also Fig. 9 , Fig. 9 A schematic diagram showing the principles of review and deployment of a target plug-in according to an embodiment of the present disclosure is shown. Fig. 9 In the process, the auditor can audit the target plug-in based on the audit request raised by the developer. If the auditor determines that the audit result of the target plug-in is passed, the target plug-in can be deployed on the application platform for users to share and use.
[0108] The developer can send a plug-in review request to the front-end FE, which is used to request the reviewer to review the unpublished target plug-in or the updated version of the published target plug-in. Specifically, the developer can submit the plug-in review request to the front-end FE by filling in the review form. The automated testing program Automation in the application platform can automatically send a notification to the reviewer when the plug-in review request is detected to prompt the reviewer to review the information of the target plug-in. After the reviewer determines that the review is passed, the relevant information of the target plug-in is sent to the front-end FE, so that the front-end FE can add or update the relevant information of the target plug-in in the plug-in management table. These relevant information may include at least one of the following: plug-in name, plug-in description, plug-in type, plug-in version, plug-in ID, operation options (such as edit, delete, enable / disable functions, operation buttons or links, provided to administrators to manage plug-ins), plug-in developers, plug-in release date: display plug-in release or update time, dependencies, etc.
[0109] In some embodiments, method 700 further includes:
[0110] When the test result meets expectations, receiving a plug-in creation request for creating the target plug-in;
[0111] In response to receiving the plug-in creation request, the plug-in protocol data of the target plug-in is acquired from an attachment field in the plug-in creation request; wherein the plug-in protocol data is generated based on protocol setting data input by a user.
[0112] Specifically, when the test result meets expectations, the auditor determines that the target plug-in has passed the audit. The auditor can trigger the automated test program Automation to generate a plug-in creation request (e.g., HTTP action) by clicking an automation button; or the plug-in creation request can be generated by a user, for example, by triggering a button for creating a plug-in. The plug-in creation request can be used to request the backend Pack to call the corresponding target plug-in interface to submit the plug-in configuration data of the target plug-in to deploy the target plug-in on the application platform, such as creating a target plug-in or updating the target plug-in. The plug-in deployment request may include a record identifier recordID for indicating the plug-in configuration data of the target plug-in, wherein the plug-in configuration data of the target plug-in may be stored in the core domain of the application platform in the form of table data. For example, the plug-in configuration data may be a row record data record having a corresponding record identifier recordID and including multiple record fields, each record field may be a plug-in configuration parameter of the plug-in configuration data, and the value of each record field may be the value of the plug-in configuration parameter. The backend Pack responds to the plug-in deployment request, obtains the corresponding row record data according to the record identifier (e.g., recordID), and can obtain the plug-in configuration data of the target plug-in according to the row record data.
[0113] The backend Pack can verify the legitimacy and access rights of the row record data, and can obtain the valid data of the row record data record after the verification. Among them, when adding a target plug-in, a backend identifier (such as PackID) and a plug-in identifier (such as extensionID) are generated. The backend identifier can be used to indicate the backend Pack corresponding to the target plug-in, and the plug-in identifier can be used to indicate the target plug-in.
[0114] The backend Pack can parse the row record data record to obtain the plug-in name of the target plug-in (which can be an internationalized plug-in name) extension_name, and the description language of the target plug-in (such as dsl (Domain Specific Language, domain specific language) description language).
[0115] The backend Pack can parse the plug-in type of the target plug-in based on the row record data record, and the plug-in type may include the first type or the second type. For example, the first type may be a static field class, indicating that the target plug-in relies on the static template in the configuration data to generate the target field. The second type may be a FaaS (Functions as a Service) field class, indicating that the target plug-in can support FaaS to generate the target field. Specifically, the backend Pack can extract the field extension_type representing the plug-in type from the parsed data structure. For example, extension_type=field_static can indicate that the plug-in type is a static field class, and extension_type=field_FaaS can indicate that the plug-in type is a FaaS field class. When it is necessary to obtain all field plug-ins related to a field, non-precise matching can be performed based on the plug-in type as a query condition. For example, the query condition may be where extension_type in (field_static) to query the target plug-in whose plug-in type extension_type includes field_static. For another example, the query condition may be where extension_type in (field_) to query the target plug-in whose plug-in type extension_type includes field, that is, to find plug-ins related to the field field. It should be understood that the above plug-in types are only examples and are not intended to limit the plug-in types. The plug-in type can be set as needed, and the number of categories of the plug-in type can be one or more, which is not limited here.
[0116] In some embodiments, obtaining the plug-in protocol data of the target plug-in from the attachment field in the plug-in creation request includes:
[0117] Obtaining a tag of the attachment field, and obtaining a download link of the attachment field based on the tag;
[0118] The content data of the attachment field is acquired based on the download link to obtain the plug-in protocol data.
[0119] Specifically, the backend Pack can obtain the tag token of the attachment field in the row record data record. The backend Pack obtains the attachment download link according to the tag token of the attachment field, and obtains the attachment data content of the attachment field based on the download link. The attachment data content can be the plug-in protocol data of the target plug-in, which is provided in the attachment field in the form of a file.
[0120] The backend Pack can set the visible scope of the target plug-in. In order to avoid conflicts between field editing permissions and plug-in permissions, the target plug-in can be set to be visible to all employees. The backend Pack can parse the operation classification of the target plug-in based on the row record data record. The operation classification can be a classification based on the function or application scenario of the target plug-in. For example, the operation classification can include customer service, data analysis, system tools, security maintenance, etc. The backend Pack can parse the plug-in configuration data of the target plug-in to obtain version data and store it.
[0121] It can be seen that the backend Pack can parse the row record data record to obtain the newly added or updated fields, for example, the backend identifier PackID, the plug-in identifier extensionID, the plug-in type extension_type, the operation category operation_type, etc. The backend Pack can store the newly added or updated fields in the meta information of the target plug-in, and store them in the database together with the plug-in configuration data of the target plug-in.
[0122] In some embodiments, method 700 further includes:
[0123] Generate a version number of the target plug-in, and store the version number in version data corresponding to the target plug-in.
[0124] Specifically, the backend Pack can lock the multi-version data of the target plug-in, for example, based on the Redis database to prevent conflicts between different versions of data. The backend Pack can generate the current version number of the target plug-in, write the basic data and version data of the target plug-in into the database, add or update the Replit plug-in data, etc.
[0125] The backend Pack can store multi-version data of the target plug-in in the form of a data table. Specifically, a data table can be created to store different version information about the plug-in, including its type extension_type, primary key identifier id, primary key PRIMARY KEY (defined on the primary key identifier id to ensure the uniqueness of each data table record), unique key UNIQUE KEY uniq_pack_version_id (which can ensure that the combination of pack_id and version is unique to prevent the same target plug-in from having duplicate version numbers), plug-in identifier pack_id, version data version_data (which can store detailed information related to the version, which may be JSON or other structured text data), storage type storage_type (used to indicate whether the version data version_data directly stores data or stores a reference to data), version number version (the creation version number is different from the update version number), protocol version protocol_version (the base version number that the target plug-in depends on or is compatible with), plug-in version status status (for example, 1 means enabled, 2 means disabled), and creation time create_time and update time update_time and other detailed information.
[0126] In some embodiments, method 700 further includes:
[0127] In response to determining that the target plug-in is a preset type plug-in, an independent first search data set corresponding to the preset type plug-in is updated based on the meta information of the target plug-in.
[0128] When updating the search data, it can also be determined according to the plug-in type of the target plug-in. For a preset plug-in, the first search data set can be updated; for a non-preset plug-in, the second search data set can be updated.
[0129] Specifically, the backend Pack can determine the corresponding search data set based on the plug-in category of the target plug-in, and the search data set can be an index information set of all plug-ins. If the target plug-in is a field class plug-in (a plug-in for generating fields), a search can be performed in the first search data set, and the first search data set can be an index information set of all field class plug-ins. If the target plug-in is about a non-field class plug-in, a search can be performed in the second search data set, and the second search data set can be an index information set of all non-field class plug-ins. The first search data set and the second search data set can be independent of each other. The backend Pack can update the search data of the search middle station in the application platform based on the newly added or updated metadata of the target plug-in. For example, for a field class plug-in, the first search data set can be updated based on the newly added or updated metadata.
[0130] The backend Pack can encapsulate the above processing results and return the encapsulated results to the frontend FE through the automated testing program Automation. This completes the deployment of the target plug-in on the application platform, and the user can call the target plug-in to implement the corresponding function through the trigger operation.
[0131] In some embodiments, method 700 further includes:
[0132] In response to receiving an update request for the target plug-in, the target plug-in is updated based on update data in the update request.
[0133] Specifically, the developer can also submit update data on the front-end FE, and the front-end FE sends the update data to the back-end Pack, and the back-end Pack updates the target plug-in based on the update data.
[0134] It can be seen that according to the method of the embodiment of the present disclosure, the application platform provides developers with a more open and flexible data processing method, and developers can test, create, and update target plug-ins in the application platform to achieve customized data processing functions. The function of the target plug-in can also be provided to users, and users can achieve efficient and flexible data processing by calling the target plug-in.
[0135] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0136] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0137] Based on the same technical concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides a data processing device, see Fig.10 , the data processing device comprises:
[0138] A first acquisition module, configured to acquire, in response to a plug-in call request for a target plug-in, plug-in configuration data of the target plug-in; the target plug-in is configured to generate a target field in a table;
[0139] A first configuration module, configured to generate a configuration form based on the description data in the plug-in configuration data;
[0140] A target field module, configured to generate field configuration data of the target field based on the form data and template data in the plug-in configuration data in response to receiving the form data of the configuration form;
[0141] A field content module is used to generate target field content of the target field based on the field configuration data.
[0142] In some embodiments, the data processing device further includes:
[0143] A plug-in query module, configured to, in response to receiving a plug-in query request containing a keyword, determine a target data set based on a query plug-in type in the plug-in query request;
[0144] A search module, configured to search the target data set based on the keyword; wherein the preset data set includes meta information of a plurality of plug-ins;
[0145] A result list module, used to determine the plug-in corresponding to the meta information matching the keyword as the search result, and obtain a search result list;
[0146] The plug-in selection module is used to determine the target plug-in based on the plug-in selected by the user in the search result list.
[0147] In some embodiments, the data processing device further includes:
[0148] The additional information module is used to generate additional information data based on the attributes of the target field and store the additional information data in the meta information of the target plug-in.
[0149] In some embodiments, the meta information of the target plug-in includes a version data table, the version data table includes at least one record, and each record stores plug-in configuration data of a different version.
[0150] In some embodiments, the data processing device further includes:
[0151] The plug-in upgrade module is used to respond to a user's upgrade request for the target plug-in and upgrade the target plug-in based on the upgrade data in the upgrade request.
[0152] Based on the same technical concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides a data processing device, see Fig.11 , the data processing device comprises:
[0153] A creation module, configured to create a debugging plug-in of a target plug-in in response to receiving a plug-in debugging request for the target plug-in; the target plug-in is configured to generate a target field in a table;
[0154] A second acquisition module, configured to acquire the debugging configuration data of the debugging plug-in in response to a debugging call request for the debugging plug-in;
[0155] A second configuration module, used to generate a debugging configuration form based on the description data in the debugging configuration data;
[0156] The debugging module is used to generate a test result of the target plug-in in response to receiving the debugging data of the debugging configuration form.
[0157] In some embodiments, the data processing apparatus further comprises:
[0158] The debugging update module is configured to, in response to receiving an update request for the debugging plug-in, update the debugging plug-in based on update data in the update request.
[0159] In some embodiments, the data processing apparatus further comprises:
[0160] A receiving module, configured to receive a plug-in creation request for creating the target plug-in when the test result meets expectations;
[0161] The plug-in creation module is used to obtain the plug-in protocol data of the target plug-in from the attachment field in the plug-in creation request in response to receiving the plug-in creation request; wherein the plug-in protocol data is generated based on the protocol setting data input by the user.
[0162] In some embodiments, the data processing apparatus further comprises:
[0163] an attachment acquisition module, used to acquire a tag of the attachment field, and acquire a download link of the attachment field based on the tag; and
[0164] The content data of the attachment field is acquired based on the download link to obtain the plug-in protocol data.
[0165] In some embodiments, the data processing apparatus further comprises:
[0166] The version data module is used to generate a version number of the target plug-in and store the version number in the version data corresponding to the target plug-in.
[0167] In some embodiments, the data processing apparatus further comprises:
[0168] The search update module is used for updating the independent first search data set corresponding to the preset type plug-in based on the meta information of the target plug-in in response to determining that the target plug-in is a preset type plug-in.
[0169] In some embodiments, the data processing apparatus further comprises:
[0170] The plug-in update module is configured to, in response to receiving an update request for the target plug-in, update the target plug-in based on update data in the update request.
[0171] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in one or more software and / or hardware. The device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0172] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the data processing method described in any of the above embodiments.
[0173] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0174] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the data processing method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0175] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0176] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0177] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0178] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A data processing method, comprising: In response to a plug-in call request for a target plug-in, obtaining plug-in configuration data of the target plug-in; The target plug-in is used to generate a target field in the table; Generate a configuration form based on the description data in the plug-in configuration data; In response to receiving the form data of the configuration form, generating field configuration data of the target field based on the form data and the template data in the plug-in configuration data; A target field content of the target field is generated based on the field configuration data.
2. The method according to claim 1, wherein Before responding to the plug-in call request for the target plug-in, the method further includes: In response to receiving a plug-in query request containing a keyword, determining a target data set based on a query plug-in type in the plug-in query request; Searching in the target data set based on the keyword; wherein the preset data set includes meta information of multiple plug-ins; Determine the plug-in corresponding to the meta information matching the keyword as the search result, and obtain a search result list; The target plug-in is determined based on a plug-in selected by a user in the search result list.
3. The method according to claim 2, wherein: Determining a target data set based on the query plug-in type in the plug-in query request includes: In response to the query plug-in type being a preset plug-in, determining the first search data set as the target data set; In response to the query plug-in type being a non-preset plug-in, a second search data set is determined to be the target data set, and the second search data set is independent of the first search data set.
4. The method according to claim 1, wherein In response to a plug-in call request for a target plug-in, obtaining plug-in configuration data of the target plug-in includes: In response to the plug-in call request including a specified version, obtaining plug-in configuration data and specified version data corresponding to the specified version; In response to the plug-in call request not including the specified version, the plug-in configuration data and the latest version data corresponding to the latest version are obtained.
5. The method according to claim 1, further comprising: Generate additional information data based on the attribute of the target field, and store the additional information data in the meta information of the target plug-in.
6. The method according to claim 5, wherein: The meta information of the target plug-in includes a version data table, and the version data table includes at least one record, each record storing plug-in configuration data of a different version.
7. The method according to claim 1, wherein: The template data includes formula template data, and the target field includes a formula field; Then, based on the form data and the template data in the plug-in configuration data, the field configuration data of the target field is generated, including: generating a corresponding formula from the form data and the formula template data, and obtaining the field configuration data of the target field based on the formula; Generating the target field content of the target field based on the field configuration data includes: substituting the field content corresponding to the field configuration data in the table into the formula to obtain the target field content; or, The template data includes prompt word template data, and the target field includes a prompt word field; Then, based on the form data and the template data in the plug-in configuration data, the field configuration data of the target field is generated, including: generating corresponding prompt words from the form data and the prompt word template data, and obtaining the field configuration data of the target field based on the prompt word; Generating target field content of the target field based on the field configuration data includes: automatically generating the target field content based on the prompt word.
8. The method according to claim 1, further comprising: In response to a user's upgrade request for the target plug-in, the target plug-in is upgraded based on upgrade data in the upgrade request.
9. A data processing method, comprising: In response to receiving a plug-in debugging request for a target plug-in, creating a debugging plug-in for the target plug-in; The target plug-in is used to generate a target field in the table; In response to a debugging call request for the debugging plug-in, obtaining debugging configuration data of the debugging plug-in; Generate a debugging configuration form based on the description data in the debugging configuration data; In response to receiving the debugging data of the debugging configuration form, generating a test result of the target plug-in.
10. The method according to claim 9, further comprising: In response to receiving an update request for the debug plug-in, the debug plug-in is updated based on update data in the update request.
11. The method according to claim 9, further comprising: When the test result meets expectations, receiving a plug-in creation request for creating the target plug-in; In response to receiving the plug-in creation request, the plug-in protocol data of the target plug-in is acquired from an attachment field in the plug-in creation request; wherein the plug-in protocol data is generated based on protocol setting data input by a user.
12. The method according to claim 11, acquiring the plug-in protocol data of the target plug-in from the attachment field in the plug-in creation request, comprising: Obtaining a tag of the attachment field, and obtaining a download link of the attachment field based on the tag; The content data of the attachment field is acquired based on the download link to obtain the plug-in protocol data.
13. The method according to claim 11, further comprising at least one of the following: Generate a version number of the target plug-in, and store the version number in version data corresponding to the target plug-in; or, In response to determining that the target plug-in is a preset type plug-in, updating the independent first search data set corresponding to the preset type plug-in based on the meta information of the target plug-in; or, In response to receiving an update request for the target plug-in, the target plug-in is updated based on update data in the update request.
14. A data processing device, comprising: A first acquisition module, configured to acquire the plug-in configuration data of the target plug-in in response to a plug-in call request for the target plug-in; The target plug-in is used to generate a target field in the table; A first configuration module, configured to generate a configuration form based on the description data in the plug-in configuration data; A target field module, configured to generate field configuration data of the target field based on the form data and template data in the plug-in configuration data in response to receiving the form data of the configuration form; A field content module is used to generate target field content of the target field based on the field configuration data.
15. A data processing device, comprising: A creation module, configured to create a debugging plug-in for a target plug-in in response to receiving a plug-in debugging request for the target plug-in; The target plug-in is used to generate a target field in the table; A second acquisition module, configured to acquire the debugging configuration data of the debugging plug-in in response to a debugging call request for the debugging plug-in; A second configuration module, used to generate a debugging configuration form based on the description data in the debugging configuration data; The debugging module is used to generate a test result of the target plug-in in response to receiving the debugging data of the debugging configuration form.
16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 13 when executing the program. 17 . A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method according to claim 1 .
Citation Information
Patent Citations
Method and system for downloading file
CN103401931A
Form page implementation method and device based on parameter configuration
CN115328457A
Page form data processing method and device and user terminal
CN116992081A
Cited By
Data processing method and related device
WO2025260783A1
