Skip to content
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

[Stack Monitoring] More typescript conversion #126654

Merged
merged 5 commits into from
Mar 2, 2022

Conversation

@jasonrhodes jasonrhodes added the release_note:skip Skip the PR/issue when compiling release notes label Mar 1, 2022
@jasonrhodes jasonrhodes marked this pull request as ready for review March 2, 2022 03:52
@jasonrhodes jasonrhodes requested a review from a team as a code owner March 2, 2022 03:52
Also changes some overly restrictive types that weren't accurate
Copy link
Contributor

@matschaffer matschaffer left a comment

Choose a reason for hiding this comment

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

Thinking we should probably open issues for those TODOs so we actually get them onto the backlog rather than just (probably) forgetting about them eventually. Otherwise LGTM.

@@ -5,7 +5,9 @@
* 2.0.
*/

export function monitoringBulk(Client, _config, components) {
// TODO: Track down where this function is called by the elasticsearch client setup so we can properly type these
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to file this as a follow up issue so we don't lose track of it.

start,
end,
})
: [];
Copy link
Contributor

@matschaffer matschaffer Mar 2, 2022

Choose a reason for hiding this comment

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

Interesting that [] doesn't match the return signature of getLogTypes but we can figure that out in future cleanup I'm sure. (I don't think this one needs a followup issue)

@@ -17,6 +17,8 @@ import { LegacyRequest } from '../../types';
*
* @param req {Object} the server route handler request object
*/

// TODO: replace LegacyRequest with current request object + plugin retrieval
Copy link
Contributor

@matschaffer matschaffer Mar 2, 2022

Choose a reason for hiding this comment

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

Might be good to open an issue for this too (and the other "replace LegacyRequest" todos). I think it's related to #109232 but I can't find a stack-monitoring-specific issue.

@matschaffer
Copy link
Contributor

Oh, should we backport this to 8.0 & 8.1? Not sure what's generally expected there, but since it's more a fix than a feature it might be good to have it backported to help future backports simpler.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jasonrhodes
Copy link
Member Author

Oh, should we backport this to 8.0 & 8.1? Not sure what's generally expected there, but since it's more a fix than a feature it might be good to have it backported to help future backports simpler.

Good question. 8.1 is set to release next week so I think generally in cases like that, any new fixes for 8.0 or 8.1 will need to be patches which means they'd branch from that release branch and not come from main. So for that reason I'm not sure I would normally backport these to those. Still figuring out if make it minor means anything new here, though, so I'll think about it before merging. Thanks for flagging.

@jasonrhodes jasonrhodes added auto-backport Deprecated - use backport:version if exact versions are needed v8.1.1 labels Mar 2, 2022
@jasonrhodes
Copy link
Member Author

8.1 isn't out yet so I added a v8.1.1 label just in case other fixes get scheduled for 8.1.1. Thanks!

@jasonrhodes jasonrhodes merged commit 0bd7724 into elastic:main Mar 2, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 2, 2022
* Converts monitoring_bulk to TS

* Converts routes/alerts to TS, closes elastic#117755

* Converts check_access route to TS

* Converts clusters routes to TS

Also changes some overly restrictive types that weren't accurate

* Fixes lowercase method for legacy server route

(cherry picked from commit 0bd7724)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Mar 2, 2022
* Converts monitoring_bulk to TS

* Converts routes/alerts to TS, closes #117755

* Converts check_access route to TS

* Converts clusters routes to TS

Also changes some overly restrictive types that weren't accurate

* Fixes lowercase method for legacy server route

(cherry picked from commit 0bd7724)

Co-authored-by: Jason Rhodes <jason.rhodes@elastic.co>
@jasonrhodes jasonrhodes mentioned this pull request Mar 9, 2022
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v8.1.1 v8.2.0
Projects
None yet
4 participants