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

fix: migration 1.4.x #7821

Open
wants to merge 3 commits into
base: 1.4.x
Choose a base branch
from
Open

fix: migration 1.4.x #7821

wants to merge 3 commits into from

Conversation

TorstenDittmann
Copy link
Contributor

What does this PR do?

  • added error handling to enum attribute migration
  • improved queries used with the document iterator

Test Plan

  • manual

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

Couple of comments. Otherwise, looks good

Comment on lines +155 to +156
* Migratte attribute document on collection
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Migratte attribute document on collection
*/
* Migrate attribute document on collection
*/

$this->documentsIterator('attributes', [
Query::equal('format', ['enum']),
Query::lessThan('size', Database::LENGTH_KEY)
]) as $attribute
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen cases where iterating over attributes can fail because using the document ID can be too long and fails the cursor ID validation (see #6196). Should we be worried?

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.

None yet

2 participants