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

Provide ENSA version info to Wanda #2088

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Provide ENSA version info to Wanda #2088

merged 5 commits into from
Dec 13, 2023

Conversation

jamie-suse
Copy link
Contributor

@jamie-suse jamie-suse commented Dec 12, 2023

Description

This change enables the frontend to send ENSA version information about the SAP systems belonging to a certain cluster.

Business Logic

Note that the ENSA version value sent is an aggregated value of the ENSA versions present in the SAP systems for a given cluster.

  • If a scenario where the ENSA versions are not completely in agreement, then the value 'mixed_versions' is sent.

  • If the ENSA version info is not present for a SAP system, then 'mixed_versions' is sent.

Some example scenarios are below:

SAP Systems' ENSA versions Result
['ensa1'] 'ensa1'
['ensa2', 'ensa2'] 'ensa2'
['ensa1', 'ensa2'] 'mixed_versions'
['ensa1', undefined] 'mixed_versions'
[undefined] 'mixed_versions'

How was this tested?

Added unit tests

@jamie-suse jamie-suse added enhancement New feature or request javascript Pull requests that update Javascript code labels Dec 12, 2023
@jamie-suse jamie-suse force-pushed the ensa-versions branch 2 times, most recently from 72b2001 to 49e7361 Compare December 12, 2023 15:58
@jamie-suse jamie-suse marked this pull request as ready for review December 13, 2023 09:40
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

Just two tiny thing then we can merge 🎅

assets/js/state/selectors/cluster.js Outdated Show resolved Hide resolved
assets/js/state/selectors/cluster.js Outdated Show resolved Hide resolved
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

Just one additional thing, sorry! And then we can merge 👍

@@ -62,6 +62,8 @@ export const getClusterSapSystems = createSelector(
}
);

export const MIXED_VERSIONS = 'MIXED_VERSIONS';
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry! The value of this should be just 'mixed_versions', the contract that we have with the checks team is shaped like that 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, will revert 👌

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

If the CI is happy I am as well

@jamie-suse jamie-suse merged commit 2629ea0 into main Dec 13, 2023
24 checks passed
@jamie-suse jamie-suse deleted the ensa-versions branch December 13, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

2 participants