-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add Application Autoscaler Tab #3455
Conversation
✅ Hey richard-cox! The commit authors and yourself have already signed the CLA. |
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 quite made it through yet, but here's a few very minor non-functional suggestions
...es/core/src/features/applications/edit-autoscaler-policy/edit-autoscaler-policy.component.ts
Outdated
Show resolved
Hide resolved
...e/src/shared/components/cards/card-autoscaler-default/card-autoscaler-default.component.html
Outdated
Show resolved
Hide resolved
...ared/components/list/list-types/app-autoscaler-event/cf-app-autoscaler-events-data-source.ts
Outdated
Show resolved
Hide resolved
...d/components/list/list-types/app-autoscaler-event/cf-app-autoscaler-events-config.service.ts
Outdated
Show resolved
Hide resolved
...d/components/list/list-types/app-autoscaler-event/cf-app-autoscaler-events-config.service.ts
Outdated
Show resolved
Hide resolved
...d/components/list/list-types/app-autoscaler-event/cf-app-autoscaler-events-config.service.ts
Outdated
Show resolved
Hide resolved
...d/components/list/list-types/app-autoscaler-event/cf-app-autoscaler-events-config.service.ts
Outdated
Show resolved
Hide resolved
...list-types/app-autoscaler-metric-chart/app-autoscaler-metric-chart-card/combo-chart/index.ts
Outdated
Show resolved
Hide resolved
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.
Along with inline comments there's some general things, all are minor and I don't think need to be done for the demo.
Autoscaler Tab
Refresh on slower loading connections and the policy slider in status is shown. This should be hidden as the restSee LoadingPageComponent appears underneath content with z-index > 0 #3509The status card shows a 'policy' slider with text 'Policy undefined' or 'Policy defined'. Think this text should just be 'Enabled' and 'Disabled' for the two states78405f3- Latest Events Card
- Scheduled Limit Rules Card
The position of the edit button appears over the table when there's no time based rules78405f3
AutoScaler Metric Charts Modal
On first load the chart flashes three or four times. I think this could be a recent change we made that means observable chains on entities fire more often. I'm looking into this
Edit AutoScaler Policy Stepper
- Scaling Rules, Recurring Schedules and Specific Dates steps
I think we need to bring the 'Add' button up from the stepper controls to the same context as the list of rules. Something like an 'add' material icon with the text 'Add' in a button bottom left of the list would look good.d0ca5f6
- Specific Dates Step
- On clicking finish
Success - User should be taken back to the Autoscaler tab. Think you can do this by settingd141f1dredirect: true
in theStepOnNextResult
returned by the step onNext functionFailure - the onNext function should return { success: false, message: ''}. That will show the error in a snackbar at the bottom of the screen instead of in the main contextd141f1d
- On clicking finish
src/frontend/packages/store/src/reducers/pagination-reducer/pagination-reducer.types.ts
Outdated
Show resolved
Hide resolved
3bcbeb2
to
f18d245
Compare
e6813dc
to
d0ca5f6
Compare
… of instance limits
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'm a little nervous about the small amount of FE & BE unit tests. Unit tests are even more important when we don't own the code, it would really help us out when maintaining our codebase in the future.
src/frontend/packages/cf-autoscaler/src/cf-autoscaler-testing.module.ts
Outdated
Show resolved
Hide resolved
loadChildren: './core/autoscaler.module#AutoscalerModule', | ||
data: { | ||
stratosNavigation: { | ||
text: 'Applications', |
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.
Why do we need to add an entry to the stratosNavigation here?
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.
Do you mean to remove the below code?
data: {
stratosNavigation: {
text: 'Applications',
matIcon: 'apps',
position: 20,
hidden: of(true)
}
},
But when i remove this part of code, the https://localhost:4200/autoscaler/b5F2dF-Qr-r7yNWeDya0GTOL09c/2369e308-0733-40ce-ae9e-ed85fdbcca40/edit-autoscaler-policy
and other autoscaler paths will failed to load with 404 error.
I don't know why... Could you please help me check? @richard-cox @KlapTrap
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.
Yeah, that's what I thought. I think it would be worth rich and I taking a look and seeing what's going on, it doesn't seem right for you to have to do that!
src/frontend/packages/cf-autoscaler/src/core/autoscaler-helpers/autoscaler-transform-metric.ts
Outdated
Show resolved
Hide resolved
src/frontend/packages/cf-autoscaler/src/core/autoscaler-helpers/autoscaler-transform-metric.ts
Show resolved
Hide resolved
src/frontend/packages/cf-autoscaler/src/core/autoscaler-helpers/autoscaler-transform-metric.ts
Outdated
Show resolved
Hide resolved
...dit-autoscaler-policy/edit-autoscaler-policy-step2/edit-autoscaler-policy-step2.component.ts
Outdated
Show resolved
Hide resolved
...res/applications/application/application-tabs-base/tabs/events-tab/events-tab.component.scss
Outdated
Show resolved
Hide resolved
...ontend/packages/core/src/shared/components/list/data-sources-controllers/list-data-source.ts
Outdated
Show resolved
Hide resolved
src/frontend/packages/core/src/shared/services/metrics-range-selector-manager.service.ts
Outdated
Show resolved
Hide resolved
deddf28
to
89a3000
Compare
I've resolved the merge conflicts by bringing in v2-master. This has brought with it a change that breaks connecting to IBM Cloud via the endpoints page (SSO/cf push works fine though). There's a PR up that will fix this - #3715. I'll work on getting this through the gates again |
b7edbff
to
c05f44f
Compare
- Ensure autoscaller tiles take up full width when page is shrunk horizontally - position of polling indicator on recent apps - app-tile margin removed from top and added to bottom (fixes app/cf summary pages) - added min height to latest metrics card to avoid vertical wibble on refresh
See #3266 for additional history