-
Notifications
You must be signed in to change notification settings - Fork 38
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
MGMT-15151: Refactoring external platform integrations control #2255
MGMT-15151: Refactoring external platform integrations control #2255
Conversation
@ammont82: This pull request references MGMT-15151 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@ammont82: This pull request references MGMT-15151 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
7f78bc9
to
209fb0c
Compare
209fb0c
to
dbb8f19
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.
I think there some extra clean-up to do / additional changes needed:
- Clean-up (there may be more, it's worth checking):
ExternalPartnerIntegrationsCheckbox
is not used anymoreExternalPartnerIntegrationsControl
in Cypress tests + related tests should be adaptedexternalPartnerIntegrations
inOcmClusterDetailsValues
should be removed too?- Do we still need
useClusterSupportedPlatforms
?
- Needs changes:
The Dropdown for the platform integration is editable after the cluster is created, but if it changes, the PATCH request does not contain the change, so changing it does not work.
- Open question:
What's the impact in the Review & Create page? From what I see, the "platform-integration" only has Vsphere and Nutanix. Shouldn't all platforms be displayed there now?
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx
Show resolved
Hide resolved
…ntegration-control
…ntegration-control
please rebase |
The Dropdown for the platform integration is editable after the cluster is created, but if it changes, the PATCH request does not contain the change, so changing it does not work. -> True, I've need to change handleClusterUpdate method.
What's the impact in the Review & Create page? From what I see, the "platform-integration" only has Vsphere and Nutanix. Shouldn't all platforms be displayed there now? -> Asked in JIRA ticket.
|
ca26015
to
4450e26
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.
Needs tests: at the very least to verify that the requests contain the correct values and that the options (especially) are correctly enabled or disabled. Both when creating and updating the cluster.
As for the Review & create page impact, we currently only show that some platform integration has been selected (without any specifics) and the "You will need to modify your platform configuration after cluster installation is completed.
" note. So unless we want to be specific, there are no changes needed. That's a UX question, though.
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
I'm working on the tests. |
What I meant about R&C,is that the note is only for Nutanix and Vsphere. Is it correct not to show anything about OCI in the case it would be activated for a particular cluster? |
...-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts
Outdated
Show resolved
Hide resolved
...-tests/cypress/integration/use-cases/create-cluster/with-external-partner-integrations.cy.ts
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx
Outdated
Show resolved
Hide resolved
…ntegration-control
d860c95
to
db82922
Compare
db82922
to
977dc9a
Compare
libs/ui-lib/lib/ocm/components/clusterConfiguration/ExternalPlatformDropdown.tsx
Outdated
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx
Show resolved
Hide resolved
libs/ui-lib/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx
Show resolved
Hide resolved
@ammont82: This pull request references MGMT-15151 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…ntegration-control
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ammont82, celdrake, jkilzi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
…hift-assisted#2255) * Refactoring external partner integrations control * Disabling Oci option in dropdown * Removing ExternalPartnerIntegrationsCheckbox and adjusting code * Change handleClusterUpdate to take into account changes in platform * Renaming props in ExternalPlatformDropdown * Cleaning code * Adding tests form external platform integration dropdown * Removing unnecessary tests * Removing ASSISTED_INSTALLER_PLATFORM_INTEGRATION_FEATURE feature * Disable dropdown when oci is selected as platform * Adjusting texts for new component * Change in texts and in ExternalPlatformDropdown * Removing console.logs * Remove ClusterPlatformIntegrationHint from footer * Removing setPlatform method from HostDiscoveryService * Disabling custom manifests checkbox when oci option is selected * Change platform accordly with userManagedNetworking activated or not * Solving lint problems * Cleaning code and changing 'None' for 'No platform integration' * Disabling UMN for vSphere option * Adapting tests for external partner integration * Solving problems with translation files * Adapting changes from master * Replacing link for button in external partner integration dropdown * Set clusterPlatform as value of dropdown if exists * Change resetPlatform to correct values * Adapting tests for external partner integrations * Patch correct platform type * Cleaning code * Disable Oracle option when is not supported by some cpu architecture --------- Co-authored-by: Jonathan Kilzi <[email protected]>
Related to https://issues.redhat.com/browse/MGMT-15151
We refactor the partner integrations control, adding a dropdown in cluster details page and removing the switch for platform integration from Hosts discovery step.
platform_integration_case1.mp4
platform_integration_case2.mp4
platform_integration_case3.mp4
We disable 'Oracle' option when IBM/Z architecture was selected. It's related to https://issues.redhat.com/browse/MGMT-14991: