Capability data management method and device, management platform and medium
By obtaining and rendering the client's ability data to be launched and has been launched, a target tree structure is formed, which solves the problem of difficulty in managing client capabilities data, and realizes simplified management logic and improved adaptability.
Patent Information
- Application Number
- CN202411735149.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-25
AI Technical Summary
Due to the huge amount of data and complex relationships of the client, it is difficult for the existing technology to implement a simple and reliable management method, resulting in increased management difficulty.
Provide a capability data management method, by obtaining capability data to be launched, determining the capability data that has been launched, and rendering it into a target tree structure, realizing the flowability analysis and display of client capability data.
The code structure of management logic is simplified, adaptability and scalability are improved, the difficulty of client ability management is reduced, and the effective management of client ability data is realized.
Smart Images

Figure CN119520610A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of device capability management, and in particular to a capability data management method, device, management platform and medium. Background Art
[0002] Capability data management refers to the comprehensive management of the flow of client capability data and its corresponding display form, so as to ensure that the client can meet the expected usage requirements, or to facilitate the capability detection system to detect the client's capability data.
[0003] Since the client's capability data has a large amount of data and complex relationships, complex management logic is often required to manage the client's capability data. Therefore, a simple and reliable management method is urgently needed to effectively manage the client's capability data. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a capability data management method, device, management platform and medium.
[0005] In a first aspect, the present disclosure provides a capability data management method, which is applied to a management platform, and the method includes:
[0006] In response to a capability data management request for a target client, acquiring capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed and not released to a production environment, and the capability data to be launched is data based on a key-value pair format;
[0007] In response to an online request for the capability data to be online, determining online capability data corresponding to the target client from the capability data to be online;
[0008] The online capability data is rendered to generate a target tree structure corresponding to the online capability data.
[0009] In a second aspect, the present disclosure provides a capability data management device, which is configured on a management platform, and the device includes:
[0010] An acquisition module, configured to, in response to a capability data management request for a target client, acquire capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed and not released to a production environment, and the capability data to be launched is data in a key-value pair format;
[0011] A determination module, configured to determine, in response to an online request for the capability data to be online, the online capability data corresponding to the target client from the capability data to be online;
[0012] A generating module is used to render the online capability data and generate a target tree structure corresponding to the online capability data.
[0013] In a third aspect, the present disclosure also provides a management platform, including:
[0014] processor;
[0015] A memory for storing executable instructions;
[0016] The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method provided in the first aspect.
[0017] In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the method provided in the first aspect when the computer program is executed by a processor.
[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0019] A capability data management method, device, management platform and medium of the disclosed embodiments are, in response to a capability data management request for a target client, to obtain capability data to be put online corresponding to the target client, wherein the capability data to be put online refers to data that has been developed and not released to the production environment, and the capability data to be put online is data based on a key-value pair format; in response to an online request for the capability data to be put online, to determine the capability data that has been put online corresponding to the target client from the capability data to be put online; to render the capability data that has been put online, and to generate a target tree structure corresponding to the capability data that has been put online. Thus, when managing the capability data of the client, the capability data that has been put online is filtered out from the capability data to be put online, so as to realize the flow analysis of the capability data of the client, and to display it in a tree structure, so as to realize the management of the capability data of the client. Since the capability data of the client is data based on a key-value pair format, it actually adopts a lightweight data exchange format, simplifies the code structure of the management logic, improves the adaptability and extensibility, and thus reduces the difficulty of the client's capability management. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A flowchart of a capability data management method provided by an embodiment of the present disclosure;
[0023] Figure 2 A flowchart of another capability data management method provided by an embodiment of the present disclosure;
[0024] Figure 3 A flowchart of another capability data management method provided by an embodiment of the present disclosure;
[0025] Figure 4 A target tree structure determined based on capability type provided in an embodiment of the present disclosure;
[0026] Figure 5 A target tree structure determined based on a test case identification provided in an embodiment of the present disclosure;
[0027] Figure 6 A target tree structure determined based on an authentication task object provided in an embodiment of the present disclosure;
[0028] Figure 7 A schematic diagram of the structure of a capability data management device provided in an embodiment of the present disclosure;
[0029] Figure 8 A schematic diagram of the structure of a management platform provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0032] In order to manage the huge amount of capability data with complex relationships, the related technology adopts the traditional linear structured management method to manage the client's capabilities. Since the linear structured management method requires editing complex codes, it has weak adaptability and scalability, which increases the difficulty of managing the client's capability data.
[0033] In order to solve the above technical problems, the following Figures 1 to 6 The capability data management method provided in the embodiment of the present disclosure is described. In the embodiment of the present disclosure, the capability data management method can be executed by a management platform. The management platform can be understood as a central control system or platform for managing capability data of the client, referred to as a QCP system. Optionally, the management platform includes a front end and a back end.
[0034] Figure 1 A flow chart of a capability data management method provided by an embodiment of the present disclosure is shown.
[0035] like Figure 1 As shown, the capability data management method may include the following steps.
[0036] S110. In response to a capability data management request for a target client, obtain capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed but not released to a production environment, and the capability data to be launched is data based on a key-value pair format.
[0037] In order to ensure that the client can meet the expected usage requirements, or before the capability detection system detects the client's capability data, or in other scenarios where the client's capability data needs to be managed, the client's huge and complex capability data needs to be effectively managed.
[0038] In this embodiment, the user submits a capability data management request for the target client through the front end of the management platform, and the front end of the management platform transmits the capability data management request to the back end of the management platform. Then, the back end of the management platform obtains the capability data to be put online of the target client based on the capability data management request, and converts the data format of the capability data to be put online from the initial format to a lightweight format (JSON format), that is, obtains data based on the key-value pair format as the capability data to be put online.
[0039] Among them, the front end of the management platform can be understood as the browser of the management platform, and the back end of the management platform can be understood as the server of the management platform.
[0040] The target client refers to any terminal that can provide certain services to the user. For example, the target client is a video playback terminal that can provide video playback capabilities to the user, and the video playback terminal can be configured in electronic devices such as smart TVs, smart boxes, smart cars, smart speakers, and smart tablets.
[0041] Among them, since the target client's capability data to be put online refers to the data corresponding to the target client that has been developed but has not yet been officially released to the production environment, it can be concretized as authentication task return data.
[0042] Optionally, the authentication task return data includes but is not limited to data representing device capabilities and data representing device authentication task capability results.
[0043] The data representing the device capability is defined as a first preset class (e.g., JAVA class DeviceAbilityDTO), which includes but is not limited to video capability data, audio capability data, non-stream-related capability data, device information, and other extended capability data. The data representing the device authentication task capability result is defined as a second preset class (e.g., JAVA class CertifyTaskAbilityDTO), which includes but is not limited to the authentication task identifier, test case identifier, test plan identifier, and device capability details.
[0044] Among them, the specific implementation method of S110 includes but is not limited to the following methods: sending a capability data management request to the target client so that the target client executes the capability test task corresponding to the capability data management request, and obtains the authentication task return data of the capability test task; according to the preset equipment batch and the preset equipment model, the authentication task return data is converted into the capability data to be put online.
[0045] Specifically, the front end of the management platform transmits the capability data management request to the back end of the management platform, and the back end of the management platform continues to send the capability data management request to the target client. The target client performs the capability test task based on the request, and sends the obtained authentication task return data to the back end of the management platform. The back end of the management platform converts the authentication task return data into capability data to be put online according to the preset equipment batch and preset equipment model.
[0046] Among them, the preset device batch can be understood as a batch that the client is pre-divided into. The preset device model can be understood as the specific model corresponding to the client. It should be noted that if the backend of the management platform determines the capability data to be put online according to the preset device batch, the capability data to be put online includes the authentication task return data of the target client and other clients that belong to the same preset device batch as the target client; if the backend of the management platform determines the capability data to be put online according to the preset device model, the capability data to be put online only includes the authentication task return data of the target client.
[0047] S120 : In response to an online request for the capability data to be online, determine online capability data corresponding to the target client from the capability data to be online.
[0048] In this embodiment, after the management platform obtains the capability data to be put online, the user submits an online request for the capability data to be put online through the front end of the management platform. The front end of the management platform transmits the online request to the back end, and the back end of the management platform parses the online request to determine the online capability data corresponding to the target client.
[0049] Among them, the online capability data refers to the capability data that is allowed to go online, that is, the returned capability online results. This type of data has been deployed to the production environment and is in actual use.
[0050] Specifically, the back end of the management platform can first store the capability data to be put online in the database, and then read the capability data to be put online from the database at one time or in batches based on the online request, and then send it to the front end of the management platform. Then the user selects the capability data to be put online this time from the read capability data to be put online through the front end of the management platform. The front end of the management platform sends the capability data selected by the user to the third-party server for review through the back end to determine whether the capability data selected by the user is allowed to go online. Finally, the back end of the management platform receives the review result of the third-party server and determines the final capability data that has been put online.
[0051] Therefore, the management platform obtains the capability data to be put online based on the capability data management request and the online request, and filters the online capability data from the capability data to be put online, so as to realize the flow analysis of the client's capability data. Since the client's capability data is based on the key-value pair format, it actually adopts a lightweight data exchange format, so that the flow analysis can be realized with only a small amount of code. Compared with the method of editing a large amount of code logic based on the linear data structure, the code structure of the capability data flow analysis is simplified.
[0052] S130: Render the online capability data to generate a target tree structure corresponding to the online capability data.
[0053] In order to display the online capability data intuitively and visually, the front end of the management platform can abstract the online capability data to different nodes of different branches of the target tree structure to render the online capability data and obtain the target tree structure corresponding to the online capability data.
[0054] The target tree structure refers to the data structure of the front end of the management platform for displaying the online capability data. This structure can intuitively and orderly display the relationship between different online capability data.
[0055] Optionally, the specific form of the target tree structure includes but is not limited to a preset tree, and may also be a tree structure in other forms.
[0056] Therefore, after the management platform determines the online capability data, it displays the online capability data in a tree structure to complete the management of the client's capability data. Since the client's capability data is based on key-value pair format, it actually uses a lightweight data exchange format, so that the client's capability data can be displayed with very little code. Compared with the method of editing a large amount of code logic based on a linear data structure, the code complexity of displaying capability data is greatly simplified.
[0057] A capability data management method of an embodiment of the present disclosure obtains capability data to be put online corresponding to the target client in response to a capability data management request for a target client, wherein the capability data to be put online refers to data that has been developed and not released to the production environment, and the capability data to be put online is data based on a key-value pair format; in response to an online request for the capability data to be put online, the online capability data corresponding to the target client is determined from the capability data to be put online; the online capability data is rendered to generate a target tree structure corresponding to the online capability data. Thus, when managing the capability data of the client, the online capability data is filtered out from the capability data to be put online to realize the flow analysis of the capability data of the client, and is displayed in a tree structure, thereby realizing the management of the capability data of the client. Since the capability data of the client is data based on a key-value pair format, it essentially adopts a lightweight data exchange format, simplifies the code structure of the management logic, improves adaptability and extensibility, and thus reduces the difficulty of client capability management.
[0058] In another embodiment of the present disclosure, based on the key-value pair format, the storage logic of the capability data can also be simplified. In combination with the storage logic of the capability data, the capability data management method is specifically explained.
[0059] Figure 2 A flow chart of another capability data management method provided by an embodiment of the present disclosure is shown.
[0060] like Figure 2 As shown, the capability data management method may include the following steps.
[0061] S210. In response to a capability data management request for a target client, obtain capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed but not released to a production environment, and the capability data to be launched is data based on a key-value pair format.
[0062] Among them, S210 is similar to S110 and will not be described in detail here.
[0063] S220, writing the capability data to be put online into the target database.
[0064] In this embodiment, after the backend of the management platform obtains the capability data to be put online, the capability data to be put online is written into the target database according to certain rules. Specifically, the backend of the management platform can store the capability data to be put online in a specific form. Optionally, the specific form includes but is not limited to abstract data structures, tables, views, etc.
[0065] Among them, the specific implementation method of S220 includes but is not limited to the following method: detect whether there is capability data to be put online in the generated abstract data structure of the target database; if not, establish a new abstract data structure in the target database, and write the capability data to be put online into the target key of the new abstract data structure; if it exists, write the capability data to be put online into the target key of the generated abstract data structure.
[0066] Specifically, the backend of the management platform pre-generates an abstract data structure for the data in the target database as the generated abstract data structure, and then determines whether the capability data to be put online is stored for the first time. If it is stored for the first time, that is, it is determined that the capability data to be put online does not exist in the generated abstract data structure of the target database, then a new abstract data structure is established in the target database, and the capability data to be put online is written into the target key of the new abstract data structure. If it is not stored for the first time, that is, it is determined that the capability data to be put online may have been written into the generated abstract data structure of the target database, then the capability data to be put online is directly written into the target key of the generated abstract data structure, so that the capability data to be put online this time overwrites the capability data to be put online that has been written previously in the generated abstract data structure, so as to realize the merging of new and old data.
[0067] The abstract data structure may be a Multimap data structure constructed using the Guava library, in which a key may correspond to multiple key values.
[0068] Among them, writing the capability data to be put online into the target key of the generated abstract data structure includes: converting the capability data to be put online into the current abstract data structure; for the target key corresponding to at least two key values in the current abstract data structure and the generated abstract data structure, writing the key value corresponding to the target key in the current abstract data structure into the target key in the generated abstract data structure; for the key values of different keys in the current abstract data structure and the generated abstract data structure, establishing a target key in the generated abstract data structure, and writing the key value corresponding to each key in the current abstract data structure into the target key of the generated abstract data structure.
[0069] Specifically, for the capability data to be put online, the backend of the management platform uses the Guava library to build a Multimap data structure as the current abstract data structure. Then, the backend of the management platform traverses the current abstract data structure and the generated abstract data structure. If the current abstract data structure and the generated abstract data structure have target keys corresponding to at least two key values, the key value corresponding to the target key in the current abstract data structure is written to the target key in the generated abstract data structure. For key values of different keys in the current abstract data structure and the generated abstract data structure, a new key is created in the generated abstract data structure as the target key, and the key value corresponding to each key in the current abstract data structure is written to the target key of the generated abstract data structure.
[0070] Therefore, when conducting a flow analysis on the client's capability data, the capability data to be put online is written into the target database for storage, so that the client's capability data can be stored in a field in the database based on the data exchange format. This storage method is clear and complete, and is more conducive to the management and maintenance of capability data than the storage method based on splitting multiple fields based on a linear data structure.
[0071] S230 . In response to an online request for capability data to be online, read target data to be online from a target database.
[0072] In this embodiment, the user submits an online request for the capability data to be put online through the front end of the management platform. The online request can carry identification information of the capability data to be put online. The front end of the management platform transmits the online request to the back end. The back end of the management platform parses the identification information carried by the online request and reads the target data to be put online from the target database.
[0073] For example, if a user wants to apply for the video capability data and audio capability data in the capability data to be online, the online request can carry the identification information of the video capability data and the identification information of the audio capability data. Optionally, the online request can also carry a work order identification to track the life cycle status of the corresponding capability data.
[0074] S240: Determine the online capability data from the target data to be online.
[0075] Among them, the specific implementation method of S240 includes but is not limited to the following methods: rendering the target data to be put online, obtaining the rendering page of the target data to be put online; in response to a selection request for the target data to be put online in the rendering page, obtaining the selected data to be put online from the target data to be put online; based on the selected data to be put online, determining the online capability data.
[0076] Specifically, after the backend of the management platform reads the target data to be put online from the target database, it sends the target data to be put online to the frontend for rendering to obtain a rendering page. The user selects the capability data to be finally put online in the rendering page through the frontend of the management platform as the selected data to be put online. The backend of the management platform then continues to determine whether to put all or part of the selected data to be put online.
[0077] The data selected to be put online can be understood as the capability data selected by the user, and the capability data needs to be further reviewed to determine whether it is allowed to go online.
[0078] Among them, the specific implementation method for determining the online capability data based on the selected data to be online includes but is not limited to the following methods: sending the selected data to be online to the third-party server in accordance with the data format corresponding to the third-party server, so that the third-party server performs an online review on the selected data to be online; if an online pass result is received from the third-party server, the selected data to be online is marked as online capability data, and the online capability data is removed from the online capability data of the target database; if an online rejection result is received from the third-party server, the online status of the selected data to be online is marked as a rejected online status, and a rejected online message corresponding to the selected data to be online is generated, wherein the rejected online message is used to remind the user that the selected data to be online is rejected online.
[0079] The third-party server can be understood as a system that manages and controls the operation of the target client. For example, the third-party server is a broadcast control system, which is usually used to manage and control the video playback application to play.
[0080] Specifically, first, the backend of the management platform performs secondary packaging on the selected data to be put online and converts it into the data format corresponding to the third-party server, and sends the selected data to be put online to the third-party server according to the data format; then, the third-party server conducts an online review on the selected data to be put online, specifically, it approves and performs related configurations on the selected data to be put online, and the approval results include online approval and online rejection, and the approval results are returned to the backend of the management platform; then, if the backend of the management platform receives the online approval result, it directly marks the selected data to be put online as the final online capability data, that is, determines the online capability data, removes the online capability data from the target database's to-be-put online capability data, and generates a notification message and sends it to the frontend of the management platform; if the backend of the management platform receives the online rejection result, it directly marks the online status of the selected data to be put online as the rejected online status, and sends a rejected online notification to the frontend of the management platform, so that the user knows through the frontend of the management platform that the selected data to be put online is rejected online.
[0081] Among them, the specific implementation method of removing the online capability data from the capability data to be put online in the target database includes but is not limited to the following method: if the capability data to be put online is determined according to a preset equipment batch, then the online capability data corresponding to the preset equipment batch is removed from the capability data to be put online in the target database; if the capability data to be put online is determined according to a preset equipment model, then the online capability data corresponding to the preset equipment model is removed from the capability data to be put online in the target database.
[0082] In some embodiments, in order to let the user know that the selected data to be online has been sent to the third-party server, after sending the selected data to be online to the third-party server in accordance with the data format corresponding to the third-party server, the method also includes: generating a sent message corresponding to the selected data to be online; writing the sent message to the target database; sending the sent message to the third-party monitoring platform, wherein the third-party monitoring platform is used to remind the user that the selected data to be online has been sent to the third-party server based on the sent message, and the third-party monitoring platform is used to update the index of the selected data to be online according to the sent message. In this way, it is convenient for the user to know on the third-party monitoring platform that the selected data to be online has been sent to the third-party server, so as to grasp the stage of the capability data.
[0083] In some embodiments, considering that the management platform restricts the target device to submit only one selection request at a time to submit a type of target data to be put online, the management platform also has a withdrawal function, allowing the user to withdraw when the target data to be put online does not meet expectations. In order to achieve this function, after sending the selected data to be put online to the third-party server in accordance with the data format corresponding to the third-party server, the method also includes: in response to the withdrawal operation of the selected data to be put online, sending a withdrawal request for the selected data to be put online to the third-party server, so that the third-party server determines the withdrawal result corresponding to the selected data to be put online based on the withdrawal request; if the withdrawal result is a rejection of the withdrawal, then obtaining the rejection of the withdrawal information corresponding to the selected data to be put online returned by the third-party server, wherein the rejection of the withdrawal message is used to remind the user that the selected data to be put online is rejected and withdrawn; if the withdrawal result is a permission of the withdrawal, then the state corresponding to the selected data to be put online returned by the third-party server is a withdrawal state.
[0084] Specifically, the user sends a withdrawal operation to the front end of the management platform, and the front end of the management platform generates a withdrawal request in response to the withdrawal operation, and sends the withdrawal request to the third-party server through the back end. The third-party server then approves whether to allow the withdrawal of the data selected to be put online, or to refuse to withdraw the data selected to be put online. If the third-party server determines after review that the withdrawal of the data selected to be put online is refused, the withdrawal refusal information is returned to the back end of the management platform, and the withdrawal refusal information is displayed through the front end to remind the user that the withdrawal of the data selected to be put online is refused. If the third-party server determines after review that the withdrawal of the data selected to be put online is allowed, the current status of the data selected to be put online is modified to a withdrawn status and fed back to the back end of the management platform.
[0085] In this way, by configuring the withdrawal function on the management platform, users can withdraw the target data to be put online in time when they find that it does not meet expectations, thereby expanding the capability data management function.
[0086] S250: Render the online capability data to generate a target tree structure corresponding to the online capability data.
[0087] Among them, S250 is similar to S130 and will not be elaborated here.
[0088] In yet another embodiment of the present disclosure, the principle of generating the target tree structure is explained in detail.
[0089] Figure 3 A flow chart of another capability data management method provided by an embodiment of the present disclosure is shown.
[0090] S310. In response to a capability data management request for a target client, obtain capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed but not yet released to a production environment, and the capability data to be launched is data based on a key-value pair format.
[0091] S320 : In response to the online request for the capability data to be online, determine the online capability data corresponding to the target client from the capability data to be online.
[0092] Among them, S310 to S320 are similar to S110 to S120 and are not described in detail here.
[0093] S330: Obtain branch division parameters corresponding to the online capability data.
[0094] Among them, the branch division parameters include one or more of the following combinations: branch division parameters determined based on the capability type of the online capability data, branch division parameters determined based on the test case identification of the online capability data, and branch division parameters determined based on the authentication task object of the online capability data.
[0095] The capability type can be understood as the type to which the capability data of the target client belongs. For example, if the target client is a video playback terminal, the capability type includes the playback type and the general type, and may also include other extended types. The capability data of the playback type includes the video bitstream and the audio bitstream, the capability data of the general capability type includes the general capability data, and the other extended types include other extended capabilities.
[0096] Specifically, the capability data of various capability types include some fields, for example, a code stream information (key) field, a code stream capability and status (value) field, a test plan identifier (planIds) field, and an audit status (orderId) field.
[0097] Specifically, the value may also include a support field. If the support field exists, "Waiting for result output" is displayed. If the value of the support field is 1, "Support" is displayed. If the value of the support field is 0, "Not supported" is displayed. If the value of the support field is neither 0 nor 1, "No result" is displayed. The value may also include an online field, a speed (expected and max) field, a score field, and a capability source (orderId) field. By detecting whether the online field exists, whether the target tree structure is lit is controlled. Expected and max are used to indicate the supported speeds. If the score field exists, "Waiting for result output" is displayed. If the value of the score field is -1, "No result" is displayed. If the value of the score field is -2, "Authentication failed" is displayed. The capability source corresponding to the target tree structure can be queried through the orderId field.
[0098] The test case identifier is the identification information of the test case corresponding to the capability data of the target client, and the identification information may be an identity identifier (ID).
[0099] Specifically, the test cases corresponding to the capability data of the target client can also be further classified according to the capability type. The capability data of different capability types can also contain some fields, such as the key field, orderId field, support, online field, expected and max fields in the value field, etc. If the capability data of different capability types contains the orderId field, it means that the capability data has been initiated to go online. The status of the work order can be obtained by querying the online historical snapshot according to the work order identifier corresponding to the orderId field. If the current status is under review, it is marked as under review, and new online applications are prohibited. For capability data of some capability types (such as general types), special processing is required according to the specific situation. For example, to be compatible with process data with only results, the field identifier onlyResultplayer is supplemented. When there is no self-developed player and system player, the structure needs to be supplemented, specifically by adding the field testplayer that does not distinguish between players.
[0100] Among them, the authentication task object refers to the capability details in the capability data.
[0101] Specifically, the test cases corresponding to the capability data of the target client may be further classified according to capability types, and capability data of different capability types may also include fields such as key fields, orderId fields, support in value fields, online fields, expected and max fields, and the like.
[0102] S340: Based on the branch division parameter, divide the online capability data into different branches of the target tree structure.
[0103] In this embodiment, the front end of the management platform determines that the target tree structure is divided into multiple branches according to the branch division parameter, and abstracts the online capability data to different branches. For example, the branch division parameter is determined based on the capability type of the online capability data, and the target client is a video playback terminal, and the capability type includes playback capability and general capability. Then, the online capability data belonging to the playback capability is divided into one branch, and the online capability data belonging to the general capability is divided into another branch.
[0104] For ease of understanding, Figure 4 A target tree structure determined based on capability type is shown, which includes two branches, a branch corresponding to playback capability and a branch corresponding to general capability. The branch corresponding to playback capability can be further divided into multiple detail branches (for example, a branch corresponding to player 1, a branch corresponding to player 2, and further subdivided branches thereof). Figure 5 The target tree structure determined based on the test case identifier is shown. The target tree structure includes four branches, including four branches corresponding to the test case identifiers ID1 to ID4. Figure 6 The target tree structure determined based on the authentication task object is shown. The target tree structure includes four branches, including four branches corresponding to the authentication task objects A to D.
[0105] S350 . Based on the logical relationship between different online capability data, the different online capability data are allocated to branches of the target tree structure, and a target tree structure corresponding to the online capability data is generated.
[0106] In this embodiment, the specific implementation method of S350 includes but is not limited to the following methods: abstracting different online capability data into nodes of the target tree structure; determining the connection relationship between different nodes in the target tree structure based on the logical relationship between different online capability data, wherein two nodes with a connection relationship correspond to the same branch division parameter; based on the connection relationship between different nodes in the target tree structure, generating hierarchical identifiers corresponding to different nodes respectively, and obtaining the target tree structure corresponding to the online capability data.
[0107] Specifically, the front end of the management platform first abstracts the different online capability data so that the online capability data is represented in the form of nodes on the target tree structure. Then, the front end of the management platform determines the logical relationship between the different online capability data, uses the logical relationship as the connection relationship between different nodes, and divides the two nodes with a connection relationship into the same branch. Further, based on the connection relationship between different nodes, hierarchical identifiers corresponding to different nodes are generated. The hierarchical identifiers are used to mark the positions of different nodes in the target tree structure, thereby obtaining a constructed target tree structure.
[0108] Therefore, after the management platform divides the target tree structure into multiple branches based on the branch division parameters, it determines the connection relationship between different nodes in the target tree structure and assigns corresponding hierarchical identifiers to different nodes based on the logical relationship between different online capability data, thereby abstracting the online capability data into a target tree structure, and then displaying the online capability data in the target tree structure.
[0109] Figure 7 FIG. 7 shows a schematic diagram of the structure of a capability data management device provided by an embodiment of the present disclosure. The capability data management device shown in FIG. 7 is configured on a management platform.
[0110] like Figure 7 As shown, the capability data management device 700 may include:
[0111] The acquisition module 710 is used to obtain the capability data to be launched corresponding to the target client in response to the capability data management request of the target client, wherein the capability data to be launched refers to data that has been developed and not released to the production environment, and the capability data to be launched is data based on the key-value pair format;
[0112] A determination module 720, configured to determine, in response to an online request for the capability data to be online, the online capability data corresponding to the target client from the capability data to be online;
[0113] The generating module 730 is used to render the online capability data and generate a target tree structure corresponding to the online capability data.
[0114] A capability data management device of an embodiment of the present disclosure obtains capability data to be put online corresponding to the target client in response to a capability data management request for a target client, wherein the capability data to be put online refers to data that has been developed and not released to the production environment, and the capability data to be put online is data based on a key-value pair format; in response to an online request for the capability data to be put online, determines the capability data that has been put online corresponding to the target client from the capability data to be put online; renders the capability data that has been put online, and generates a target tree structure corresponding to the capability data that has been put online. Thus, when managing the capability data of the client, the capability data that has been put online is filtered out from the capability data to be put online, so as to realize the flow analysis of the capability data of the client, and display it in a tree structure, so as to realize the management of the capability data of the client. Since the capability data of the client is data based on a key-value pair format, it actually adopts a lightweight data exchange format, simplifies the code structure of the management logic, improves the adaptability and extensibility, and thus reduces the difficulty of the client's capability management.
[0115] In some embodiments of the present disclosure, the acquisition module 710 includes:
[0116] A sending unit, used to send the capability data management request to a target client, so that the target client executes the capability test task corresponding to the capability data management request and obtains the authentication task return data of the capability test task;
[0117] The conversion unit is used to convert the authentication task return data into the capability data to be put online according to a preset device batch and a preset device model.
[0118] In some embodiments of the present disclosure, the device further includes:
[0119] A writing module, used for writing the capability data to be put online into a target database;
[0120] Accordingly, the determination module 720 includes:
[0121] A reading unit, configured to read target data to be put online from the target database in response to an online request for the capability data to be put online;
[0122] A determination unit is used to determine the online capability data from the target data to be online.
[0123] In some embodiments of the present disclosure, the writing module includes:
[0124] A detection unit, used for detecting whether the capability data to be put online exists in the generated abstract data structure of the target database;
[0125] A first writing unit, configured to create a new abstract data structure in the target database if it does not exist, and write the capability data to be put online into a target key of the new abstract data structure;
[0126] The second writing unit is used to write the capability data to be put online into the target key of the generated abstract data structure if it exists.
[0127] In some embodiments of the present disclosure, the second writing unit is specifically used to:
[0128] Converting the capability data to be put online into a current abstract data structure;
[0129] For a target key corresponding to at least two key values in the current abstract data structure and the generated abstract data structure, write the key value corresponding to the target key in the current abstract data structure to the target key in the generated abstract data structure;
[0130] For the key values of different keys in the current abstract data structure and the generated abstract data structure, a target key is established in the generated abstract data structure, and the key value corresponding to each key in the current abstract data structure is written into the target key of the generated abstract data structure.
[0131] In some embodiments of the present disclosure, the determining unit includes:
[0132] A rendering subunit, used for rendering the target data to be put online, and obtaining a rendering page of the target data to be put online;
[0133] A first acquisition subunit is configured to, in response to a selection request for target data to be put online in the rendering page, acquire selected data to be put online from the target data to be put online;
[0134] A determination subunit is used to determine the online capability data based on the selected data to be online.
[0135] In some embodiments of the present disclosure, the subunit is determined to be specifically used for:
[0136] Sending the selected data to be put online to the third-party server according to the data format corresponding to the third-party server, so that the third-party server performs online review on the selected data to be put online;
[0137] If the online passing result returned by the third-party server is received, the selected data to be online is marked as the online capability data, and the online capability data is removed from the capability data to be online in the target database.
[0138] In some embodiments of the present disclosure, the determining subunit is further used for:
[0139] If an online rejection result returned by the third-party server is received, the online status of the selected data to be online is marked as a rejected online status, and a rejected online message corresponding to the selected data to be online is generated, wherein the rejected online message is used to remind the user that the selected data to be online is rejected online.
[0140] In some embodiments of the present disclosure, the determining subunit is further specifically configured to:
[0141] If the capability data to be put online is determined according to a preset equipment batch, removing the already put online capability data corresponding to the preset equipment batch from the capability data to be put online in the target database;
[0142] If the capability data to be put online is determined according to a preset device model, the online capability data corresponding to the preset device model is removed from the capability data to be put online in the target database.
[0143] In some embodiments of the present disclosure, the determining subunit is further specifically used for:
[0144] Generate a sent message corresponding to the selected data to be put online;
[0145] Writing the sent message into the target database;
[0146] The sent message is sent to a third-party monitoring platform, wherein the third-party monitoring platform is used to remind the user that the selected data to be online has been sent to the third-party server based on the sent message, and the third-party monitoring platform is used to update the index of the selected data to be online according to the sent message.
[0147] In some embodiments of the present disclosure, the determining subunit is further specifically used for:
[0148] In response to a withdrawal operation on the selected data to be put online, sending a withdrawal request for the selected data to be put online to the third-party server, so that the third-party server determines a withdrawal result corresponding to the selected data to be put online based on the withdrawal request;
[0149] If the withdrawal result is rejection, obtaining rejection information corresponding to the selected data to be put online returned by the third-party server, wherein the rejection message is used to remind the user that the selected data to be put online is rejected;
[0150] If the withdrawal result is that the withdrawal is allowed, the state corresponding to the selected data to be put online returned by the third-party server is a withdrawal state.
[0151] In some embodiments of the present disclosure, the generation module 730 includes:
[0152] A second acquisition subunit is used to acquire branch division parameters corresponding to the online capability data;
[0153] A division subunit, configured to divide the online capability data into different branches of a target tree structure based on the branch division parameter;
[0154] A generating subunit is used to distribute the different online capability data to the branches of the target tree structure based on the logical relationship between the different online capability data, and generate the target tree structure corresponding to the online capability data.
[0155] In some embodiments of the present disclosure, the generating subunit is specifically used to:
[0156] Abstracting the different online capability data into nodes of a target tree structure;
[0157] Determining a connection relationship between different nodes in the target tree structure according to a logical relationship between different online capability data, wherein two nodes having a connection relationship correspond to the same branch division parameter;
[0158] Based on the connection relationship between different nodes in the target tree structure, hierarchical identifiers corresponding to the different nodes are generated to obtain the target tree structure corresponding to the online capability data.
[0159] In some embodiments of the present disclosure, the branch division parameters include one or more of the following combinations:
[0160] Branch division parameters determined based on capability type of online capability data, branch division parameters determined based on test case identification of online capability data, and branch division parameters determined based on authentication task object of online capability data.
[0161] It should be noted that Figure 7 The capability data management device 700 shown can execute Figures 1 to 6 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 6 The various processes and effects in the method embodiment shown are not described in detail here.
[0162] Figure 8 A schematic diagram of the structure of a management platform provided by an embodiment of the present disclosure is shown, wherein the management platform includes a front end and a back end, the front end can be understood as a browser, and the back end can be understood as a server.
[0163] like Figure 8As shown, the management platform may include a processor 801 and a memory 802 storing computer program instructions.
[0164] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0165] The memory 802 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 802 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 802 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 802 is a non-volatile solid-state memory. In a particular embodiment, the memory 802 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0166] The processor 801 reads and executes the computer program instructions stored in the memory 802 to perform the steps of the capability data management method provided in the embodiment of the present disclosure.
[0167] In one example, the management platform may further include a transceiver 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802 and the transceiver 803 are connected via a bus 804 and communicate with each other.
[0168] The bus 804 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 804 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0169] The following is an embodiment of a computer-readable storage medium provided in an embodiment of the present disclosure. The computer-readable storage medium and the capability data management method of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the computer-readable storage medium, reference can be made to the embodiment of the above-mentioned capability data management method.
[0170] This embodiment provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a capability data management method, which is applied to a management platform. The method includes:
[0171] In response to a capability data management request for a target client, acquiring capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed and not released to a production environment, and the capability data to be launched is data based on a key-value pair format;
[0172] In response to an online request for the capability data to be online, determining online capability data corresponding to the target client from the capability data to be online;
[0173] The online capability data is rendered to generate a target tree structure corresponding to the online capability data.
[0174] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided by an embodiment of the present disclosure are not limited to the above method operations, and can also execute related operations in the capability data management method provided by any embodiment of the present disclosure.
[0175] Through the above description of the implementation methods, the technical personnel in the relevant field can clearly understand that the present disclosure can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer cloud platform (which can be a personal computer, a server, or a network cloud platform, etc.) to execute the capability data management method provided by each embodiment of the present disclosure.
[0176] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the appended claims.
Claims
1. A capability data management method, characterized in that: Applied to a management platform, the method comprises: In response to a capability data management request for a target client, acquiring capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed and not released to a production environment, and the capability data to be launched is data based on a key-value pair format; In response to an online request for the capability data to be online, determining online capability data corresponding to the target client from the capability data to be online; The online capability data is rendered to generate a target tree structure corresponding to the online capability data.
2. The method according to claim 1, characterized in that The step of obtaining, in response to a capability data management request for a target client, capability data to be online corresponding to the target client includes: Sending the capability data management request to the target client so that the target client executes the capability test task corresponding to the capability data management request and obtains the authentication task return data of the capability test task; According to the preset equipment batch and the preset equipment model, the authentication task return data is converted into the capability data to be put online.
3. The method according to claim 1, characterized in that After obtaining the to-go-online capability data corresponding to the target client in response to the capability data management request for the target client, the method further includes: Writing the capability data to be put online into a target database; Accordingly, in response to the online request for the capability data to be online, determining the online capability data corresponding to the target client from the capability data to be online includes: In response to an online request for the capability data to be online, reading target data to be online from the target database; The online capability data is determined from the target data to be online.
4. The method according to claim 3, characterized in that The step of writing the capability data to be put online into a target database comprises: Detecting whether the capability data to be put online exists in the generated abstract data structure of the target database; If it does not exist, a new abstract data structure is created in the target database, and the capability data to be put online is written into the target key of the new abstract data structure; If it exists, the capability data to be put online is written into the target key of the generated abstract data structure.
5. The method according to claim 4, characterized in that The step of writing the capability data to be put online into the target key of the generated abstract data structure includes: Converting the capability data to be put online into a current abstract data structure; For a target key corresponding to at least two key values in the current abstract data structure and the generated abstract data structure, write the key value corresponding to the target key in the current abstract data structure to the target key in the generated abstract data structure; For the key values of different keys in the current abstract data structure and the generated abstract data structure, a target key is established in the generated abstract data structure, and the key value corresponding to each key in the current abstract data structure is written into the target key of the generated abstract data structure.
6. The method according to claim 3, characterized in that: The determining the online capability data from the target data to be online includes: Rendering the target data to be put online, and obtaining a rendering page of the target data to be put online; In response to a selection request for target data to be put online in the rendering page, acquiring selected data to be put online from the target data to be put online; Based on the selected data to be put online, the online capability data is determined.
7. The method according to claim 6, characterized in that The determining the online capability data based on the selected data to be online includes: Sending the selected data to be put online to the third-party server according to the data format corresponding to the third-party server, so that the third-party server performs online review on the selected data to be put online; If the online passing result returned by the third-party server is received, the selected data to be online is marked as the online capability data, and the online capability data is removed from the capability data to be online in the target database.
8. The method according to claim 7, characterized in that Also includes: If an online rejection result returned by the third-party server is received, the online status of the selected data to be online is marked as a rejected online status, and a rejected online message corresponding to the selected data to be online is generated, wherein the rejected online message is used to remind the user that the selected data to be online is rejected online.
9. The method according to claim 7, characterized in that: The removing the online capability data from the to-be-online capability data in the target database includes: If the capability data to be put online is determined according to a preset equipment batch, removing the already put online capability data corresponding to the preset equipment batch from the capability data to be put online in the target database; If the capability data to be put online is determined according to a preset device model, the online capability data corresponding to the preset device model is removed from the capability data to be put online in the target database.
10. The method according to claim 7, characterized in that After sending the selected data to be online to the third-party server according to the data format corresponding to the third-party server, the method further includes: Generate a sent message corresponding to the selected data to be put online; Writing the sent message into the target database; The sent message is sent to a third-party monitoring platform, wherein the third-party monitoring platform is used to remind the user that the selected data to be online has been sent to the third-party server based on the sent message, and the third-party monitoring platform is used to update the index of the selected data to be online according to the sent message.
11. The method according to claim 7, characterized in that After sending the selected data to be online to the third-party server according to the data format corresponding to the third-party server, the method further includes: In response to a withdrawal operation on the selected data to be put online, sending a withdrawal request for the selected data to be put online to the third-party server, so that the third-party server determines a withdrawal result corresponding to the selected data to be put online based on the withdrawal request; If the withdrawal result is rejection, obtaining rejection information corresponding to the selected data to be put online returned by the third-party server, wherein the rejection message is used to remind the user that the selected data to be put online is rejected; If the withdrawal result is that the withdrawal is allowed, the state corresponding to the selected data to be put online returned by the third-party server is a withdrawal state.
12. The method according to claim 1, characterized in that The rendering of the online capability data to generate a target tree structure corresponding to the online capability data includes: Obtaining branch division parameters corresponding to the online capability data; Based on the branch division parameter, the online capability data is divided into different branches of the target tree structure; Based on the logical relationship between different online capability data, the different online capability data are allocated to branches of the target tree structure to generate a target tree structure corresponding to the online capability data.
13. The method according to claim 12, characterized in that The allocating different online capability data to branches of the target tree structure based on the logical relationship between different online capability data to generate a target tree structure corresponding to the online capability data includes: Abstracting the different online capability data into nodes of a target tree structure; Determining a connection relationship between different nodes in the target tree structure according to a logical relationship between different online capability data, wherein two nodes having a connection relationship correspond to the same branch division parameter; Based on the connection relationship between different nodes in the target tree structure, hierarchical identifiers corresponding to the different nodes are generated to obtain the target tree structure corresponding to the online capability data.
14. The method according to claim 12 or 13, characterized in that The branch division parameters include one or more of the following combinations: Branch division parameters determined based on capability type of online capability data, branch division parameters determined based on test case identification of online capability data, and branch division parameters determined based on authentication task object of online capability data.
15. A capability data management device, characterized in that: Configured on the management platform, the device includes: An acquisition module, configured to, in response to a capability data management request for a target client, acquire capability data to be launched corresponding to the target client, wherein the capability data to be launched refers to data that has been developed and not released to a production environment, and the capability data to be launched is data in a key-value pair format; A determination module, configured to determine, in response to an online request for the capability data to be online, the online capability data corresponding to the target client from the capability data to be online; A generating module is used to render the online capability data and generate a target tree structure corresponding to the online capability data.
16. A management platform, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method described in any one of claims 1 to 14.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method according to any one of claims 1 to 14.