-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
httpsPort: faker.internet.port(), | ||
instanceHostname: faker.hacker.noun(), | ||
instanceNumber: faker.datatype.number({ min: 10, max: 99 }).toString(), | ||
host_id: faker.datatype.uuid(), |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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.
560dc67
to
d0e1ee0
Compare
There was a problem hiding this 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 👍
There was a problem hiding this 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 👍
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.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