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

Don't fail if 'id' is missing from an object. #464

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

msullivan
Copy link
Member

The goal here is to give us the freedom to drop 'id' from FreeObject.

The goal here is to give us the freedom to drop 'id' from FreeObject.
@msullivan msullivan merged commit e19be86 into master Oct 12, 2023
41 checks passed
@msullivan msullivan deleted the no-require-id branch October 12, 2023 16:22
fantix pushed a commit that referenced this pull request Jan 9, 2024
The goal here is to give us the freedom to drop 'id' from FreeObject.
fantix added a commit that referenced this pull request Jan 9, 2024
Fixes
=====

* Fix test that broke due to error message change (#465)
  (by @msullivan in fed7b24 for #465)

* Don't fail if 'id' is missing from an object. (#464)
  (by @msullivan in be2de71 for #464)

* docs: Fix typos is docs (#467)
  (by @elliotwaite in b4d91b9 for #467)

* Fix for Pydantic 2.x (#468)
  (by @fantix in c6581cb for #468)
@fantix fantix mentioned this pull request Jan 9, 2024
@aljazerzen aljazerzen mentioned this pull request Feb 23, 2024
msullivan added a commit to edgedb/edgedb that referenced this pull request Apr 2, 2024
We do this by making FreeObject not extend BaseObject.

FreeObject ids are currently generated; this is not particularly
useful and requires some machinations to make work correctly.

Having FreeObject not have ids makes them more sensible, I think,
especially once we are going to support taking them as input.

This breaks compatibility but probably not in a way many people depend
on.

It might require some fixes to bindings. I fixed the python bindings a
while ago in prep for
this. (edgedb/edgedb-python#464)
msullivan added a commit to edgedb/edgedb that referenced this pull request Apr 2, 2024
We do this by making FreeObject not extend BaseObject.

FreeObject ids are currently generated; this is not particularly
useful and requires some machinations to make work correctly.

Having FreeObject not have ids makes them more sensible, I think,
especially once we are going to support taking them as input.

This breaks compatibility but probably not in a way many people depend
on.

It might require some fixes to bindings. I fixed the python bindings a
while ago in prep for
this. (edgedb/edgedb-python#464)
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.

3 participants