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

feat: Add public event for missing indices #39389

Merged
merged 1 commit into from Jul 14, 2023

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Jul 14, 2023

Summary

Add a public event to allow apps registering missing indices. The event is dispatched for both the setup check as well as the occ db:add-missing-indices command and also works with dry run there to list the sql queries for manual migration.

Backports to 27/26 would be required for nextcloud/text#4522 and would be fine as text is bundled

Usage can be seen in nextcloud/text#4521

Checklist

@juliushaertl juliushaertl force-pushed the enh/add-missing-indices-event branch from 9040daa to bd59f7e Compare July 14, 2023 08:52
@juliushaertl juliushaertl added 2. developing Work in progress pending documentation This pull request needs an associated documentation update enhancement labels Jul 14, 2023
@juliushaertl juliushaertl force-pushed the enh/add-missing-indices-event branch from bd59f7e to 88870aa Compare July 14, 2023 09:01
@juliushaertl juliushaertl added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 14, 2023
@juliushaertl juliushaertl added this to the Nextcloud 28 milestone Jul 14, 2023
@juliushaertl juliushaertl marked this pull request as ready for review July 14, 2023 09:07
lib/public/DB/Events/AddMissingIndicesEvent.php Outdated Show resolved Hide resolved
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl force-pushed the enh/add-missing-indices-event branch from f9e5c3f to 925bceb Compare July 14, 2023 11:11
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 14, 2023
@blizzz blizzz enabled auto-merge July 14, 2023 11:14
@juliushaertl
Copy link
Member Author

Failures unrelated

@juliushaertl juliushaertl merged commit 2601db2 into master Jul 14, 2023
36 of 37 checks passed
@juliushaertl juliushaertl deleted the enh/add-missing-indices-event branch July 14, 2023 12:21
@juliushaertl
Copy link
Member Author

/backport to stable27

@juliushaertl
Copy link
Member Author

/backport to stable26

@backportbot-nextcloud

This comment was marked as resolved.

@backportbot-nextcloud

This comment was marked as resolved.

@juliushaertl juliushaertl removed the pending documentation This pull request needs an associated documentation update label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants