Skip to content

Update to use new routes for group creation. #5543

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

Merged

Conversation

shaunrd0
Copy link
Member

@shaunrd0 shaunrd0 commented Jun 11, 2025

Recently the route for group creation was updated from {workspace}/{teamspace} POST to {workspace}/{teamspace}/{group} POST. This updates post_group_create_to_rest to call the new endpoint if we are not communicating with a legacy REST server.

It also updates two group routes that were moved under /contents for the new server.


TYPE: BUG
DESC: Update to use new route for group creation.

@shaunrd0 shaunrd0 requested a review from ypatia June 11, 2025 20:07
@shaunrd0 shaunrd0 force-pushed the shaunreed/core-251-update-endpoint-for-post_group_create_to_rest branch from 0acbc4f to 0066bfc Compare June 11, 2025 20:08
@shaunrd0
Copy link
Member Author

The endpoint has been changed which causes a 404 when creating a group. But it looks like the new endpoint is not using full URIs like we have in the past for other endpoints, instead it's using a group path like parent_group/child/. The full group URI is still serialized in GroupCreateDetails. Flipping this to draft since this PR isn't quite right yet.

@shaunrd0 shaunrd0 marked this pull request as draft June 11, 2025 21:03
@ypatia
Copy link
Member

ypatia commented Jun 12, 2025

The endpoint has been changed which causes a 404 when creating a group. But it looks like the new endpoint is not using full URIs like we have in the past for other endpoints, instead it's using a group path like parent_group/child/. The full group URI is still serialized in GroupCreateDetails. Flipping this to draft since this PR isn't quite right yet.

We need to work with Server folks to understand why this change to the group routes was needed and what are the implications. This affects more than just group create, I think it affects pretty much all group operations at this point. Let's investigate so that we resort to changes in Core as a last choice.

@ypatia ypatia force-pushed the shaunreed/core-251-update-endpoint-for-post_group_create_to_rest branch from 0066bfc to 8a4b31b Compare June 25, 2025 10:24
@ypatia ypatia force-pushed the shaunreed/core-251-update-endpoint-for-post_group_create_to_rest branch from cfb4b89 to b78a65c Compare June 25, 2025 11:26
@ypatia ypatia marked this pull request as ready for review June 25, 2025 11:33
@ypatia
Copy link
Member

ypatia commented Jun 25, 2025

I think now this PR addresses all required changes for groups, however I have found issues while testing manually end to end. I have documented the issues here. They are namely errors in adding group members and in creating groups with default storage.
I believe those should all be server issues, but we need to investigate further and resolve before this can be merged I think. I haven't yet run REST-CI against the server, I don't have a setup in hand and I think this can wait until we have resolved the issues I found first.

@ypatia ypatia changed the title Update to use new route for group creation. Update to use new routes for group creation. Jun 25, 2025
@ypatia ypatia self-assigned this Jun 26, 2025
Copy link
Member Author

@shaunrd0 shaunrd0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't approve since I created the PR, but LGTM 👍 Thanks!

@ypatia
Copy link
Member

ypatia commented Jul 7, 2025

@shaunrd0 let me know if you are ok with my latest changes and I'll approve and merge.

@shaunrd0
Copy link
Member Author

shaunrd0 commented Jul 7, 2025

LGTM, thanks!

@ypatia ypatia merged commit 1943271 into main Jul 8, 2025
56 checks passed
@ypatia ypatia deleted the shaunreed/core-251-update-endpoint-for-post_group_create_to_rest branch July 8, 2025 08:03
shaunrd0 added a commit to shaunrd0/TileDB that referenced this pull request Jul 10, 2025
)

Recently the route for group creation was updated from
`{workspace}/{teamspace} POST` to `{workspace}/{teamspace}/{group}
POST`. This updates `post_group_create_to_rest` to call the new endpoint
if we are not communicating with a legacy REST server.

It also updates two group routes that were moved under `/contents` for
the new server.

---
TYPE: BUG
DESC: Update to use new route for group creation.

---------

Co-authored-by: Ypatia Tsavliri <[email protected]>
@ypatia
Copy link
Member

ypatia commented Jul 11, 2025

/backport to release-2.28

Copy link
Contributor

Started backporting to release-2.28: https://github.com/TileDB-Inc/TileDB/actions/runs/16214577327

ypatia added a commit that referenced this pull request Jul 11, 2025
…5543) (#5581)

Recently the route for group creation was updated from
`{workspace}/{teamspace}` POST to `{workspace}/{teamspace}/{group}`
POST. This updates `post_group_create_to_rest` to call the new endpoint
if we are not communicating with a legacy REST server.

It also updates two group routes that were moved under `/contents` for
the new server.

---
TYPE: BUG
DESC: Update to use new route for group creation.

---------

Co-authored-by: Shaun Reed <[email protected]>
Co-authored-by: Ypatia Tsavliri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants