Skip to content

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Sep 19, 2023

We have three kind of share expiry date enforcements.

  • isDefaultExpireDateEnforced
  • isDefaultInternalExpireDateEnforced
  • isDefaultRemoteExpireDateEnforced

Before these commit, isExpiryDateEnforced that is used to disable/enable the set expiry date checkbox does not take those into consideration which is problematic as those have different applications.

In addition, this commit now uses isExpiryDateEnforced to disable/enable the input for expiry date that shows up before the creation of link shares.

@nfebe nfebe added 3. to review Waiting for reviews feature: sharing labels Sep 19, 2023
@nfebe nfebe force-pushed the improve-expire-date-enforcement branch 2 times, most recently from 468dd6e to 5980ffc Compare September 19, 2023 11:32
@blizzz blizzz requested a review from artonge September 20, 2023 09:48
@blizzz blizzz added this to the Nextcloud 28 milestone Sep 20, 2023
@AndyScherzinger
Copy link
Member

/backport to stable27

@nfebe nfebe force-pushed the improve-expire-date-enforcement branch from d2bb39c to 5f2c602 Compare September 20, 2023 15:01
@nextcloud-command nextcloud-command force-pushed the improve-expire-date-enforcement branch from 5f2c602 to 268441d Compare September 20, 2023 15:48
@nfebe nfebe force-pushed the improve-expire-date-enforcement branch from 8b2b74d to 25982a7 Compare September 20, 2023 15:56
@nfebe
Copy link
Contributor Author

nfebe commented Sep 20, 2023

/compile amend /

We have three kind of share expiry date enforcements.

- `isDefaultExpireDateEnforced`
- `isDefaultInternalExpireDateEnforced`
- `isDefaultRemoteExpireDateEnforced`

Before these commit, `isExpiryDateEnforced` that is used to
disable/enable the set expiry date checkbox does not take those into consideration
which is problematic as those have different applications.

In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for
expiry date that shows up before the creation of link shares.

Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is
not used.

Signed-off-by: fenn-cs <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@nextcloud-command nextcloud-command force-pushed the improve-expire-date-enforcement branch from 25982a7 to 56771b5 Compare September 20, 2023 16:43
@blizzz blizzz merged commit d644525 into master Sep 21, 2023
@blizzz blizzz deleted the improve-expire-date-enforcement branch September 21, 2023 07:44
@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants