Resolves issue #1713 , Implementation of Glossary management#1722
Merged
jdalphond-mitre merged 3 commits intov2.8.0_featurefrom Apr 8, 2026
Merged
Resolves issue #1713 , Implementation of Glossary management#1722jdalphond-mitre merged 3 commits intov2.8.0_featurefrom
jdalphond-mitre merged 3 commits intov2.8.0_featurefrom
Conversation
c892354 to
b2a708d
Compare
Collaborator
|
Tested all endpoints. Works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/