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(OCM-invites): Implementation of invitation flow for OCM 1.1.0 #51113

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

mickenordin
Copy link
Contributor

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.

Co-authored-by: Navid Shokri <[email protected]>
Signed-off-by: Micke Nordin <[email protected]>
Signed-off-by: Navid Shokri <[email protected]>
Copy link
Member

@nickvergessen nickvergessen left a 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?

mickenordin and others added 6 commits February 28, 2025 08:39
…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]>
@mickenordin
Copy link
Contributor Author

Where is this table written? I only see a single SELECT and an UPDATE, but no INSERT?

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
Copy link
Member

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

Copy link
Contributor Author

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?

@mickenordin
Copy link
Contributor Author

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]>
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 enhancement
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

Implement OCM v1.1
3 participants