-
Notifications
You must be signed in to change notification settings - Fork 46
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: show workspace retention rules to the users #620
cli: show workspace retention rules to the users #620
Comments
Some observations regarding the "showing rules alongside ls/du command". The files listing is implemented in |
I think we have basically three-four options here: (1) If a user would like to consult the retention rules for a given workflow, the first and easiest instinct would be to read them from (2) The above facet won't help users who would like to know the site-wide defaults configured by the admins. Here I would suggest to modify (3) If we go into implementing a new command, such as (4) The most interesting to the users would be the direct information in the file listing next to each concrete file, such as: $ reana-client ls -w myanalysis.42
NAME SIZE LAST-MODIFIED RETAINED-UNTIL
merge/merged.root 14471 2022-06-14T11:54:03 2022-06-29T00:00:01
hepdata/data1.yaml 8141 2022-06-14T11:55:38 2023-06-15T00:00:01
hepdata/submission.zip 3003 2022-06-14T11:55:38 2023-06-15T00:00:01
hepdata/submission.yaml 696 2022-06-14T11:55:38 2023-06-15T00:00:01 This would allow for easy filtering options to detect files which are first to expire, etc. This functionality should be optional, because it may be very slow to compute retention deadline for each file in the workspace, if the workspace contains many hundreds or thousands of files. Note that if we go this way, we should do it on the server-side, so that we can reuse the cronjob logic, and so that both the Python client and the Go client can remain "thin" and only show, sort and filter the information coming from the server. |
Note: This won't be implemented during the initial Workspace-Retention sprint, but we may get to this soon when enriching other file attributes, such as exposing regular files vs links. |
According to our plans in #617, the MVP version of the workspace retention rules feature for reana-client is completed. We have
create
andvalidation
parts finished.As noted by @mdonadoni, there is no way to see retention rules using CLI. You can only use the web page. It would be beneficial to allow the same for CLI.
We can display retention rules alongside files in
ls
ordu
commands as described in #617, but it might be complicated. The simpler version can be a new command that lists retention rules for a specific workflow like this:Whatever approach we choose is something to decide on, but it would be good to have some way of displaying retention rules in CLI.
The text was updated successfully, but these errors were encountered: