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

Display ENSA version frontend #1515

Merged
merged 6 commits into from
Jun 15, 2023
Merged

Display ENSA version frontend #1515

merged 6 commits into from
Jun 15, 2023

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Jun 13, 2023

Description

Frontend part for ENSA replication. Next for: #1512
Basically, get and use the ensa_version field. For that, we need to get with the selector the SAP systems belong to this cluster, which could be multiple in a multi-sid cluster.

ensa

PD: I have changed one of the factories. We have some mess in how we use some of the selectors for sap systems, as we camel case some of the entries some few times, but only for this domain part

How was this tested?

Tested

@arbulu89 arbulu89 added the enhancement New feature or request label Jun 13, 2023
httpsPort: faker.internet.port(),
instanceHostname: faker.hacker.noun(),
instanceNumber: faker.datatype.number({ min: 10, max: 99 }).toString(),
host_id: faker.datatype.uuid(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed this factory, as it was before, was not creating data as we store in the redux store. It was using as it comes the GenericSystemDetails view page.
Just to make it more generic, now it replicates the data coming from the web.


import { GenericSystemDetails } from './GenericSystemDetails';

describe('GenericSystemDetails', () => {
it('should render correctly', () => {
const title = faker.datatype.uuid();
const sapSystem = sapSystemFactory.build();
const sapSystem = keysToCamel(sapSystemFactory.build());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The change on the factory forces me to adapt this a little.

@arbulu89 arbulu89 changed the title Display ensa version frontend Display ENSA version frontend Jun 13, 2023
@arbulu89 arbulu89 force-pushed the display-ensa-version-frontend branch from 560dc67 to d0e1ee0 Compare June 13, 2023 12:34
@arbulu89 arbulu89 marked this pull request as ready for review June 14, 2023 14:16
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 nitpick then we can merge 👍

Copy link
Contributor

@rtorrero rtorrero left a comment

Choose a reason for hiding this comment

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

Good stuff @arbulu89. I think changing the factory to settle for snake_case instead of having a mix of both snake_case and camelCase was the right call. For the rest of the PR, no comments on my side 👍

@arbulu89 arbulu89 merged commit 06ffd5a into main Jun 15, 2023
@arbulu89 arbulu89 deleted the display-ensa-version-frontend branch June 15, 2023 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

4 participants