Skip to content

Alerting: Configuration tab, page, and Edit modal - #2783

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
dtaylor113:alerting-config-page
Sep 26, 2019
Merged

Alerting: Configuration tab, page, and Edit modal#2783
openshift-merge-robot merged 1 commit into
openshift:masterfrom
dtaylor113:alerting-config-page

Conversation

@dtaylor113

@dtaylor113 dtaylor113 commented Sep 19, 2019

Copy link
Copy Markdown
Contributor

@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/monitoring Related to monitoring size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 19, 2019
@dtaylor113
dtaylor113 requested a review from kyoto September 19, 2019 15:24
@spadgett spadgett added this to the v4.3 milestone Sep 19, 2019
@spadgett

Copy link
Copy Markdown
Member

@kyoto are you able to help review?

@dtaylor113 thanks. i haven't reviewed closely, but one comment: we should prefer functional components with hooks for new components instead of class components

@dtaylor113

Copy link
Copy Markdown
Contributor Author

we should prefer functional components with hooks for new components instead of class components

Changed to use functional component with hooks.

@dtaylor113

Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: Missing space after comma

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could these _.cloneDeep calls be moved inside submit instead of using a hook?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: className attribute should be on its own line.
(and same for the inputs below)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: Inconsistent spacing for import { ... }. I think we generally put space chars inside the {}. (Maybe we can add an eslint rule.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe just inline this in AlertRouting since it is so simple?

@dtaylor113

dtaylor113 commented Sep 24, 2019

Copy link
Copy Markdown
Contributor Author

Hi @kyoto, thanks for the review. I believe I have addressed all the issues.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this className got moved to its own line by mistake?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably shouldn't be using an inline style.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, it looks to me like we don't need to clone secret anyway?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should probably assign this to a new variable, rather than overwriting config.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This className attribute should be moved to its own line too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This type can be removed now

@dtaylor113
dtaylor113 changed the base branch from master-4.3 to master September 25, 2019 18:47
@dtaylor113

Copy link
Copy Markdown
Contributor Author

Hi @kyoto, addressed latest review comments -thanks

const alertPath = '/monitoring/alerts';
const silencePath = '/monitoring/silences';
const YAMLPath = '/monitoring/alertmanageryaml';
const ConfigPath = '/monitoring/alertmanagerconfig';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: Should be configPath (camel case)

@kyoto

kyoto commented Sep 26, 2019

Copy link
Copy Markdown
Member

I notice there's no field validation for the modal. Is that something we're planning to add?

@kyoto

kyoto commented Sep 26, 2019

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dtaylor113, kyoto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 26, 2019
@openshift-merge-robot
openshift-merge-robot merged commit 18643bf into openshift:master Sep 26, 2019
@dtaylor113
dtaylor113 deleted the alerting-config-page branch April 27, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/monitoring Related to monitoring lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants