Micke Nordin
b0a523b999
feat(OCM-invites): Fix psalm issues
...
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
8404324774
feat(OCM-invites): Further code style
...
Co-authored-by: Anna <anna@nextcloud.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
6ec00d3df8
feat(OCM-invites): Code style and formatting
...
Use more ideomatic code and use helper functions that exists where possible.
It seems notnull must be false for sqlite to store false Otherwise we get a chrash.
Co-authored-by: Anna <anna@nextcloud.com>
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
a178acfa1c
feat(OCM-invites): Add entity and mapper
...
This patch introduces an entity and a mapper for Invites
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
5999d77893
feat(OCM-invites): Add invitation class and emit event
...
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.
Also rename the migration and bump the version so it will take affect correctly.
Co-authored-by: Navid Shokri <navid.pdp11@gmail.com>
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
bf31fa9dc7
feat(OCM-invites): Address review feedback
...
Codestyle and more ideomatic code
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
668246d380
feat(OCM-invites): Implementation of invitation flow
...
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 <kano@sunet.se>
2025-03-25 16:07:12 +01:00
Micke Nordin
9e09cddf9b
feat(OCM-invites): Add database table federated_invites.
...
Co-authored-by: Navid Shokri <navid.pdp11@gmail.com>
Signed-off-by: Micke Nordin <kano@sunet.se>
2025-03-25 16:07:12 +01:00