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

[RHOAIENG-5497] Enable the landing page #2767

Merged

Conversation

jeff-phillips-18
Copy link
Contributor

Closes: RHOAIENG-5497

Description

Changes the default for disableHome to true in the dashboard config thus enabling the new Landing Page by default.

How Has This Been Tested?

Tested locally

Test Impact

Updated tests to verify that the default state shows the landing page.

Request review criteria:

  • The developer has manually tested the changes and verified that the changes work
  • Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

@andrewballantyne
Copy link
Member

/hold

Needs a review from PM before we enable it for the product.

@openshift-ci openshift-ci bot added the do-not-merge/hold This PR is hold for some reason label May 1, 2024
visit(homeEnabled = false) {
cy.visit(homeEnabled ? '/enabled' : '/');
visit() {
cy.visit('/enabled');
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why you changed this... the home page can still be disabled

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 could add it back but it's not set in any of the callers.

Copy link
Member

Choose a reason for hiding this comment

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

You had a test to make sure the URL redirect was properly tested with and without the feature enabled. I'm feeling you had to have dropped something or we are missing something if it's no longer used.

This cannot be right I would think 🤔 Not sure where the gap is...

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 changed the test to verify that / takes you to the enabled page if the flag is disabled:
https://github.com/opendatahub-io/odh-dashboard/pull/2767/files#diff-34ec9e23c634748dc1ed7b69552b385bf9a11a5a746b7e4779c48e3302f9699aR19

@jeff-phillips-18 jeff-phillips-18 force-pushed the home-page-enable branch 2 times, most recently from c0a45ba to ff9d516 Compare May 2, 2024 17:47
Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.40%. Comparing base (1c223b6) to head (add90d9).
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2767      +/-   ##
==========================================
- Coverage   77.40%   77.40%   -0.01%     
==========================================
  Files        1101     1101              
  Lines       23176    23176              
  Branches     5843     5843              
==========================================
- Hits        17940    17939       -1     
- Misses       5236     5237       +1     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1c223b6...add90d9. Read the comment docs.

Copy link
Contributor

openshift-ci bot commented May 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne

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

@andrewballantyne andrewballantyne removed the do-not-merge/hold This PR is hold for some reason label May 22, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit bac0976 into opendatahub-io:main May 22, 2024
8 checks passed
@jeff-phillips-18 jeff-phillips-18 deleted the home-page-enable branch May 22, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants