Skip to content

PM-5499 extend shocase post#29

Open
vas3a wants to merge 8 commits into
devfrom
PM-5499_extend-shocase-post
Open

PM-5499 extend shocase post#29
vas3a wants to merge 8 commits into
devfrom
PM-5499_extend-shocase-post

Conversation

@vas3a

@vas3a vas3a commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

This pull request introduces enhanced integration with external Topcoder APIs to enrich project showcase posts with additional challenge metadata, such as the number of submissions, registrants, skills, track, and participating countries. It also improves filtering capabilities for industries and categories and updates the API response structure accordingly. The most important changes are as follows:

Integration with External APIs and Metadata Enrichment:

  • Added new dependencies for Topcoder challenge, member, resource, and skills DBs in package.json to enable fetching external challenge data.
  • Implemented the ChallengeMetadataDto and logic in ProjectShowcasePostService to aggregate challenge metadata (submissions, registrants, skills, track, countries) for each showcase post by querying the specific databases.

Configuration Updates:

  • Added new environment variables in .env.example for external database URLs required.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enriches project showcase post responses by aggregating Topcoder challenge metadata from external databases and expands filtering documentation for industries/categories.

Changes:

  • Added external Prisma client helpers for Topcoder challenge/member/resource/skills databases.
  • Updated ProjectShowcasePostService to load and attach per-challenge metadata (submissions, registrants, skills, track, countries) to showcase post DTOs.
  • Updated API DTOs/Swagger decorators and tests to reflect the enriched response and array-based filtering docs.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/shared/global/external-prisma.client.ts Adds lazy singleton external Prisma clients and env-driven DB URL wiring.
src/api/project-showcase-post/project-showcase-post.service.ts Loads external challenge metadata and adds projectTitle/challengeMetadata to responses.
src/api/project-showcase-post/project-showcase-post.service.spec.ts Mocks external Prisma clients and asserts metadata-related queries are made.
src/api/project-showcase-post/project-showcase-post.controller.ts Updates Swagger query documentation to indicate array inputs for industry/category filters.
src/api/project-showcase-post/dto/project-showcase-post-response.dto.ts Extends response schema with projectTitle and challengeMetadata.
src/api/project-showcase-post/dto/project-showcase-post-list-query.dto.ts Updates Swagger metadata for industry/category filters to show array typing.
src/api/project-showcase-post/dto/challenge-metadata.dto.ts Introduces DTO for aggregated challenge metadata payload.
package.json Adds Topcoder API repos as dependencies to access their Prisma clients.
.env.example Adds required external DB URL environment variables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/shared/global/external-prisma.client.ts Outdated
Comment thread src/api/project-showcase-post/dto/project-showcase-post-response.dto.ts Outdated
Comment thread src/api/project-showcase-post/project-showcase-post.service.ts Outdated
Comment thread src/api/project-showcase-post/project-showcase-post.service.spec.ts
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