Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
64639707
Commit
64639707
authored
1 year ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
Changed the flag to be more generic
parent
ec393c8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1605
Merge 2.8.2.3 work to main
,
!1506
WS-1992: Added a wrester for associated files for images
Pipeline
#12724
passed
1 year ago
Stage: pull-db
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/cli/utilities/aat_wrest/aat_wrest/metadata_wrester.py
+2
-2
2 additions, 2 deletions
apps/cli/utilities/aat_wrest/aat_wrest/metadata_wrester.py
apps/cli/utilities/aat_wrest/aat_wrest/wrest.py
+3
-3
3 additions, 3 deletions
apps/cli/utilities/aat_wrest/aat_wrest/wrest.py
with
5 additions
and
5 deletions
apps/cli/utilities/aat_wrest/aat_wrest/metadata_wrester.py
+
2
−
2
View file @
64639707
...
...
@@ -385,9 +385,9 @@ class WrestWorkflowMetadata:
self
.
conn
.
close
()
return
make_json
def
wrest_
image
_products
(
self
)
->
json
:
def
wrest_
curator
_products
(
self
)
->
json
:
"""
Given a locator or product group ID, returns the product
list for the
associated
image
Given a locator or product group ID, returns the product
filenames
associated
with it
:return: JSON containing the product list
"""
...
...
This diff is collapsed.
Click to expand it.
apps/cli/utilities/aat_wrest/aat_wrest/wrest.py
+
3
−
3
View file @
64639707
...
...
@@ -115,7 +115,7 @@ def parser() -> argparse.ArgumentParser:
help
=
"
Find the product information necessary to run curator on the provided product locator
"
,
)
arg_parser
.
add_argument
(
"
--
image
"
,
"
--
curator_products
"
,
nargs
=
1
,
action
=
"
store
"
,
required
=
False
,
...
...
@@ -159,8 +159,8 @@ def determine_wrester(connection: MDDBConnector, args: argparse.Namespace):
data
=
WrestWorkflowMetadata
(
connection
,
spl
=
args
.
product
).
wrest_product_info
()
elif
args
.
curator
:
data
=
WrestWorkflowMetadata
(
connection
,
spl
=
args
.
curator
).
wrest_curator
()
elif
args
.
image
:
data
=
WrestWorkflowMetadata
(
connection
,
spl
=
args
.
image
).
wrest_
image
_products
()
elif
args
.
curator_products
:
data
=
WrestWorkflowMetadata
(
connection
,
spl
=
args
.
image
).
wrest_
curator
_products
()
else
:
data
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment