-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running validate after a command finishes #1976
Changes from all commits
baec382
c5edaea
d03d97b
65b089f
61c5e8a
720ef92
8f889f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Nov 19, 2016 | ||
-- Adding provenance parameter to validate commands | ||
|
||
DO $do$ | ||
DECLARE | ||
cmd RECORD; | ||
BEGIN | ||
FOR cmd IN | ||
SELECT command_id FROM qiita.software_command WHERE name = 'Validate' | ||
LOOP | ||
INSERT INTO qiita.command_parameter (command_id, parameter_name, parameter_type, required, default_value) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this add the actual provenance value to the already created artifacts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this is adding a parameter called "provenance" to the validate command. The command itself doesn't use it but it is used internally in Qiita to differentiate a validate command that has been generated as a result of the user uploading data to Qiita from a validate command that has been generated as a result of an "artifact transformation" job finishing. This doesn't really contain the provenance of the artifact, so no need to add to the already created artifacts. Note that the provenance of the artifacts is stored on the DAG structure in the DB. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, thanks. Just to confirm, this value is not required or defined by the artifacts, they are defined as part of the Validate command that generated those artifacts, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct |
||
VALUES (cmd.command_id, 'provenance', 'string', 'False', NULL); | ||
|
||
END LOOP; | ||
END $do$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this exception in the
Raises
section of the docstring?