Skip to content

feat(DF-922): read form version from definition metadata#340

Open
mokhld wants to merge 4 commits intomainfrom
feat/df-922-version-metadata-refactor
Open

feat(DF-922): read form version from definition metadata#340
mokhld wants to merge 4 commits intomainfrom
feat/df-922-version-metadata-refactor

Conversation

@mokhld
Copy link
Contributor

@mokhld mokhld commented Mar 24, 2026

Proposed change

Reads $$__formVersion from the form definition metadata, injected by forms-manager, instead of metadata.versions for version tracking and falls back to metadata.versions in the adapter output for backward compatibility, until this is stable in prod then we can look to remove it.

Jira ticket:

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

mokhld added 3 commits March 24, 2026 15:33
Use $$__formVersion from form definition metadata as the source of truth for version metadata in form context and adapter v1 payloads, with tests covering fallback precedence.
@mokhld mokhld marked this pull request as ready for review March 24, 2026 17:00
@sonarqubecloud
Copy link

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.

1 participant