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

Ensure that new collection immutable_id is returned upon creation #925

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Oct 12, 2024

Previously, when creating a collection the immutable_id is returned as None, as we do not set the database-assigned ID back to the creation model. As collection relationships work from this ID, it is very helpful to return it, so that another request to get_collection does not need to be made to get the ID (see datalab-org/datalab-api#35) for the required Python API workaround for this).

Copy link

cypress bot commented Oct 12, 2024

datalab    Run #2544

Run Properties:  status check passed Passed #2544  •  git commit e862f2edd7 ℹ️: Merge 7b529ab005f7941213379997afc79f8b13cd91ff into dbcc9edf33e3cede94218f3cc8cc...
Project datalab
Run status status check passed Passed #2544
Run duration 06m 29s
Commit git commit e862f2edd7 ℹ️: Merge 7b529ab005f7941213379997afc79f8b13cd91ff into dbcc9edf33e3cede94218f3cc8cc...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 396

@ml-evs ml-evs marked this pull request as ready for review October 14, 2024 09:32
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ml-evs ml-evs added bug Something isn't working server labels Oct 14, 2024
@ml-evs ml-evs merged commit ea79e31 into main Oct 14, 2024
15 checks passed
@ml-evs ml-evs deleted the ml-evs/fix-create-collections branch October 14, 2024 14:14
BenjaminCharmes pushed a commit that referenced this pull request Oct 15, 2024
…925)

* Add test that new collection ID is returned upon creation

* Make sure that new collection immutable_id is returned upon creation

* Fix typo

* Remove unecessary test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants