Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Sort rows in Extension configuration status table by configuration name #149

Closed
wants to merge 1 commit into from

Conversation

yurtsevich-sbb
Copy link
Contributor

Sort rows in Extension configuration status table by configuration name

Refs: #148

Proposed changes

Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue using one of the supported keywords here in this description (not in the title of the PR).

Checklist

Before creating a PR, run through this checklist and mark each as complete:

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • I have updated any relevant documentation

@yurtsevich-sbb yurtsevich-sbb requested review from a team as code owners September 2, 2024 15:43
@yurtsevich-sbb yurtsevich-sbb enabled auto-merge (squash) September 2, 2024 15:47
@@ -19,7 +20,7 @@ class ConfigurationStatusProviderTest {
void testGetAllStatuses() {
try (MockedStatic<ContextUtils> contextUtilsMockedStatic = mockStatic(ContextUtils.class)) {
contextUtilsMockedStatic.when(() -> ContextUtils.findSubTypes(any())).thenReturn(Set.of(TestSingleProvider.class, TestMultipleProvider.class));
List<ConfigurationStatus> statuses = ConfigurationStatusProvider.getAllStatuses("some scope");
Collection<ConfigurationStatus> statuses = ConfigurationStatusProvider.getAllStatuses("some scope");
assertEquals(3, statuses.size());
assertTrue(statuses.containsAll(List.of(
Copy link
Contributor

Choose a reason for hiding this comment

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

here we need to check not contains all, but the sequence in alphabetical order. could you please change the validation?

auto-merge was automatically disabled September 2, 2024 17:34

Pull request was closed

@yurtsevich-sbb yurtsevich-sbb deleted the feature/sort_config branch September 2, 2024 17:34
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