Skip to content

Conversation

@daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Mar 20, 2025

Datastore v2.20.2 made a change to how the meaning field for lists is recorded. Previously, the meaning field was saved for each element in the array, but the array itself wouldn't have a root meaning recorded. After v2.20.2, the meaning was stored as a tuple of (root_meaning, sub_meaning_list)

This PR fixed the ndb library's meaning parser to support both the new and old formats, and adds tests for both formats

Fixes #1006, #1005

@daniel-sanche daniel-sanche requested review from a team as code owners March 20, 2025 22:28
@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-ndb API. label Mar 20, 2025
@daniel-sanche daniel-sanche marked this pull request as draft March 21, 2025 21:52
@daniel-sanche
Copy link
Contributor Author

It looks like this change also requires a backwards-compatibility fix on the datastore side. I opened googleapis/python-datastore#603

We can merge this after the datastore PR is merged and released. Marking as draft

I also marked the problematic datastore version as not supported in setup.py

@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 25, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 25, 2025
@daniel-sanche daniel-sanche added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 25, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 25, 2025
@daniel-sanche daniel-sanche marked this pull request as ready for review April 26, 2025 00:01
@daniel-sanche
Copy link
Contributor Author

googleapis/python-datastore#603 has been merged, so this is ready to go

@daniel-sanche daniel-sanche changed the title fix: support sub-meanings for datastore v2.20.2 fix: support sub-meanings for datastore v2.20.3 Apr 26, 2025
@daniel-sanche daniel-sanche merged commit 88f14fa into main Apr 26, 2025
6 checks passed
@daniel-sanche daniel-sanche deleted the fix_meanings branch April 26, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the googleapis/python-ndb API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unit.test_model.TestBlobProperty: test__from_datastore_compressed_repeated_to_uncompressed failed

4 participants