Skip to content

Resolves issue #1829, Allows registry org partner active/inactive dates to be edited directly.#1832

Merged
afoote-mitre merged 3 commits into
devfrom
dr_1829
Jun 3, 2026
Merged

Resolves issue #1829, Allows registry org partner active/inactive dates to be edited directly.#1832
afoote-mitre merged 3 commits into
devfrom
dr_1829

Conversation

@david-rocca

@david-rocca david-rocca commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Closes Issue #1829

Summary

Removed update-time automation that overwrote program_data.partner_active_date and program_data.partner_inactive_date, so registry org updates now persist the values provided by the requester.

Important Changes

src/repositories/baseOrgRepository.js

  • Removed the update-time call that automatically recalculated partner status dates.

src/repositories/baseOrgRepositoryHelpers.js

  • Removed the unused automateProgramDataDates helper.

test/integration-tests/registry-org/registryOrgCRUDTest.js

  • Added regression coverage for editing partner_active_date.
  • Added regression coverage for editing partner_inactive_date.
  • Added coverage confirming status changes no longer generate a partner date when one is not provided.

Testing

Steps to manually test updated functionality, if possible

  • 1) Update a registry org with program_data.status: "active" and a custom partner_active_date; verify the response returns the provided date.
  • 2) Update a registry org with program_data.status: "inactive" and a custom partner_inactive_date; verify the response returns the provided date.
  • 3) Change program_data.status without passing a partner date; verify no partner date is auto-generated.

Automated testing performed:

  • [] bash -i -c "npm run test:integration" passed with 409 passing.

Notes

  • Create-time default date behavior was intentionally left unchanged.

@david-rocca david-rocca changed the title remove some of the automagic from the program data dates Resolves issue #1829, Allows registry org partner active/inactive dates to be edited directly. Jun 3, 2026
@afoote-mitre afoote-mitre merged commit 1fdd5bb into dev Jun 3, 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