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

refactor(updatenotification): Migrate legacy code #48323

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 24, 2024

Summary

  1. Remove hook usage and just provide an initial state
  2. Replace jQuery code with modern non-deprecated frontend code

Also fixed the appinfo.xml as the order of entries is fixed in the XSD.

Screen shots

Bildschirmfoto_20240924_170829

Checklist

@susnux susnux added 3. to review Waiting for reviews technical debt ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Sep 24, 2024
@susnux susnux added this to the Nextcloud 31 milestone Sep 24, 2024
1. Remove hook usage and just provide an initial state
2. Replace jQuery code with modern non-deprecated frontend code

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the chore/legacy-updatenotification branch from eefe56a to 71f1e0c Compare September 24, 2024 16:54
@susnux
Copy link
Contributor Author

susnux commented Sep 24, 2024

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit 3e72210 into master Sep 24, 2024
173 checks passed
@susnux susnux deleted the chore/legacy-updatenotification branch September 24, 2024 17:55
@@ -0,0 +1,24 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the file still named with -legacy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy did not meant the content but the usage: It is only needed if you do not have notifications app enabled.

We could also name it -fallback

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fallback would be clearer for me, but no big deal, was just my curiosity when reading this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants