Skip to content

Fixing partner_role_type to be an array during migration#1866

Merged
david-rocca merged 1 commit into
devfrom
jd_monday
Jun 16, 2026
Merged

Fixing partner_role_type to be an array during migration#1866
david-rocca merged 1 commit into
devfrom
jd_monday

Conversation

@jdalphond-mitre

Copy link
Copy Markdown
Collaborator

No issue, Normalize Monday partner role types during migration.

Closes Issue N/A

Summary

Normalizes Monday export cna_role_type values into the BaseOrg.partner_role_type array format expected by the registry schema.

Important Changes

src/scripts/MondayHelpers.js

  • Added valid partner role type enum filtering for Monday migration data.
  • Converts cna_role_type into a deduped array of valid partner_role_type values.
  • Splits string values on commas, semicolons, and newlines.
  • Omits invalid or unrecognized partner role values from migration output.

Testing

Steps to manually test updated functionality, if possible

  • 1) Run npm run migrate:dev:monday with a Monday export containing one or more cna_role_type values.
  • 2) Verify migrated BaseOrg.partner_role_type values are arrays.
  • 3) Verify invalid role values are not written to BaseOrg.

Notes

  • This does not resolve a bug ticket.
  • Valid values are limited to the existing BaseOrg partner role enum.

@david-rocca david-rocca merged commit a6d0939 into dev Jun 16, 2026
9 checks passed
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