-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ResponseOps][Rules] Version update api key rule route #188722
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
cc @adcoelho |
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!
@@ -164,7 +164,7 @@ export class RulesClient { | |||
public bulkDisableRules = (options: BulkDisableRulesRequestBody) => | |||
bulkDisableRules(this.context, options); | |||
|
|||
public updateApiKey = (options: { id: string }) => updateApiKey(this.context, options); | |||
public updateApiKey = (params: { id: string }) => updateApiKey(this.context, params); |
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.
let's rename this to updateRuleApiKey
so update_api_key.ts
-> update_rule_api_key.ts
} from '../../../../../common/routes/rule/apis/update_api_key'; | ||
import { ILicenseState, RuleTypeDisabledError } from '../../../../lib'; | ||
import { verifyAccessAndContext } from '../../../lib'; | ||
import { AlertingRequestHandlerContext, BASE_ALERTING_API_PATH } from '../../../../types'; | ||
|
||
export const updateRuleApiKeyRoute = ( |
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.
Let's rename this file update_rule_api_key_route.ts
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
To update your PR or re-run it, just comment with: cc @adcoelho |
Summary
Parent Issue: #187572
Versions the
POST /rule/{id}/_update_api_key
endpoint.Checklist