Skip to content

Conversation

@ulrikandersen
Copy link
Contributor

@ulrikandersen ulrikandersen commented Apr 28, 2025

Respect remote versions specification ordering from config

Description

Motivation and Context

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Respect remote versions specification ordering from config
Copilot AI review requested due to automatic review settings April 28, 2025 11:09
@ulrikandersen ulrikandersen requested a review from simonbs as a code owner April 28, 2025 11:09
Copy link
Contributor

Copilot AI left a comment

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 refines the ordering of repository specifications so that only file specifications are sorted alphabetically while remote configuration specifications remain in their defined order.

  • Removed the general alphabetical sorting on specifications by eliminating the sortSpecificationsByName mapping.
  • Added an explicit alphabetical sort on file specifications.
  • Introduced a new test to verify that remote configuration specifications retain their order.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/features/projects/data/GitHubProjectDataSource.ts Removed repository-wide alphabetical sorting; added a specific sort on branch/file specifications
test/projects/GitHubProjectDataSource.test.ts Updated test descriptions and added a test to ensure remote specification order is preserved

@ulrikandersen ulrikandersen merged commit 93d60b9 into develop Apr 28, 2025
8 checks passed
@ulrikandersen ulrikandersen deleted the fix/sort-only-repo-specifications branch April 28, 2025 11:12
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.

3 participants