Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: client-side path validation for batch.update #1021

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
merged 5 commits into from
Feb 24, 2025

Conversation

daniel-sanche
Copy link
Contributor

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

The _LEADING_ALPHA_INVALID check is too broad, triggering for more characters than the ones reported in the docstring. This is causing downstream issues, like preventing unquoted references to uuid fields. This PR reduces the scope of the validation, to check only against the invalid characters mentioned in the FieldPath.from_string docstring

Fixes #1012

@daniel-sanche daniel-sanche requested review from a team as code owners February 20, 2025 20:25
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 20, 2025
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Feb 20, 2025
@daniel-sanche daniel-sanche changed the title [DRAFT] fix: improper client-side path validation for batch.update [DRAFT] fix: client-side path validation for batch.update Feb 20, 2025
@daniel-sanche daniel-sanche changed the title [DRAFT] fix: client-side path validation for batch.update fix: client-side path validation for batch.update Feb 20, 2025
@daniel-sanche daniel-sanche merged commit 3b7595b into main Feb 24, 2025
22 checks passed
@daniel-sanche daniel-sanche deleted the fix_update_path_parse branch February 24, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/python-firestore API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FieldPath.from_string does not accept UUIDs
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.