-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UI: PKI routes extend base Route #20179
Conversation
@service secretMountPath; | ||
|
||
model() { | ||
return this.modelFor('issuers.issuer'); |
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.
This is so much better than extending the PkiIssuerRoute!
setupController(controller, resolvedModel) { | ||
super.setupController(controller, resolvedModel); | ||
controller.breadcrumbs.push( | ||
|
||
controller.breadcrumbs = [ |
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.
I had a question for my understanding. Previously we were pushing in the two breadcrumbs, but the new change is setting this to an array of breadcrumbs. Why are we doing that?
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.
Good question! Before, since we were extending the other route, it was first calling setupController
on the extended route, which instantiated breadcrumbs
on the controller. Then this route's setupController
is called, which just pushes the new breadcrumbs to the parent's array. Hope that makes sense!
3eafb4f
to
4287af7
Compare
This PR untangles the routing for the PKI engine. Extending other routes was causing confusion and it wasn't clear why some routes were even extended. As part of this PR, all the PKI models using openAPI are also instantiated at the engine application route so that the models are hydrated and available for the rest of the engine.