Skip to content

Conversation

GilbertCherrie
Copy link
Member

@GilbertCherrie GilbertCherrie commented Jul 16, 2025

Fixes: #9513

Fixes the issue with the start page in the settings being saved but not actually working when logging into the application.

@miq-bot
Copy link
Member

miq-bot commented Jul 16, 2025

Checked commit GilbertCherrie@b4052f8 with ruby 3.1.7, rubocop 1.56.3, haml-lint 0.64.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@GilbertCherrie
Copy link
Member Author

Also, I found issues with some of the shortcuts. These are all fixed in this pr: ManageIQ/manageiq#23515

@jrafanie
Copy link
Member

@GilbertCherrie looks good to me. Can you write a test to get the current start page, set the start page, and revert it back to the original start page?

I think this fix may improve test speed if we change the default start page to a faster page like utilization. Of course, our tests would need to know how to correctly navigate the page and not rely on login landing you on a specific page.

@jrafanie
Copy link
Member

@GilbertCherrie looks good to me. Can you write a test to get the current start page, set the start page, and revert it back to the original start page?

I think this fix may improve test speed if we change the default start page to a faster page like utilization. Of course, our tests would need to know how to correctly navigate the page and not rely on login landing you on a specific page.

@GilbertCherrie If the login redirect hits the API for the /api/users/X for the settings, you might be able to test this by using fixtures to stub the result so you don't need to pollute other tests by setting the start page. In other words, you can fake that response with different values from the API GET to make sure the login direct puts it on the right start page.

See #9489 where I give an example of intercept + responding with a fixture.

@GilbertCherrie GilbertCherrie force-pushed the fix_start_page branch 6 times, most recently from 7d790e8 to d3b2c5a Compare July 24, 2025 16:42
@Fryguy
Copy link
Member

Fryguy commented Jul 24, 2025

@asirvadAbrahamVarghese Please also review.

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

LGTM so far... Just had a minor comment above.

@jrafanie
Copy link
Member

jrafanie commented Aug 7, 2025

@GilbertCherrie is this ready for re-review? thanks!

@GilbertCherrie
Copy link
Member Author

@jrafanie yeah it is

@GilbertCherrie GilbertCherrie force-pushed the fix_start_page branch 2 times, most recently from 2088fc7 to ddc8b59 Compare August 18, 2025 14:34
@GilbertCherrie
Copy link
Member Author

@jrafanie I updated this pr and it should be good now.

@GilbertCherrie
Copy link
Member Author

@jrafanie I think this is good to merge now

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

LGTM

import './commands/stub_notifications.js';
import './commands/throttle_response.js';
import './commands/toolbar.js';
import './commands/select.js';
Copy link
Member

Choose a reason for hiding this comment

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

I'll sort this list in a followup...

Copy link
Member

Choose a reason for hiding this comment

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

follow PR here: #9606

@jrafanie jrafanie merged commit d14181d into ManageIQ:master Sep 8, 2025
18 checks passed
jrafanie added a commit to jrafanie/manageiq-ui-classic that referenced this pull request Sep 8, 2025
@GilbertCherrie GilbertCherrie deleted the fix_start_page branch September 8, 2025 15:11
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.

Settings->My Settings->Start Page is saved but not honored
5 participants