-
Notifications
You must be signed in to change notification settings - Fork 91
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
Ensure unique url for service.resource-details, update all instances #900
Ensure unique url for service.resource-details, update all instances #900
Conversation
Checked commit AllenBW@bb43ead with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@@ -6,7 +6,7 @@ export function VmsDetailsState (routerHelper) { | |||
function getStates () { | |||
return { | |||
'services.resource-details': { | |||
url: '/:vmId', | |||
url: '/:serviceId/resource=:vmId', | |||
params: { viewType: null }, | |||
template: '<vm-details>', | |||
title: N_('Resource Details') |
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.
Not related to this PR but I have been slowly replacing N_ with __ wherever I find them.
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.
OOOOOO gooooood call 👍
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.
changes look solid
@chriskacerguis 👀 🙇♀️ |
In support of a task in this pt: https://www.pivotaltracker.com/story/show/147640893
No UX? I don't know what counts anymore, seems to me to be just a simple url change
TL;DR
services.resource-details
now has url of/services/:serviceId/resource=:vmId
(used to be/services/:vmId
)This was getting terribly annoying, refreshing the resource details page only to have this happen:
Cuz our resource details url isn't unique 😭
Before: can you tell which one is a service details vs a resource details?
After: unique! also doesn't mind being reloaded or navigated to directly (via url)