Skip to content

[Cosmos] fix resource validation to allow longer strings#36569

Merged
simorenoh merged 6 commits intoAzure:mainfrom
simorenoh:regex-fix-cosmos
Jul 24, 2024
Merged

[Cosmos] fix resource validation to allow longer strings#36569
simorenoh merged 6 commits intoAzure:mainfrom
simorenoh:regex-fix-cosmos

Conversation

@simorenoh
Copy link
Copy Markdown
Member

Issue #35044 pointed out that we accidentally introduced a limit of 255 characters for all resource ids even though our public docs mention item ids can have up to 1023: https://learn.microsoft.com/en-us/azure/cosmos-db/concepts-limits#per-item-limits

This PR makes the validation not worry about size, since the service will always validate that for each resource.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@simorenoh simorenoh marked this pull request as ready for review July 23, 2024 17:06
Comment thread sdk/cosmos/azure-cosmos/test/test_resource_id.py
Copy link
Copy Markdown
Member

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

Copy link
Copy Markdown
Member

@bambriz bambriz left a comment

Choose a reason for hiding this comment

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

Thanks Simon, LGTM.

@simorenoh simorenoh merged commit e543f2c into Azure:main Jul 24, 2024
@simorenoh simorenoh deleted the regex-fix-cosmos branch July 24, 2024 19:03
l0lawrence pushed a commit to l0lawrence/azure-sdk-for-python that referenced this pull request Feb 19, 2025
* relevant changes

* Update CHANGELOG.md

* Update test_resource_id.py

* Update test_resource_id_async.py

* test fixes

* test fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants