Skip to content
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

44032 fix show new shares without refresh #45305

Merged
merged 3 commits into from
Jun 12, 2024
Merged

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented May 14, 2024

Backport of #44464

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from artonge, susnux and Fenn-CS May 14, 2024 10:16
@solracsf solracsf changed the title [master] [stable27] 44032 fix show new shares without refresh 44032 fix show new shares without refresh May 14, 2024
@Fenn-CS Fenn-CS marked this pull request as ready for review May 16, 2024 10:15
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jun 7, 2024
@Fenn-CS Fenn-CS enabled auto-merge June 12, 2024 21:16
@Fenn-CS
Copy link
Contributor

Fenn-CS commented Jun 12, 2024

/compile

These changes fixes the issue of having the refresh the UI after share creation, as the share is not
immediately removed from the UI list.

Important changes

- The basis of checking wether a password/expire date is no longer based on config values alone
because the config is not expected in a share creation circle. Hence we check the configs and check
if the share object (this.share) has the expected values set. This way, once the required properties
are set, code control does not enter the block meant to handle the setting of required properties
unneccessarily.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@Fenn-CS Fenn-CS merged commit 603122d into master Jun 12, 2024
109 checks passed
@Fenn-CS Fenn-CS deleted the backport/44464/master branch June 12, 2024 22:55
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants