move Set TechPreviewNoUpgrade on the target cluster to networking step#2918
Conversation
Signed-off-by: Elay Aharoni <elayaha@gmail.com>
WalkthroughThis change moves the logic for conditionally updating the cluster's install configuration based on a feature flag from the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NetworkConfigurationForm
participant ClustersAPI
participant Redux
participant Wizard
User->>NetworkConfigurationForm: Clicks "Next"
NetworkConfigurationForm->>NetworkConfigurationForm: onNext()
alt Feature flag enabled
NetworkConfigurationForm->>ClustersAPI: updateInstallConfig(clusterId, payload)
alt API call succeeds
NetworkConfigurationForm->>Wizard: moveNext()
else API call fails
NetworkConfigurationForm->>NetworkConfigurationForm: Show alert
alt Unknown server error
NetworkConfigurationForm->>Redux: setServerUpdateError()
end
end
else Feature flag disabled
NetworkConfigurationForm->>Wizard: moveNext()
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
libs/ui-lib/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "@openshift-assisted/eslint-config" to extend from. Please check that the name of the config is correct. The config "@openshift-assisted/eslint-config" was referenced from the config file in "/libs/ui-lib/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. libs/ui-lib/lib/ocm/components/clusterWizard/HostDiscovery.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "@openshift-assisted/eslint-config" to extend from. Please check that the name of the config is correct. The config "@openshift-assisted/eslint-config" was referenced from the config file in "/libs/ui-lib/.eslintrc.cjs". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ElayAharoni, rawagner The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
845a8eb
into
openshift-assisted:master
openshift-assisted#2918) Signed-off-by: Elay Aharoni <elayaha@gmail.com>
move Set TechPreviewNoUpgrade on the target cluster to networking step
Summary by CodeRabbit
New Features
Refactor