Skip to content

2.8.4 release - #1952

Merged
jdalphond-mitre merged 21 commits into
devfrom
2.8.4-release
Aug 5, 2026
Merged

2.8.4 release#1952
jdalphond-mitre merged 21 commits into
devfrom
2.8.4-release

Conversation

@jdaigneau5

@jdaigneau5 jdaigneau5 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Resolves issues #1843, #1918, #1921, #1928, #1930, and #1933 by merging the 2.8.4 release changes into dev.

Closes Issue #1843, #1918, #1921, #1928, #1930, and #1933

Summary

Merges 2.8.4-release into dev, including registry-route consolidation, legacy endpoint cleanup, ROOT organization relationship management, CVE-ID query projections, and format-flag consistency fixes.

Important Changes

src/controller/registry.controller/

  • Consolidated registry organization and user routes under the canonical registry controller.
  • Added Secretariat-only ROOT organization reports-to management endpoints.
  • Preserved conversation data during registry organization updates.

src/controller/cve-id.controller/cve-id.controller.js

  • Fetches only required organization and user fields when filtering CVE IDs.

src/controller/format.constants.js

  • Standardized legacy versus registry object-format flags across org/user controllers, repositories, and auth helpers.

src/controller/org.controller/ and src/controller/user.controller/

  • Removed legacy registry=true support and unused endpoint/middleware code.

api-docs/openapi.json

  • Updated API documentation for canonical registry routes, deletion responses, and ROOT organization management.

test/

  • Added coverage for ROOT organization relationship management, canonical registry-route behavior, CVE-ID field projections, and user format-flag semantics.

Testing

Steps to manually test updated functionality, if possible

  • Run bash -i -c "npm run test:unit-tests".
  • Run bash -i -c "npm run test:integration".
  • Verify Secretariat can add, reassign, and remove an organization’s ROOT reports_to relationship through the registry API.
  • Verify legacy /api/registryOrg and /api/registryUser routes return 404.

Notes

  • The merge includes one conflict resolution in the registry organization update flow: retain both the conversation payload handling and the standardized REGISTRY_FORMAT flag.

ChenyangLi4288 and others added 21 commits July 13, 2026 11:40
Add optional projection parameters to OrgRepository.getAllOrgs and
UserRepository.getAllUsers so callers can limit returned fields.
getFilteredCveId now fetches only UUID and short_name for orgs, and
UUID, username, and org_UUID for users, instead of entire documents.
…e-id-filter

 Resolves issue #1843, Use field projections in getFilteredCveId.
Closes #1928: Remove legacy registry=true support
Add Secretariat-only endpoints for assigning and removing an
organization’s reports-to relationship with a ROOT organization.

- Add documented POST endpoints to add and remove ROOT `oversees`
  relationships.
- Validate that the overseeing organization has ROOT authority and return
  clear errors when either organization is not found.
- Reassign a reporting organization atomically by removing it from a
  previous ROOT organization before adding the new relationship.
- Audit additions, removals, and reassignments for every affected ROOT
  organization.
- Ignore `oversees` in standard organization PUT requests so reports-to
  relationships can only be managed through the dedicated endpoints.
- Update existing CRUD coverage to verify PUT requests cannot create
  `oversees` or derived `reports_to` relationships.
- Add ROOT organization integration coverage for successful assignment,
  reassignment, removal, invalid non-ROOT parents, missing organizations,
  and Secretariat-only authorization.
Add Secretariat endpoints for ROOT organization reports-to management
Copying in @Ewgna fixes #1918  but without the rebase.

@jdalphond-mitre jdalphond-mitre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All features/bug fixes look good

@jdalphond-mitre
jdalphond-mitre merged commit 23d2bce into dev Aug 5, 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.

4 participants