Skip to content

PM-5925 gitea challenge teams - #2193

Merged
vas3a merged 2 commits into
devfrom
PM-5925_gitea-challenge-teams
Aug 27, 2026
Merged

PM-5925 gitea challenge teams#2193
vas3a merged 2 commits into
devfrom
PM-5925_gitea-challenge-teams

Conversation

@vas3a

@vas3a vas3a commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-5925

What's in this PR?

This pull request introduces support for configuring Gitea team synchronization in the challenge editor. It adds the ability to search, select, and persist Gitea teams as part of challenge metadata, along with robust validation and utility functions to ensure data integrity. The changes are well-covered by new unit tests.

Gitea Team Support in Challenge Editor

Constants and Model Definitions:

  • Added GITEA_METADATA_FIELD constant and related search configuration options for Gitea teams in constants.ts and challenge-editor.constants.ts. [1] [2]
  • Introduced the GiteaTeam model to represent Gitea teams, and exported it for use throughout the codebase. [1] [2]

Challenge Editor Form and Validation:

  • Updated ChallengeEditorFormData to include a giteaTeams field, and extended the challenge editor schema to validate uniqueness and presence of required fields for selected Gitea teams. [1] [2]
  • Added comprehensive tests for Gitea team validation in the challenge editor schema.

Gitea Team Search Service:

  • Implemented the searchGiteaTeams service for searching Gitea teams via the API, including normalization and error handling. Exported the service for use. [1] [2]
  • Added unit tests for the Gitea team search service, covering normalization, error handling, and edge cases.

Challenge Metadata Mapping Utilities:

  • Enhanced challenge editor utilities to map Gitea teams to and from challenge metadata, ensuring only unique teams are stored and loaded. Added thorough tests for these utilities. [1] [2] [3] [4] [5]

These changes collectively enable challenges to be linked with Gitea teams, supporting participant synchronization and improving integration with Gitea-based workflows.

@vas3a
vas3a merged commit df8253a into dev Aug 27, 2026
7 checks passed
@vas3a
vas3a deleted the PM-5925_gitea-challenge-teams branch August 27, 2026 10:31
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