-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(OCM-invites): Implementation of invitation flow for OCM 1.1.0 #51113
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Navid Shokri <[email protected]> Signed-off-by: Micke Nordin <[email protected]> Signed-off-by: Navid Shokri <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this table written?
I only see a single SELECT and an UPDATE, but no INSERT?
apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
apps/cloud_federation_api/lib/Migration/Version1015Date202502262004.php
Outdated
Show resolved
Hide resolved
This patchset implements the /invite-accepted endpoint https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post Also normalize names of columns, and populate them all Inspo from: - apps/dav/lib/Migration/Version1005Date20180413093149.php - https://saturncloud.io/blog/what-is-the-maximum-length-of-a-url-in-different-browsers/#maximum-url-length-in-different-browsers - https://www.directedignorance.com/blog/maximum-length-of-email-address Signed-off-by: Micke Nordin <[email protected]>
…ler.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: Micke Nordin <[email protected]>
…ler.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: Micke Nordin <[email protected]>
Signed-off-by: Micke Nordin <[email protected]>
…62004.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: Micke Nordin <[email protected]>
…62004.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: Micke Nordin <[email protected]>
Empty strings are needed when creating invite. Signed-off-by: Micke Nordin <[email protected]>
The ui part of this, where you can create and delete invites are coming in a companion pr for the contacts app. |
use OCP\Migration\IOutput; | ||
use OCP\Migration\SimpleMigrationStep; | ||
|
||
class Version1015Date202502262004 extends SimpleMigrationStep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed it before. When adding a migration you have to bump the version in the apps appinfo/info.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is correct now?
When working on the front end part, I realized we need an event to react to, so I added that. |
I realize that we need to be able to react to accepted invites elsewhere, e.g. contacts app, so adding invite class and event for that purpose. Co-authored-by: Navid Shokri <[email protected]> Signed-off-by: Micke Nordin <[email protected]> Signed-off-by: Navid Shokri <[email protected]>
This needs to be done for migration to take affect Signed-off-by: Micke Nordin <[email protected]>
Summary
This patchset implements the /invite-accepted endpoint
https://cs3org.github.io/OCM-API/docs.html?branch=v1.1.0&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post
A companion PR with UI for creating and otherwise lifecycle manage OCM invites is in the works for the Contacts app, but that work needs this first.