-
Notifications
You must be signed in to change notification settings - Fork 187
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
add more upload session filters #7933
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
05d8969
to
4e264b1
Compare
Kudos, SonarCloud Quality Gate passed! |
|
@butonic please add dev docs about the new command. |
@kobergj Hm, how do we actually determine if an upload session is stuck in postrocessing? Only postprocessing service really knows. Currently, the storage provider derives the session IsProcessing() response by calling node.IsProcessing() so all uploads to the same file share the same processing state ... Only the postrocessing service knows the state. The storage provider will emit an |
It does nothing, but it should probably. 😄 Let's pair on it tomorrow! |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
4e264b1
to
1811f3a
Compare
the command to restart upload sessions needs to go into the postprocessing service, so this PR is complete. |
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 can't believe you commented your exported funcs! Finally the linter can be happy even without me 😄
Code looks good in general, just some nitpicks as always 👍
Already working on this, but needs a round trip through reva: cs3org/reva#4477 ocis PR: #8287 |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 3 New issues |
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.
LGTM
* add more upload session filters Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * default descriptions Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * update readme Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * use tablewriter, --json flag Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * update readme Signed-off-by: Jörn Friedrich Dreyer <[email protected]> --------- Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This PR deprecates the
ocis storage-users uploads list
command:It also introduces the
ocis storage-users uploads sessions
command:In oc10 occ we also added cli flags to allow rendiring output as json. I marked that as experimental, let me know what you think.
The storageprovider only has a boolean processing flag. Before we can expose processing step outcomes via the upload session interface we need to change the persistence of upload sessions. Currently, it lives in the node metadata, we should move it to the upload session so every uploed session can track its own processing status.
The filter currently only allows an expired true/false flag. I don't think we need a full timestamp filter, yet.
Should we add a
--purge
option to thesession
command? it would allow purging specific upload sessions ... or multiple based on filter. or is that too much of a shotgun?How do we restart postprocessing? should we add a
--restart
option and then trigger postprocessing?Let me know what you think!