-
Notifications
You must be signed in to change notification settings - Fork 47
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
cli: implement filtering by status and search by name #428
Conversation
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 there was a misunderstanding with the issue description and I'm sorry about that. The idea behind the issue was making use of the recently added args in reana-server. In other words, passing these args (search
and status
) directly in this call so the server does the heavy lifting. @tiborsimko Did you understand the same? Probably the issue wasn't well enough explained...
Yes, I understand it the same, but there were two things, actually: (1) adding new filters and (2) amending old format/filter convention to standardise across various |
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 get this:
$ reana-client list
Workflow list could not be retrieved:
local variable 'status_filter' referenced before assignment
Do you get the same?
PS. It seems you need to rebase on top of the latest master.
@mvidalgarcia Can you please try now, I rebased it. |
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.
A)
Can you reproduce this?
$ reana-client list
NAME RUN_NUMBER CREATED STARTED ENDED STATUS
roofit-fail 1 2020-10-14T10:42:20 2020-10-14T10:42:21 2020-10-14T10:42:38 failed
roo 1 2020-10-14T10:23:06 2020-10-14T10:23:06 2020-10-14T10:23:30 finished
root6-roofit 1 2020-10-14T10:22:48 2020-10-14T10:22:49 2020-10-14T10:23:13 finished
$ reana-client list --format status=failed,name=test_workflow
Workflow list could not be retrieved:
list.remove(x): x not in list
$ reana-client list --format status=failed,name=roofit-fail
Workflow list could not be retrieved:
list.remove(x): x not in list
I might only happen when there are failed
workflows (?)
B)
I see that we have --format
for listing workflow files, could we amend the variable name to be consistent, i.e. name it _format
?
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.
A couple of more comments, it's looking great 🚀
A ) Yes, It is happening for me as well, I can work on it to fix this in a different issue. B ) Done 👍 |
Added test for testing workflow search with filter closes #427
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.
🎸!
closes #427