-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology. #106382
[Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology. #106382
Conversation
…ording to the new terminology.
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
Pinging @elastic/uptime (Team:uptime) |
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.
Uptime changes look good to me.
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.
LGTM,
What I did:
- I read the summary which was very informative about what was being renamed
- I briefly looked at the code to see that everything looks like a terminology renaming of code.
@@ -191,7 +191,7 @@ const alertingAuthorizationFilterOpts: AlertingAuthorizationFilterOpts = { | |||
type: AlertingAuthorizationFilterType.KQL, | |||
fieldNames: { ruleTypeId: 'alert.attributes.alertTypeId', consumer: 'alert.attributes.consumer' }, | |||
}; | |||
export class AlertsClient { | |||
export class RulesClient { |
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.
What do you think about renaming the variables in this file as part of this terminology renaming? example alertTypeRegistry
-> ruleTypeRegistry
?
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 noticed that as well - and I'd guess there are probably more lurking "alerts" changes to be made in the code.
Making that a follow-up issue would be fine to me.
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.
A follow up issue sounds good :)
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 think this is a good idea. Probably the changed files won't increase much :-)
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.
LGTM on green CI!
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.
LGTM!
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.
LGTM
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @YulNaumenko |
…ording to the new terminology. (elastic#106382) * [Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology. * fixed path * fixed type checks * fixed type checks
Summary
Current PR renames the AlertsClient to RulesClient according to the new terminology. Resolves #105300
Changes in the
alerting
plugin:alerts_client.ts
->rules_client.ts
alerts_client.mock.ts
->rules_client.mock.ts
alerts_client_factory.ts
->rules_client_factory.ts
alerts_client_factory.test.ts
->rules_client_factory.test.ts
alerts_client_conflict_retries.test.ts
->rules_client_conflict_retries.test.ts
AlertsClient
->RulesClient
AlertsClientFactory
->RulesClientFactory
alertsClientMock
->rulesClientMock
alertsClient*
wording ->rulesClient*
uptime
,security_solution
,monitoring
andml
plugins