-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Implement expiration date for federated shares #25320
Conversation
59c1599
to
72e2c0a
Compare
4ffd5e5
to
aa75e33
Compare
been lucky so far, the missing bit was reading expiration date from the DB. |
attempt at fixing CS on master, as a result of running |
16691c6
to
cac7062
Compare
I've also tested remote group share and made adjustment, it works and expires properly too |
cac7062
to
d872821
Compare
Implementation is done, here are topics to discuss before I move forward with unit tests:
|
|
53ea4a8
to
553afe1
Compare
rebased for CI |
failure unrelated |
rebased and recompiled |
553afe1
to
eb5aefe
Compare
the random failure was supposed to be fixed but is still happening: #26314 |
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 fully test but looks good
/compile amend / |
Add expiration date field in UI. Save expiration date when creating or updating federated share. Read expiration date from DB in federated share provider. Applies to both federated user and group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
eb5aefe
to
af61486
Compare
manual rebase + recompile |
Ref nextcloud/server#25320 for Nextcloud 22
Ref nextcloud/server#25320 for Nextcloud 22
Ref nextcloud/server#25320 for Nextcloud 22
Ref nextcloud/server#25320 for Nextcloud 22
Fixes issue that the UI checkbox for expiration date was not being saved for federated share.
Todos
(can't test due to another bug)Notes
I do wonder if that checkbox was added by mistake in the UI through recent refactorings.The more I dig, the more it looks like this feature was never implemented.
We removed it here #25933 and will add it back in this PR.
@rullzer