Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

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

Merged
daniel-sanche merged 5 commits into
mainfrom
fix_update_path_parse
Feb 24, 2025
Merged

fix: client-side path validation for batch.update#1021
daniel-sanche merged 5 commits into
mainfrom
fix_update_path_parse

Conversation

@daniel-sanche

@daniel-sanchedaniel-sanche commented Feb 20, 2025

Copy link
Copy Markdown
Contributor

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 teamFebruary 20, 2025 20:25
@product-auto-labelproduct-auto-labelBot added the size: s Pull request size is small. label Feb 20, 2025
@product-auto-labelproduct-auto-labelBot added the api: firestore Issues related to the googleapis/python-firestore API. label Feb 20, 2025
@daniel-sanchedaniel-sanche changed the title [DRAFT] fix: improper client-side path validation for batch.update[DRAFT] fix: client-side path validation for batch.updateFeb 20, 2025
@daniel-sanchedaniel-sanche changed the title [DRAFT] fix: client-side path validation for batch.updatefix: client-side path validation for batch.updateFeb 20, 2025
@daniel-sanche
daniel-sanche merged commit 3b7595b into mainFeb 24, 2025
@daniel-sanche
daniel-sanche deleted the fix_update_path_parse branch February 24, 2025 23:35
@release-pleaserelease-pleaseBot mentioned this pull request Feb 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: firestoreIssues related to the googleapis/python-firestore API.size: sPull 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

@daniel-sanche@danieljbruce@cindy-peng