-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit combines multiple additions to the leapp database. First addition is tracking of entity metadata. The `Metadata` model stores the metadata of entities such as `Actor` or `Workflow`. This data is stored in a new table `metadata` of the `leapp.db` file. 1. metadata of *discovered* actors. For an actor, the metadata stored contain: `class_name` - the name of the actor class `name` - the name given to the actor `description` - the actor's description `phase` - phase of execution of the actor `tags` - names of any tags associated with an actor `consumes` - list of all messages the actor consumes `produces` - list of all messages the actor produces `path` - the path to the actor source file 2. workflow metadata. For a workflow, the metadata stored contain: `name` - name of the workflow `short_name` - short name of the workflow `tag` - workflow tag `description` - workflow description `phases` - all phases associated with the workflow Next addition is tracking of dialog question. Previously leapp was not able to detect the actual question asked from the user as it could be generated dynamically when actor is called and depend on the configuration of the user's system. Last addition includes storing the actor exit status. Exit status is now saved as an audit event `actor-exit-status`. Exit status 0 represents successful execution or `StopActorExecution`/`StopActorExecutionError`, while 1 indicates an unexpected and unhandled exception. These changes collectively improve the metadata handling capabilities of, ensuring accurate storage and retrieval of essential information for various entities.
- Loading branch information
Showing
23 changed files
with
857 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
BEGIN; | ||
|
||
CREATE TABLE metadata ( | ||
id INTEGER PRIMARY KEY NOT NULL, | ||
context VARCHAR(36) NOT NULL REFERENCES execution (context), | ||
kind VARCHAR(256) NOT NULL DEFAULT '', | ||
name VARCHAR(1024) NOT NULL DEFAULT '', | ||
metadata TEXT DEFAULT NULL, | ||
UNIQUE (context, kind, name) | ||
); | ||
|
||
CREATE TABLE dialog ( | ||
id INTEGER PRIMARY KEY NOT NULL, | ||
context VARCHAR(36) NOT NULL REFERENCES execution (context), | ||
scope VARCHAR(1024) NOT NULL DEFAULT '', | ||
data TEXT DEFAULT NULL, | ||
data_source_id INTEGER NOT NULL REFERENCES data_source (id) | ||
); | ||
|
||
PRAGMA user_version = 3; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name": "workflow-tests", "id": "07005707-67bc-46e5-9732-a10fb13d4e7d"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
[repositories] | ||
repo_path=${repository:root_dir} | ||
|
||
[database] | ||
path=${repository:state_dir}/leapp.db |
Oops, something went wrong.