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

CONSOLE-4056: Check if GettingStartedBanner capability is enabled #14285

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

jhadvig
Copy link
Member

@jhadvig jhadvig commented Sep 12, 2024

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Edit: Upon capabilities change the Web console update is available popup should be rendered in order to notify user to refresh the page.

Also Adding e2e test.

/assign @cyril-ui-developer

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 12, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2024
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/dashboard Related to dashboard approved Indicates a PR has been approved by an approver from all required OWNERS files. component/shared Related to console-shared kind/cypress Related to Cypress e2e integration testing labels Sep 12, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

In response to this:

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Also Adding e2e test.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

In response to this:

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Also Adding e2e test.

/assign @cyril-ui-developer

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 openshift-eng/jira-lifecycle-plugin repository.

@jhadvig jhadvig force-pushed the CONSOLE-4056 branch 2 times, most recently from 5683aaf to e7eb888 Compare September 12, 2024 19:45
@jhadvig jhadvig changed the title [WIP] CONSOLE-4056: Check if GettingStartedBanner capability is enabled CONSOLE-4056: Check if GettingStartedBanner capability is enabled Sep 12, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 12, 2024
@jhadvig
Copy link
Member Author

jhadvig commented Sep 13, 2024

/retest

dispatch(
setFlag(
FLAGS.CONSOLE_CAPABILITY_GETTINGSTARTEDBANNER_IS_ENABLED,
gettingStartedBannerCapability?.visibility?.state === 'Enabled' ? true : false,
Copy link
Contributor

@cyril-ui-developer cyril-ui-developer Sep 13, 2024

Choose a reason for hiding this comment

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

Looks good, except for this nit: I think the ternary operator is unnecessary in this case since the expression gettingStartedBannerCapability?.visibility?.state === 'Enabled' always evaluates to a boolean value.

@openshift-ci openshift-ci bot added the component/backend Related to backend label Sep 17, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 17, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

In response to this:

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Edit: Upon capabilityies change the Web console update is available popup should be rendered in order to notify user to refresh the page.

Also Adding e2e test.

/assign @cyril-ui-developer

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 17, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

In response to this:

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Edit: Upon capabilities change the Web console update is available popup should be rendered in order to notify user to refresh the page.

Also Adding e2e test.

/assign @cyril-ui-developer

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 openshift-eng/jira-lifecycle-plugin repository.

const consoleCommitChanged = prevUpdateData?.consoleCommit !== updateData?.consoleCommit;
if (stateInitialized && consoleCommitChanged && !consoleChanged) {

if (stateInitialized && (consoleCommitChanged || consoleCapabilitiesChanged) && !consoleChanged) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the addition have be included in the story AC?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, I've just noticed it when addressing your comment 👍

@cyril-ui-developer
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 17, 2024
Copy link
Contributor

openshift-ci bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cyril-ui-developer, jhadvig

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jhadvig
Copy link
Member Author

jhadvig commented Sep 18, 2024

QE Approver:
/assign @yapei
Docs Approver:
/assign @opayne1
PX Approver:
/assign @reestr

@reestr
Copy link

reestr commented Sep 18, 2024

/label px-approved

@openshift-ci openshift-ci bot added the px-approved Signifies that Product Support has signed off on this PR label Sep 18, 2024
@opayne1
Copy link
Contributor

opayne1 commented Sep 18, 2024

/label docs-approved

@openshift-ci openshift-ci bot added the docs-approved Signifies that Docs has signed off on this PR label Sep 18, 2024
@XiyunZhao
Copy link

@jhadvig one some question, if I change the value of GettingStartedBanner using SERVER_FLAGS.capabilities[1].visibility.state='Enabled', will it take effect on the Console?

@jhadvig
Copy link
Member Author

jhadvig commented Sep 23, 2024

@XiyunZhao no a manual change is not being reflected in the console.

@XiyunZhao
Copy link

Thanks for the quick reply, no other issue was found on this PR
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Sep 23, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 23, 2024

@jhadvig: This pull request references CONSOLE-4056 which is a valid jira issue.

In response to this:

Adding implementation to check the SERVER_FLAGS.capabilities, if the GettingStartedBanner visibility is:

  • Enabled which will render the banner
  • Disabled which will not render the banner

Edit: Upon capabilities change the Web console update is available popup should be rendered in order to notify user to refresh the page.

Also Adding e2e test.

/assign @cyril-ui-developer

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 475b98e and 2 for PR HEAD c1dec6c in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD ef9c3fc and 2 for PR HEAD c1dec6c in total

Copy link
Contributor

openshift-ci bot commented Sep 24, 2024

@jhadvig: all tests passed!

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit ad4a32b into openshift:master Sep 24, 2024
6 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

Distgit: openshift-enterprise-console
This PR has been included in build openshift-enterprise-console-container-v4.18.0-202409240640.p0.gad4a32b.assembly.stream.el9.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/backend Related to backend component/core Related to console core functionality component/dashboard Related to dashboard component/shared Related to console-shared docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/cypress Related to Cypress e2e integration testing lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants