Cloud platforms allow user do many complex operations with single command. However, when users make one or a series of wrong actions, it will be a disaster for their services, and manually recovery is very difficult. Nowadays, there is no tool in mainstream cloud platforms that could cancel management action series and recover the services status.
The embodiments of the present disclosure is provided to give a brief introduction to some concepts, which would be further explained in the following description. This Summary is not intended to identify essential technical features or important features of the subject as claimed nor to limit the scope of the subject as claimed.
A technical solution related to action undo service based on cloud platform is disclosed. Related operations dependent on target operations to be undone may be obtained by dependency analysis and the target operations and the related operations may be undone by time sequence so as to reduce the conflict caused by the undo operations.
The above description is merely a brief introduction of the technical solutions of the present disclosure, so that the technical means of the present disclosure may be clearly understood, and implemented according to the description of the specification, and the above and other technical objects, features and advantages of the present disclosure may be more obvious based on the embodiments of the present disclosure as follows.
In the following, description will be given in detail on the exemplary embodiments of the present disclosure, in connection with the accompanying drawing. Although drawings show the exemplary embodiments of the present disclosure, it should be appreciated that the present disclosure may be implemented in various ways without being limited by the embodiments set forth herein. On the contrary, these embodiments are provided for thorough understanding of the present disclosure, and completely conveying the scope of the present disclosure to the skills in the art.
Dependency: If the execution of one operation affects directly or indirectly one instance property to which another operation is related, these two operations may be regarded as having dependency therebetween. The “related” mentioned here refers to another operation need this instance property as conditions or the execution of another operation may change or affect the instance property.
Affected relationship between instance properties: if changes of one instance property may affect directly or indirectly another instance property, it may be regarded that these two instance properties have affected relationship therebetween. The affected relationship between the instance properties as mentioned here may be the case that one instance property affects another instance property, or one instance property is affected by another instance property, or these two instance properties affect each other.
Affected relationship between service instances: if changes of one service instance may affect directly or indirectly another service instance, it may be regarded that these two service instances have affected relationship therebetween. The affected relationship between the service instances as mentioned here may be the case that one service instance affects another service instance, or one service instance is affected by another service instance, or these two instances affect each other.
In the present disclosure, term “technique” may refer to, for example, system(s), method(s), computer-readable instructions, module(s), algorithm, hardware logic (e.g., Field-Programmable Gate Array (FPGA)), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and/or other technique allowable in the above context and the present disclosure.
Cloud computation is a kind of convenient service. A user may be allowed to use single instruction to do many complex operations on a cloud platform. However, it may magnify the influence of wrong operations. When a user performs one or a series of wrong operations, serious influence may be brought to the cloud service. In such situation, manual system recovery not only needs knowledge and technique related to cloud computation, but also involves complex operations, since such recovery may involve running of many other services. In view of such state, the present disclosure provides a technical solution of operations undo solution, which may find related operations having dependency relationship with a target operation to be undone by dependency analysis upon determining the target operation, and undo these related operations in time sequence so that the operation undo service on cloud platform may be realized in a condition that the system stability may be guaranteed.
With the operations undo service in the present disclosure, when there is wrong operation or in other cases that it is necessary to undo operations, the operation and related operations having dependency with the operation may be undone together so as to prevent the undo processing on the operation from affecting other service in the system without the recovery processing on the whole system. The flexibility and fault-tolerance of user in performing cloud operations may be improved.
The system as shown in the diagram 200 may show the user the dependency chart 203 based on timeline in an intuitive way, so as to facilitate the user to undo operations.
In the following, detailed explanation would be made on each part of system diagram 100 and system diagram 200.
Dependency Analysis Module
Operations based on cloud platform may depend on instance properties of a service instance when being executed. If one operation changes the instance properties of a service instance, such change may affect other sequential operations related to the service instance, even affect other service instances and further affect the operations based on those other service instances. Therefore, in embodiments of the present disclosure, before undoing a target operation, dependency analysis may be performed to find sequential operations affected by the target operation, and the conflict brought by the undo processing of the target operation may be eliminated by undoing the sequential operations.
For example, the service instance may be a database managing instance. More particularly, the instance property P1 is database version information managed by the database managing instance, and the instance property P2 is access authority information of the database. The operation A1 is an operation of upgrading the database, e.g., from version 1.0 to version 2.0. Therefore, the operation A1 changes the instance property P1 (e.g., from version 1.0 to version 2.0). The operation A2 is also an operation of upgrading the database, e.g., from version 2.0 to version 3.0. An operation A3 is an operation of changing the access authority of the database.
It may be assumed that in an operation of upgrading or reverting versions of the database, it is necessary to perform the upgrading or reverting in an order of versions. For example, if it is planned to upgrade from version 1.0 to version 3.0, it is necessary to first upgrade from version 1.0 to version 2.0, and then from version 2.0 to version 3.0. On the contrary, if it is planned to revert from version 3.0 to version 1.0, it is necessary to first revert from version 3.0 to version 2.0, and then from version 2.0 to version 1.0. It is obvious that if the operation A1 is to be undone, it is necessary to undo operation A2. Therefore, the operations A1 and A2 have dependency therebetween. The operations A3 and A1 are not related to the same instance property, and the upgrading operation of database would not change the access authority of database. Therefore, the operations A3 and A1 do not affect each other and thus they do not have dependency therebetween.
For example, the service instance I1 is an instance of managing virtual machine cluster. More particularly, the instance property P1 is IP address of the virtual machine cluster and the instance property P2 is the power-on/off state of the virtual machine cluster. The operation A1 is an operation of changing the IP address of virtual machine cluster, and the operation A2 is an operation of shutting down the virtual machine cluster. It may be assumed that the IP address of the virtual machine cluster may be changed only when the virtual machine cluster is in the power-on state. Based on such assumption, the power-on/off state of the virtual machine cluster may affect the operation of changing the IP address of the virtual machine cluster. That is, the instance property P1 is affected by the instance property P2. Based on such affecting relationship, The executing and reverting of operation A1 may both need an pre-condition that the instance property P2 is the power-on state of the virtual machine cluster. The execution of operation A2 may result in that the instance property P2 is the power-off state of the virtual machine cluster, which may directly result in that it is impossible to revert the operation A1. Therefore, the operations A1 and A2 have dependency therebetween, and if the operation A1 is to be undone, it is necessary to revert the operation A2.
For example, the service instance I1 is an instance of managing a virtual machine cluster. More particularly, the instance property P1 of the service instance I1 is the deploy location of the virtual machine cluster in the data center, and the instance property P2 of the service instance I1 is the access authority to the virtual machine cluster. The service instance 12 is a virtual machine instance of the virtual machine cluster described above, i.e., the service instance 12 is under management of the service instance I1. Therefore, the service instances I1 and 12 have affecting relationship therebetween. The instance property P3 of the service instance 12 is an access authority to the virtual machine, and the instance property P4 of the service instance 12 is the deploy location of the virtual machine in the data center. It should be noted that, the access authority of a user to one virtual machine is on the premise of the access authority to the virtual machine cluster. The access authority of a user to one virtual machine is allowed only when the access authority of the user to the virtual machine cluster is allowed. Therefore, the instance properties P3 and P2 have affecting relationship therebetween.
The operation A1 is allowing the access authority of a user to the virtual machine cluster. The operation A2 is executed after the operation A1 and is allowing the access authority of the user to a virtual machine corresponding to the instance 12. Furthermore, the instance properties P3 and P2 have affecting relationship therebetween, and thus the operation A2 is on the premise of the operation A1. If the undo processing on the operation A1 affects the operation A2, the operations A1 and A2 have dependence therebetween. Furthermore, the operation A3 is executed after the operation A2 and is an operation of moving the deploy location of the virtual machine corresponding to the service instance 12 in the data center. Therefore, the operation A3 is not related to the operations A2 and A1 and these operations would not affect each other. Therefore, the operation A3 and the operations A2 and A1 do not have dependency.
For example, with reference to the diagram 500, the service instance I1 is an instance for managing virtual machine cluster. More particularly, the instance property P1 of the service instance I1 is the access authority of a user to the virtual machine cluster, and the instance property P2 of the service instance I1 is a backup scheme of the virtual machine cluster (local backup or remote backup). The service instance 12 is a virtual machine instance of the virtual machine cluster described above, i.e., the service instance 12 is under the management of the service instance I1. Therefore, the service instances I1 and 12 have affecting relationship therebetween. The instance property P3 of the service instance 12 is a backup scheme of the virtual machine (local backup or remote backup), and the instance property P4 of the service instance 12 is the access authority of a user to the virtual machine. The backup scheme of the virtual machine cluster directly affects the backup schemes of virtual machines in the virtual machine cluster. Therefore, the instance property P2 of the service instance I1 and the instance property P3 of the service instance 12 have affecting relationship therebetween.
An operation A1 is an operation of changing the backup scheme of the virtual machine cluster from local backup to remote backup, which directly changes the instance property P2 of the service instance I1. The service instances I1 and 12 have affecting relationship therebetween and the instance property P2 of the service instance I1 and the instance property P3 of the service instance 12 have affecting relationship therebetween. Therefore, the operation A1 indirectly affects the backup scheme of the virtual machine corresponding to the service instance 12, i.e., the operation A1 indirectly affects the instance property P3 of the service instance 12. The operation A2 is after the operation A1 and is an operation of stop the backup of the virtual machine corresponding to the service instance 12. The undo processing on operation A1 is to change the backup scheme of the virtual machine cluster back to the scheme of local backup. The backup of the virtual machine corresponding to the service instance 12 is in a state of working before the operation A1 is executed. However, the backup of the virtual machine corresponding to the service instance 12 is stopped after the operation A2 is executed and cannot be restored to the state before the operation A1 is executed. Therefore, the operations A1 and A2 have dependency therebetween. It is necessary to undo the operation A2, i.e., start the backup of the virtual machine corresponding to the service instance 12, before the operation A1 is undone. The operation A3 is an operation of allowing the access authority of a user to the virtual machine corresponding to the service instance 12. The operation A3 is not related to the operations A2 and A1 and these operations would not affect each other. Therefore, the operation A3 and the operations A2 and A1 do not have dependency.
In the above, explanation has been made on the dependency analysis made by the dependency analysis module 101. The dependency analysis module 101 may perform dependency analysis on a target operation 103 to be undone, and output a sequence 104 of operations to be undone, which have dependency with the target operation. The sequence 104 of operations to be undone may soft the operations in operating time sequence, so as to facilitate the undo processing performed by the sequential operation rollback engine 102.
Operation Rollback Engine
The operation type detection module 601 may take out operations to be undone sequentially from the sequence 104 of operations to be undone and determine the type of the operations to be undone so that corresponding sequential operations may be executed according to different type of the operations to be undone. The operation rollback engine 102 may perform the type detection on each operation to be undone in the sequence 104 of operations to be undone and perform corresponding processing according to the operation type of the operations to be undone, since there are many types of operations to be undone and not any operation is available to be undone. More particularly, the operations to be undone may be classified into three types:
(1) General Operations 604: Operations Only Change Property of a Service Instance without Changing User Data.
For example, such general operations may include: changing IP address of a virtual machine, changing safety strategy of a service instance, changing access authority of a user, and so on. If the operation to be undone is a general operation, the operation type detection module 601 may send the operation to be undone to the undo operation module 603 for the undo processing.
(2) Operations 605 Related to User Data
For example, such operations 605 may include: operations related to data backup, operations related to updating data of database, operations of installing software in the virtual machine, and so on.
If the operation to be undone is an operation related to user data, the operation type detection module 601 may send the operation to be undone to the backup searching module 602, and the backup searching module 602 may perform search to find whether or not there is a user data backup before the operation is executed. If the searching result is “find the backup” 607, the operation to be undone may be send to the operation undo module 603 so that the undo processing may be performed. If the searching result is “fail to find the backup” 608, the undo processing of the operation rollback engine 102 may be terminated, i.e., the undo processing on the subsequent operations to be undone in the sequence 104 of operations to be undone may be terminated, and the result of “fail to undo the operation”.
(3) Unsupportable Operations 606: Operations which are Undoable or for which the Undo Processing is Meaningless, and Unsupportable by the Operation Rollback Engine 102.
For example, the operations 606 may include: restarting the virtual machine, for which the undo processing is meaningless, and looking for logs, which is a kind of one-time operation and cannot be undone.
If an operation to be done is the operation which is undoable or for which the undo processing is meaningless, i.e., unsupportable by the operation rollback engine 102, the operation type detection module 601 may omit that operation and keep accessing the sequence 104 of operations to be undone to take out the next operation to be undone.
Timeline Tool Module
With such dependency chart 700, the user may clearly analyze the dependency between the specified operation and related operations and the time sequence, and may select restore time point. As shown in the dependency chart 700, for example, a vertical dash line may represent a restore time point selected by a user. The timeline tool module 201 may generate a sequence 104 of operations to be undone in a time sequence with operations (operations A2-A5) after the restore time point and send it to the operation rollback engine 102 for the undo processing.
S801: obtaining a related operation having dependency with a target operation 103 to be undone, in which the related operation is executed after the target operation. If the execution of the target operation affects directly or indirectly one instance property to which the related operation is related, the target operation and the related operation are regarded as having dependency therebetween.
S802: undoing at least part of related operations and the target operation.
As one example, in S801, the obtaining a related operation having dependency with a target operation 103 to be undone may include: obtaining a first instance property changed by the target operation; obtaining an operation changing the first instance property after the target operation as a related operation according to the first instance property.
As another example, in S801, the obtaining a related operation having dependency with a target operation 103 to be undone may include: obtaining a first instance property changed by the target operation; determining a second instance property having affecting relationship with the first instance property according to the first instance property, the second instance property and the first instance property belong to the same service instance; obtaining an operation changing the second instance property after the target operation as a related operation according to the second instance property.
As still another example, in S801, the obtaining a related operation having dependency with a target operation 103 to be undone may include: obtaining a first instance property changed by the target operation; determining a first service instance to which the first instance property belongs according to the first instance property; determining a second service instance having affecting relationship with the first service instance according to the first service instance, obtaining a second instance property having affecting relationship with the first instance property among the instance properties of the second service instance; obtaining an operation changing the second instance property after the target operation as a related operation according to the second instance property.
Furthermore, S802 may further include: undoing the target operation and at least part of related operation in the related operation in a sequence from new to old based on operation time. More particularly, the target operation and the related operation may be sorted in a sequence of operating time, and the sequence 104 of operations to be undone may be generated. Then the sequence 104 of operations to be undone may be undone in a sequence from new to old based on operation time.
Furthermore, the undoing the target operation and at least part of related operation in the related operation in a sequence from new to old based on operation time may include: performing judgment on the operation to be undone. More particularly, the operation to be undone is any one or more operations of related operation and the target operation. If the operation to be undone involves amending user data, the judgment may be performed on whether or not there is a user data backup before the execution of the operation to be undone. If there is the user data backup, the operation to be undone may be undone, and the user data may be restored to the state before the execution of the operation to be undone with the user data backup. If there is no user data backup, the undo processing is terminated or the undo processing is suspended and send prompt to the user. If the operation to be undone involves no amending to the user data, the operation to be undone is undone.
Furthermore, the following steps may be further included: performing judgment on the operation to be undone, if the operation to be undone is an operation unnecessary to be undone, omitting the operation to be undone.
S901: obtaining a related operation having dependency with a specified operation, in which the related operation is executed after the specified operation. The specified operation may be an operation recorded in the system operating log.
S902: sorting the specified operation and the related operation in a sequence of operating time and generating a dependency chart based on time line;
S903: undoing at least part of related operations or at least part of target operation and all related operations after a restore time point in response to the selection of the restore time point.
Detailed explanation has been made on the implementation of processing in the above steps in the above and may be applied to all steps similarly.
Examples of Implementation
In some examples, each component or module of system diagram 100 and system diagram 200 and structural diagram 600, such as, dependency analysis module 101, operation rollback engine 102, timeline tool module 201, operation type detection module 601, backup searching module 602, and operation undo module 603 and the like, and one or more steps in the flow chart shown in
The memory 1001 may be configured to store programs. In addition to the above programs, the memory 1001 may be configured to store other data to support operations on the computer apparatus 1000. The examples of these data may include instructions of any applications or methods operated on the computer apparatus 1000, contact data, phone book data, messages, pictures, videos, and the like.
The memory 1001 may be implemented by any kind of volatile or nonvolatile storage device or their combinations, such as static random access memory (SRAM), electronically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk memory, or optical disk.
In some examples, the memory 1001 may be coupled to the processor 1002 and contain instructions stored thereon. The instructions may cause the electric apparatus to perform operations upon being executed by the processor 1002, the operations may include:
obtaining a related operation having dependency with a target operation 103 to be undone, in which the related operation is executed after the target operation;
undoing at least part of related operations and the target operation.
If the execution of the target operation affects directly or indirectly one instance property to which the related operation is related, the target operation and the related operation are regarded as having dependency therebetween.
As one example, the obtaining a related operation having dependency with a target operation 103 to be undone may further include:
obtaining a first instance property changed by the target operation;
obtaining an operation changing the first instance property after the target operation as a related operation according to the first instance property.
As another example, the obtaining a related operation having dependency with a target operation 103 to be undone may include:
obtaining a first instance property changed by the target operation;
determining a second instance property having affecting relationship with the first instance property according to the first instance property, the second instance property and the first instance property belong to the same service instance;
obtaining an operation changing the second instance property after the target operation as a related operation according to the second instance property.
As still another example, the obtaining a related operation having dependency with a target operation 103 to be undone may include:
obtaining a first instance property changed by the target operation;
determining a first service instance to which the first instance property belongs according to the first instance property;
determining a second service instance having affecting relationship with the first service instance according to the first service instance,
obtaining a second instance property having affecting relationship with the first instance property among the instance properties of the second service instance;
obtaining an operation changing the second instance property after the target operation as a related operation according to the second instance property.
Furthermore, the undoing at least part of related operation and the target operation may further include:
undoing the target operation and at least part of related operation in a sequence from new to old based on operating time.
In some examples, the memory 1001 may be coupled to the processor 1002 and contain instructions stored thereon. The instructions may cause the electric apparatus to perform operations upon being executed by the processor 1002, the operations may include:
obtaining a related operation having dependency with a specified operation, in which the related operation is executed after the specified operation. The specified operation may be an operation recorded in the system operating log;
sorting the specified operation and the related operation in a sequence of operating time and generating a dependency chart based on timeline;
undoing at least part of related operation or at least part of operations in the target operation and the related operation after a restore time point in response to the selection of the restore time point.
Detailed description has been made on the above operations in the above embodiments, and the description on the above operations may be applied to electric apparatus 1000. That is to say, the specific operations mentioned in the above embodiments may be recorded in memory 1001 in program and be performed by processor 1002.
Furthermore, as shown in
The communication unit 1003 may be configured to facilitate wireless or wired communication between the computer apparatus 1000 and other apparatuses. The computer apparatus may be connected to wireless network based on communication standard, such as WiFi, 2G, 3G, or their combination. In an exemplary example, the communication unit 1003 may receive radio signal or radio related information from external radio management system via radio channel. In an exemplary example, the communication unit 1003 may further include near field communication (NFC) module for facilitating short-range communication. For example, the NFC module may be implemented with radio frequency identification (RFID) technology, Infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
The power supply unit 1004 may be configured to supply power to various units of the computer apparatus. The power supply unit 1004 may include a power supply management system, one or more power supplies, and other units related to power generation, management, and allocation.
The audio unit 1005 may be configured to output and/or input audio signals. For example, the audio unit 1005 may include a microphone (MIC). When the computer apparatus in an operation mode, such as calling mode, recording mode, and voice recognition mode, the MIC may be configured to receive external audio signals. The received audio signals may be further stored in the memory 1001 or sent via the communication unit 1003. In some examples, the audio unit 1005 may further include a speaker configured to output audio signals.
The display unit 1006 may include a screen, which may include liquid crystal display (LCD) and touch panel (TP). If the screen includes a touch panel, the screen may be implemented as touch screen so as to receive input signal from users. The touch panel may include a plurality of touch sensors to sense touching, sliding, and gestures on the touch panel. The touch sensor may not only sense edges of touching or sliding actions, but also sense period and pressure related to the touching or sliding operations.
The above memory 1001, processor 1002, communication unit 1003, power supply unit 1004, audio unit 1005 and display unit 1006 may be connected with the chipset 1007. The chipset 1007 may provide interface between the processor 1002 and other units of the computer apparatus 1000. Furthermore, the chipset 1007 may provide interface for each unit of the computer apparatus 1000 to access the memory 1001 and communication interface for accessing among units.
Example Clauses
A. A method for undoing operations, including: obtaining a related operation having dependency with a target operation to be undone, wherein the related operation is executed after the target operation; and undoing at least part of the related operation and the target operation.
B. The method according to paragraph A, wherein if the execution of the target operation affects directly or indirectly one instance property to which the related operation is related, the target operation and the related operation are regarded as having dependency therebetween.
C. The method according to paragraph B, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; and obtaining an operation changing the first instance property executed after the target operation as the related operation according to the first instance property.
D. The method according to paragraph B, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; determining a second instance property having affecting relationship with the first instance property according to the first instance property, the second instance property and the first instance property belong to the same service instance; and obtaining an operation changing the second instance property executed after the target operation as the related operation according to the second instance property.
E. The method according to claim paragraph B, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; determining a first service instance to which the first instance property belongs according to the first instance property; determining a second service instance having affecting relationship with the first service instance according to the first service instance,
obtaining a second instance property having affecting relationship with the first instance property among the instance properties of the second service instance; and obtaining an operation changing the second instance property executed after the target operation as the related operation according to the second instance property.
F. The method according to paragraph A, wherein the undoing at least part of related operation and the target operation may include: undoing the target operation and at least part of related operation in a sequence from new to old based on operating time.
G. The method according to paragraph F, wherein the undoing the target operation and at least part of related operation in a sequence from new to old based on operation time may include: performing judgment on an operation to be undone, the operation to be undone is any one or more operations of the related operation and the target operation; performing judgment on whether or not there is a user data backup before the execution of the operation to be undone, if the operation to be undone involves amending to user data; undoing the operation to be undone, if there is the user data backup; and restoring the user data to a state before the execution of the operation to be undone with the user data backup.
H. The method according to paragraph G, wherein the undoing the target operation and at least part of related operation in a sequence from new to old based on operation time further may include: performing judgment on the operation to be undone; and omitting the operation to be undone, if the operation to be undone is an operation unnecessary to be undone.
I. A method for undoing operations, including: obtaining a related operation having dependency with a specified operation, wherein the related operation is executed after the specified operation; sorting the specified operation and the related operation in a sequence of operating time and generating a dependency chart based on timeline; and undoing at least part of related operation or at least part of target operation and related operation after a restore time point in response to the selection of the restore time point.
J. The method according to paragraph I, wherein if the execution of the specified operation affects directly or indirectly one instance property to which the related operation is related, the specified operation and the related operation are regarded as having dependency therebetween.
K. The method according to paragraph J, in which the obtaining a related operation having dependency with a specified operation to be undone may include: obtaining a first instance property changed by the specified operation; and obtaining an operation changing the first instance property executed after the specified operation as the related operation according to the first instance property.
L. The method according to paragraph J, wherein the obtaining a related operation having dependency with a specified operation to be undone may include: obtaining a first instance property changed by the specified operation; determining a second instance property having affecting relationship with the first instance property according to the first instance property, the second instance property and the first instance property belong to the same service instance; and obtaining an operation changing the second instance property executed after the specified operation as the related operation according to the second instance property.
M. The method according to paragraph J, wherein the obtaining a related operation having dependency with a specified operation to be undone may include: obtaining a first instance property changed by the specified operation; determining a first service instance to which the first instance property belongs according to the first instance property; determining a second service instance having affecting relationship with the first service instance according to the first service instance, obtaining a second instance property having affecting relationship with the first instance property among the instance properties of the second service instance; and obtaining an operation changing the second instance property executed after the specified operation as the related operation according to the second instance property.
N. The method according to paragraph I, wherein the dependency chart based on timeline comprises operating time information and corresponding service instance information of the specified operation and the related operation.
O. An electric apparatus, including: a processing unit; and a memory, coupled to the processing unit and containing instructions stored thereon, the instructions cause the electric apparatus to perform operations upon being executed by the processing unit, the operations may include: obtaining a related operation having dependency with a target operation to be undone, in which the related operation is executed after the target operation; and undoing at least part of the related operation and the target operation.
P. The electric apparatus according to paragraph O, wherein if the execution of the target operation affects directly or indirectly one instance property to which the related operation is related, the target operation and the related operation are regarded as having dependency therebetween.
Q. The electric apparatus according to paragraph P, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; and obtaining an operation changing the first instance property executed after the target operation as the related operation according to the first instance property.
R. The electric apparatus according to claim P, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; determining a second instance property having affecting relationship with the first instance property according to the first instance property, the second instance property and the first instance property belong to the same service instance; and obtaining an operation changing the second instance property executed after the target operation as the related operation according to the second instance property.
S. The electric apparatus according to paragraph P, wherein the obtaining a related operation having dependency with a target operation to be undone may include: obtaining a first instance property changed by the target operation; determining a first service instance to which the first instance property belongs according to the first instance property; determining a second service instance having affecting relationship with the first service instance according to the first service instance, obtaining a second instance property having affecting relationship with the first instance property among the instance properties of the second service instance; and obtaining an operation changing the second instance property executed after the target operation as a related operation according to the second instance property.
T. The electric apparatus according to paragraph O, wherein the undoing at least part of related operation and the target operation may include: undoing the target operation and at least part of related operation in a sequence from new to old based on operating time.
It would be obvious to one skilled in the art that, all or part of steps for implementing the above embodiments may be accomplished by hardware related to programs or instructions. The above program may be stored in a computer readable storing medium. Such program may perform the steps of the above embodiments upon being executed. The above storing medium may include: ROM, RAM, magnetic disk, or optic disk or other medium capable of storing program codes.
It should be noted that the foregoing embodiments are merely used to illustrate the technical solution of the present disclosure, and not to limit the present disclosure. Although the present disclosure has been described in detail with reference to the foregoing embodiments, one skilled in the art would understand that the technical solutions recited in the foregoing embodiments may be modified or all or a part of the technical features may be replaced equally. These modifications and replacements are not intended to make corresponding technical solution depart from the scope of the technical solution of embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201710439975.8 | Jun 2017 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2018/034025 | 5/23/2018 | WO | 00 |