Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix(step-details): Sort step's parameters #1536

Merged
merged 1 commit into from Mar 22, 2023

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Mar 22, 2023

At the moment, we're using the same order provided by the backend to present the step's parameter list to the user. Sometimes this is problematic because, for some steps, the required fields are at the end of the list.

This commit sorts the step's parameter list using the following criteria:

1. Move mandatory parameters to the top
2. Sort them alphabetically
3. Sort alphabetically the rest of the parameters

debezium-mongodb

image

fixes #1301

@lordrip lordrip requested a review from a team March 22, 2023 12:09
At the moment, we're using the same order provided from the backend
to present the step's parameter list to the user. Sometimes this is
problematic because for some steps, the required fields are at the
end of the list.

This commit sort the step's parameter list using the following criteria:

    1. Move mandatory parameters to the top
    2. Sort them alphabetically
    3. Sort alphabetically the rest of the parameters

fixes #1301
@sonarcloud
Copy link

sonarcloud bot commented Mar 22, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
62.9% 62.9% Duplication

@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #1536 (6aebeca) into main (b1c6b90) will increase coverage by 0.50%.
The diff coverage is 76.69%.

@@            Coverage Diff             @@
##             main    #1536      +/-   ##
==========================================
+ Coverage   56.46%   56.96%   +0.50%     
==========================================
  Files          64       68       +4     
  Lines        2019     2045      +26     
  Branches      464      468       +4     
==========================================
+ Hits         1140     1165      +25     
- Misses        833      834       +1     
  Partials       46       46              
Impacted Files Coverage Δ
src/types/index.ts 100.00% <ø> (ø)
src/api/apiService.ts 30.00% <33.33%> (+0.45%) ⬆️
src/utils/utils.ts 71.62% <71.62%> (ø)
src/utils/sort-parameters.ts 95.00% <95.00%> (ø)
src/components/VisualizationStepViews.tsx 57.53% <100.00%> (ø)
src/stubs/debezium-mongodb.step.ts 100.00% <100.00%> (ø)
src/stubs/index.ts 100.00% <100.00%> (ø)
src/utils/index.ts 100.00% <100.00%> (+28.37%) ⬆️

... and 5 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kahboom kahboom merged commit dd0157d into KaotoIO:main Mar 22, 2023
10 of 11 checks passed
@lordrip lordrip deleted the fix/sort-step-parameters branch May 6, 2023 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mandatory fields in the step's config panel
2 participants