-
Notifications
You must be signed in to change notification settings - Fork 7
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
sda-admin cli #1026
sda-admin cli #1026
Conversation
a3868fd
to
76763c9
Compare
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.
Didn't go through all but added a few pointers that needs to go in overall.
Secondly use the linting function often so you don't end up with simple mistakes.
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.
Really well done, @nanjiangshu!
I added some minor comments. Also, shouldn't .github/workflows/test.yml
be updated so that the tests are run?
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.
I think commands should either be <verb> <noun>
or <noun> <verb>
. Currently there's a mix of both.
I suggest not having list
as a toplevel command. So refactor list files
and list users
into files list
and users list
.
8bac427
to
ab22a90
Compare
Good catch @MalinAhlberg , I added in the commit ab22a90 |
Good suggestion @viklund . The syntax of the commands is now consistent with the format . I use
|
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.
- Add this folder to the
code-linter
action - Add an option in the
Makefile
to build the app, both separate and as part of thebuild-all
step - Add an option in the
Makefile
to run the linter for this folder
I tested this a bit, and I think it's a really nice way to work with the pipeline! Also, it seems to be a really good way to run into bugs, by being a maybe-not-so-organized user. I quickly ran into bug #1027, and also managed to run into something similar for verify/postgres. They keep logging even though I did not get any error from
I'm not sure what I did wrong.
|
All of that needs to be solved in the API. There are a few steps we need to double check. |
7bfac1e
to
cbe7082
Compare
e9e9ac9
to
c85480e
Compare
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.
In order to test that the messages arrive in the correct stream (stderr or stdout) you can use this: /sda-admin -uri example.com -token fooBar help dataset 2>stderr.log 1>stdout.log
662b686
to
b44b0d5
Compare
Co-authored-by: Joakim Bygdell <[email protected]>
Co-authored-by: Joakim Bygdell <[email protected]>
f163c38
to
ae67160
Compare
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.
⭐
Related issue(s) and PR(s)
This PR closes #1007
Description
The command line tool that can talk to SDA API endpoints. It provides functionalities to list users and files, ingest and set accession IDs for files, and create or release datasets.
How to test
sda-admin
by