Move invite-accepted capability and implementation to contacts app.#57853
Move invite-accepted capability and implementation to contacts app.#57853redblom wants to merge 1 commit intonextcloud:masterfrom
Conversation
|
@redblom why is this moved out of server and could it break OCM when the contacts app is not installed? the app is not shipped. it is optional. |
7cb53f3 to
2d2e4a1
Compare
This is done on my request:
|
|
let's ping @mickenordin on this one ! |
2d2e4a1 to
aea3c70
Compare
I haven't reviewed the change, but in principal I see no problem with it. |
aea3c70 to
254681c
Compare
|
Rebased, squashed, removed |
3948b49 to
57769de
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Hey @redblom , can you do the following things?
ETA: you can do the same workflow on the contacts branch too |
7f0ecf2 to
ddfe68d
Compare
@miaulalala - ping ! |
|
Thanks for the ping! A couple more steps and we should be good:
|
ddfe68d to
9bae2c0
Compare
|
@ArtificialOwl can you review? CI is fine now, only workflows not allowed on forks are red. |
9bae2c0 to
48ad12d
Compare
| $table_name = 'federated_invites'; | ||
|
|
||
| if ($schema->hasTable($table_name)) { | ||
| $schema->dropTable($table_name); |
There was a problem hiding this comment.
Do we have a repair step to move the data from the old to the new table?
There was a problem hiding this comment.
Answer from the guided review was no, as this was not used.
There was a problem hiding this comment.
I know what I said during the guided review but after some contemplation I now think it would be better to have a repair step to secure existing data. What would be the appropriate strategy?
There was a problem hiding this comment.
There was a problem hiding this comment.
In the other PR, I also emited the idea of keeping the table if the columns are the same. Might be easier.
There was a problem hiding this comment.
In the other PR, I also emited the idea of keeping the table if the columns are the same. Might be easier.
I like that idea.
So what I understood from @nickvergessen the reason to drop the table is to not have a table when that is not used (by cloud_federation_app), which makes sense of course. However we never really discussed what to do with existing data.
I suppose we can do a conditional table drop, only drop when there is no data in the table. Recreating the table in the Contacts app is conditional anyway. That way we would secure existing data.
ps. columns are the same
There was a problem hiding this comment.
In the other PR, I also emited the idea of keeping the table if the columns are the same. Might be easier.
I like that idea.
So what I understood from @nickvergessen the reason to drop the table is to not have a table when that is not used (by cloud_federation_app), which makes sense of course. However we never really discussed what to do with existing data.
I suppose we can do a conditional table drop, only drop when there is no data in the table. Recreating the table in the Contacts app is conditional anyway. That way we would secure existing data. ps. columns are the same
Makes sense
There was a problem hiding this comment.
There was a problem hiding this comment.
The idea is to backport to stable 33 once this is merged. So add to .../upgrade_to_33rst instead ?
There was a problem hiding this comment.
Yes, but I am not sure that we'll backport that to 33 as this is not really critical.
48ad12d to
ea79d6a
Compare
|
can you run |
…ation. Signed-off-by: Antoon P <antoon.prins@surf.nl>
ea79d6a to
e40b6fa
Compare
Summary
Code moved to contacts app, see nextcloud/contacts#4417
TODO
Checklist
3. to review, feature component)stable32)