Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4c69040
#1843 Use field projections for orgs and users in getFilteredCveId
ChenyangLi4288 Jul 13, 2026
8f28c9f
Merge branch 'dev' into issue-1843-projection-cve-id-filter
david-rocca Jul 15, 2026
c609aaa
Assert getAllOrgs and getAllUsers are called with the expected field …
Jul 16, 2026
e1dd83e
Merge branch 'dev' into issue-1843-projection-cve-id-filter
david-rocca Jul 16, 2026
e0e601b
remove legacy registry=true support
david-rocca Jul 20, 2026
9643c41
Clean up of unused endpoints
david-rocca Jul 20, 2026
85b293a
Remove unused middleware helpers
Jul 22, 2026
c60fd4f
Merge pull request #1916 from ChenyangLi4288/issue-1843-projection-cv…
david-rocca Jul 23, 2026
bab91ee
Merge pull request #1935 from CVEProject/cleanup/dr_1928
jdalphond-mitre Jul 23, 2026
983522d
Merge pull request #1937 from CVEProject/cleanup/dr_1930
jdalphond-mitre Jul 23, 2026
fba7fd3
Align user format flag semantics
Jul 24, 2026
b486aa8
Add Secretariat endpoints for ROOT organization reports-to management
jdalphond-mitre Jul 29, 2026
0b3dccb
Fixing lint issues
jdalphond-mitre Jul 29, 2026
cc9bbc6
Merge pull request #1950 from CVEProject/jd_1933
jdaigneau5 Jul 29, 2026
909b931
Merge pull request #1940 from Ewgna/bugfix/1921-remove-unused-middleware
jdalphond-mitre Aug 4, 2026
43fa07e
Copying in @Ewgna fixes #1918 but without the rebase.
jdalphond-mitre Aug 4, 2026
d72e27a
Merge pull request #1951 from CVEProject/jd_1939
jdalphond-mitre Aug 4, 2026
bafdc94
Add user format flag semantics test
Aug 5, 2026
cf6cfb8
Merge branch '2.8.4-release' into bugfix/standardize-format-flags
jdalphond-mitre Aug 5, 2026
0dac8c1
Update org.registry.controller.js
jdalphond-mitre Aug 5, 2026
b406855
Merge pull request #1948 from Ewgna/bugfix/standardize-format-flags
jdalphond-mitre Aug 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,490 changes: 924 additions & 566 deletions api-docs/openapi.json

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions schemas/registry-org/delete-registry-org-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://cve.mitre.org/schema/registry-org/delete-registry-org-response.json",
"type": "object",
"title": "CVE Delete Registry Org Response",
"description": "JSON Schema for a successful registry organization deletion response",
"properties": {
"message": {
"type": "string",
"description": "Confirmation that the registry organization was deleted"
}
},
"required": [
"message"
],
"additionalProperties": false
}
17 changes: 17 additions & 0 deletions schemas/registry-user/delete-registry-user-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://cve.mitre.org/schema/registry-user/delete-registry-user-response.json",
"type": "object",
"title": "CVE Delete Registry User Response",
"description": "JSON Schema for a successful registry user deletion response",
"properties": {
"message": {
"type": "string",
"description": "Confirmation that the registry user was deleted"
}
},
"required": [
"message"
],
"additionalProperties": false
}
5 changes: 3 additions & 2 deletions src/controller/cve-id.controller/cve-id.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ async function getFilteredCveId (req, res, next) {
const requesterOrgUUID = await authContext.getRequesterOrgUUID(req, orgRepo)

// Create map of orgUUID to shortnames and users to simplify aggregation later
const orgs = await orgRepo.getAllOrgs()
const users = await userRepo.getAllUsers()
// Only project the fields needed for the maps to avoid fetching full documents
const orgs = await orgRepo.getAllOrgs({}, { UUID: 1, short_name: 1, _id: 0 })
const users = await userRepo.getAllUsers({}, { UUID: 1, username: 1, org_UUID: 1, _id: 0 })

const orgMap = {}
const userMap = {}
Expand Down
7 changes: 7 additions & 0 deletions src/controller/format.constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const LEGACY_FORMAT = true
const REGISTRY_FORMAT = false

module.exports = {
LEGACY_FORMAT,
REGISTRY_FORMAT
}
Loading
Loading