[Reporting] server side code clean up#106940
Merged
tsullivan merged 17 commits intoelastic:masterfrom Aug 11, 2021
Merged
Conversation
This reverts commit 91de680.
Contributor
|
Pinging @elastic/kibana-app-services (Team:AppServices) |
Member
Author
|
@elasticmachine merge upstream |
2 tasks
tsullivan
commented
Jul 29, 2021
| ): EnqueueJobFn { | ||
| ): Promise<Report> { | ||
| const logger = parentLogger.clone(['createJob']); | ||
| return async function enqueueJob( |
Member
Author
There was a problem hiding this comment.
It's probably easier to review changes like this with the feature in Github that lets you ignore whitespace changes: add ?w=1 to the github URL.
Member
Author
|
@elasticmachine merge upstream |
Member
Author
|
@elasticmachine merge upstream |
dokmic
approved these changes
Aug 4, 2021
Contributor
dokmic
left a comment
There was a problem hiding this comment.
LGTM 👍
Nice cleanup removing an unnecessary layer.
jloleysens
approved these changes
Aug 9, 2021
Contributor
jloleysens
left a comment
There was a problem hiding this comment.
Changes look good to me! Thanks a lot for doing this 🍻
Contributor
💚 Build Succeeded
Metrics [docs]Unknown metric groupsAPI count
API count missing comments
Non-exported public API item count
History
To update your PR or re-run it, just comment with: |
tsullivan
added a commit
to tsullivan/kibana
that referenced
this pull request
Aug 11, 2021
* clean up the enqueue job function * clean up the screenshots observable * clean up authorized user pre routing * clean up get_user * fix download job response handlers * clean up jobs query factory repetition * clean up setup deps made available from plugin.ts * update test for screenshots observable * Revert "clean up setup deps made available from plugin.ts" This reverts commit 91de680. * revert renames * minor rename * fix test after rename Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Aug 11, 2021
…-png-pdf-report-type * 'master' of github.com:elastic/kibana: (101 commits) [ML] APM Latency Correlations: Field/value candidates prioritization (elastic#107370) [Reporting] Add lenience to a test on the order of asserted logs (elastic#108135) [Lens] fix do not submit invalid query in filtered metric (elastic#107542) skip flaky test (elastic#108043) fix newly introduced type error (elastic#107593) [Reporting] server side code clean up (elastic#106940) [build_ts_refs] improve caches, allow building a subset of projects (elastic#107981) [APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (elastic#107593) add manage rules link to alerts dropdown (elastic#107950) [ML] Enable Index data visualizer document count chart to update time range query (elastic#106438) [Security Solutions][Detection Engine] Fixes "undefined" crash for author field by adding a migration for it (elastic#107230) [Actions UI] Fixed Jira Api token label. (elastic#107776) [Alerting UI] Fixed display permissions for edit/delete buttons when user has read only access. (elastic#107996) [Maps] fix code owners (elastic#108106) Update EMS landing page url (elastic#108102) Do not render page header for loading domains (elastic#108078) Update dependency @elastic/charts to v33.2.2 (elastic#107939) [APM] Display throughput as tps (instead of tpm) when bucket size < 60 seconds (elastic#107850) [Fleet] Fix all category count (elastic#108089) [Security Solution][Bug] - Disable alert table RBAC until fields sorted (elastic#108034) ... # Conflicts: # x-pack/plugins/reporting/server/export_types/common/generate_png.ts # x-pack/plugins/reporting/server/lib/screenshots/index.ts # x-pack/plugins/reporting/server/lib/screenshots/observable.test.ts # x-pack/plugins/reporting/server/lib/screenshots/observable.ts
tsullivan
added a commit
that referenced
this pull request
Aug 11, 2021
* [Reporting] server side code clean up (#106940) * clean up the enqueue job function * clean up the screenshots observable * clean up authorized user pre routing * clean up get_user * fix download job response handlers * clean up jobs query factory repetition * clean up setup deps made available from plugin.ts * update test for screenshots observable * Revert "clean up setup deps made available from plugin.ts" This reverts commit 91de680. * revert renames * minor rename * fix test after rename Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> * fix legacy Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cleans up code in Reporting that uses leftover patterns from the old platform. This code used an unnecessary amount of abstraction that made it difficult to jump to function definitions.
Closes #96253
Checklist
For maintainers