-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
enh: Fix display default expire date, add tests & tiny refactors #50655
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97c913b to
e0450ea
Compare
Contributor
Author
|
/backport to stable31 |
Contributor
Author
|
/backport to stable30 |
Contributor
Author
|
/backport to stable29 |
e4f5688 to
02c58f8
Compare
Contributor
Author
|
/compile |
susnux
reviewed
Feb 5, 2025
skjnldsv
reviewed
Feb 5, 2025
dda04e8 to
c83bef6
Compare
skjnldsv
approved these changes
Feb 5, 2025
c83bef6 to
883819d
Compare
Contributor
Author
|
/compile |
susnux
approved these changes
Feb 5, 2025
| $share->setPermissions($permissions); | ||
| } elseif ($shareType === IShare::TYPE_CIRCLE) { | ||
| if (!\OC::$server->getAppManager()->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) { | ||
| if (!\OC::$server->get(IAppManager::class)->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) { |
Contributor
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.
Suggested change
| if (!\OC::$server->get(IAppManager::class)->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) { | |
| if (!\OCP\Server::get(IAppManager::class)->isEnabledForUser('circles') || !class_exists('\OCA\Circles\ShareByCircleProvider')) { |
d5594b0 to
ea9c3ab
Compare
marcoambrosini
approved these changes
Feb 6, 2025
artonge
approved these changes
Feb 6, 2025
ea9c3ab to
d9b250a
Compare
d9b250a to
fb207ea
Compare
Signed-off-by: nfebe <[email protected]>
Since `ShareEntryLink` component is used to both create and display/list the share links, we should only set default expiration date on `share.expireDate` when we know is a new share. Otherwise, we overidding data from the backend. Signed-off-by: nfebe <[email protected]>
…reate share Signed-off-by: nfebe <[email protected]>
Signed-off-by: nfebe <[email protected]>
…nput Signed-off-by: nfebe <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
fb207ea to
a544252
Compare
This was referenced Feb 6, 2025
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves : #50495
Screencasts
Show default expiration date before create share
show-default-date.mp4
Quick share select updated without refresh
quick-share.mp4
Checklist