Add endpoint for fetching projects scorecards #122
Merged
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.
This pull request introduces a new feature for managing and querying project scorecards, along with some refactoring of existing filters and integration tests. The most important changes include the addition of a new repository for project scorecards, updates to the controller to handle scorecard-related requests, and the inclusion of new DTOs and entities for project scorecards.
New Feature: Project Scorecards
api/src/modules/projects/projects-scorecard.repository.ts
: Added a newProjectsScorecardRepository
class to handle project scorecard queries and filtering.api/src/modules/projects/projects.controller.ts
: Updated theProjectsController
to include a new endpoint for fetching project scorecards and integrated the newProjectsScorecardRepository
. [1] [2] [3]api/src/modules/projects/projects.module.ts
: Registered the newProjectsScorecardRepository
in theProjectsModule
.Refactoring Filters
api/src/modules/projects/projects-map.repository.ts
: RenamedProjectMapFilters
toProjectFilters
andOtherMapFilters
toOtherProjectFilters
to standardize filter naming across repositories. [1] [2] [3]shared/dtos/projects/projects-map.dto.ts
: Updated DTOs to reflect the new filter names. [1] [2]Integration Tests
api/test/integration/projects/projects.spec.ts
: Added new tests for the project scorecard endpoint, ensuring proper functionality and filtering.api/test/utils/test-manager.ts
: Enhanced theTestManager
to support creating mock project scorecards for testing purposes. [1] [2] [3]New DTOs and Entities
shared/dtos/projects/projects-scorecard.dto.ts
: IntroducedProjectScorecardDto
for project scorecard data transfer.shared/entities/project-score.enum.ts
: Defined an enumerationPROJECT_SCORE
for project score ratings.shared/entities/project-scorecard.entity.ts
: Created a newProjectScorecard
entity to represent project scorecard data in the database.Contract Updates
shared/contracts/projects.contract.ts
: Updated the contract to include the new project scorecard endpoint and types. [1] [2] [3]