Skip to content

Resolves issue #1713 , Implementation of Glossary management#1722

Merged
jdalphond-mitre merged 3 commits intov2.8.0_featurefrom
dr_1713
Apr 8, 2026
Merged

Resolves issue #1713 , Implementation of Glossary management#1722
jdalphond-mitre merged 3 commits intov2.8.0_featurefrom
dr_1713

Conversation

@david-rocca
Copy link
Copy Markdown
Collaborator

Closes issue #1713

Summary
This PR introduces a new Glossary management capability for the CVE services, allowing Secretariats to manage technical terms and definitions. It also addresses multiple AJV strict mode warnings by explicitly defining types in the JSON schemas and seeds the initial glossary data.

Important Changes
src/model/glossary.js [NEW]

Defined Mongoose schema for Glossary items using services_short_name as a unique identifier.
src/repositories/glossaryRepository.js [NEW]

Implemented repository layer for Glossary CRUD operations with internal field exclusion.
src/controller/glossary.controller/ [NEW]

Created controller and routes for Glossary management (Secretariat only access).
Implemented wrapped response formats for creation and updates.
schemas/glossary/ [NEW]

Added JSON schemas for glossary items and wrapped responses.
datadump/pre-population/glossary.json [NEW]

Added initial seed data for the glossary.
src/scripts/populate.js

Integrated Glossary collection into the database population and indexing process.
src/middleware/schemas/

@jdalphond-mitre
Copy link
Copy Markdown
Collaborator

Tested all endpoints. Works.

@jdalphond-mitre jdalphond-mitre merged commit b63a31b into v2.8.0_feature Apr 8, 2026
17 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