-
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
[RAM][HTTP Versioning] Version Rule Bulk Edit Endpoint #161912
[RAM][HTTP Versioning] Version Rule Bulk Edit Endpoint #161912
Conversation
@elasticmachine merge upstream |
Pinging @elastic/response-ops (Team:ResponseOps) |
@@ -0,0 +1,12 @@ | |||
/* |
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.
Just for information, what's r_rule?
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.
stands for recurrence rule, Its basically a protocol of sorts for communicating schedules with recurrences, we use it for snooze and maintenance windows https://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html
@@ -0,0 +1,8 @@ | |||
/* |
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 question is not exactly for this file. I see that there is the apis folder with several api endpoints. And I see close to it folder response. Is it a response only for one endpoint? Which one? Not clear from naming.
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.
The rule response is like a shareable data schema for rules, since most of our rule endpoints will end up returning one or many rules, one would assume if the rule response schema changes for one, it would change for all of them. Hence why it's been extracted and re-used.
@elasticmachine merge upstream |
@@ -36,7 +36,7 @@ import { muteAlertRoute } from './mute_alert'; | |||
import { unmuteAllRuleRoute } from './unmute_all_rule'; | |||
import { unmuteAlertRoute } from './unmute_alert'; | |||
import { updateRuleApiKeyRoute } from './update_rule_api_key'; | |||
import { bulkEditInternalRulesRoute } from './bulk_edit_rules'; | |||
import { bulkEditInternalRulesRoute } from './rule/apis/buk_edit/bulk_edit_rules_route'; |
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.
buk_edit
-> bulk_edit
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.
nice catch 😆
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.
Looks good!
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Public APIs missing exports
History
To update your PR or re-run it, just comment with: |
## Summary Resolves: elastic#161395 Parent Issue: elastic#157883 Adds versioned types to the rule `bulk_edit` endpoint. This PR also moves around the folder structure slightly, by adding a sub folder for the `data`/`route`/`application` methods: ## Before ![image](https://github.com/elastic/kibana/assets/74562234/3ae19871-cc5c-4180-b099-5fed86c3870b) ## After ![image](https://github.com/elastic/kibana/assets/74562234/bbd67bb4-4899-4f65-966e-64964f994a04) Notice I added a `methods` folder to contain the methods, I did the same for the `data` and `route` folders as well. I think this improves the hierarchy of these modules, If folks are ok with it then I will update the doc with the new folder structure. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Resolves: #161395
Parent Issue: #157883
Adds versioned types to the rule
bulk_edit
endpoint.This PR also moves around the folder structure slightly, by adding a sub folder for the
data
/route
/application
methods:Before
After
Notice I added a
methods
folder to contain the methods, I did the same for thedata
androute
folders as well. I think this improves the hierarchy of these modules, If folks are ok with it then I will update the doc with the new folder structure.Checklist