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

chore: update handling for next element id #4695

Merged
merged 11 commits into from
Nov 27, 2024
Merged

chore: update handling for next element id #4695

merged 11 commits into from
Nov 27, 2024

Conversation

timarney
Copy link
Member

@timarney timarney commented Nov 25, 2024

Summary | Résumé

  • Updates how ids are generated for elements
  • Stores the last generated element id in the schema
  • This update handles issues ids we're re-used when an element was removed.
Screenshot 2024-11-26 at 12 49 23 PM

Note:

👉 This update isn't exhaustive for forms built prior to the lastGeneratedElementId existing.

For example it doesn't try to auto-set the lastGeneratedElementId when importing a form. It will update the value once an element is added.

While this should generate "unique" ids for elements the feature PR for question tags will provide a more robust solution
#4694

Copy link
Contributor

Copy link
Contributor

@thiessenp-cds thiessenp-cds left a comment

Choose a reason for hiding this comment

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

LGTM :)

@timarney timarney merged commit 4f481a8 into main Nov 27, 2024
13 checks passed
@timarney timarney deleted the next-element-id branch November 27, 2024 17:40
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.

2 participants