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

[Reporting/JobListing] fix user ID for non-security in queries #75365

Merged

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Aug 18, 2020

Summary

Fix #75239

Caused by #74915 which unintentionally added a breaking change in the Reporting document in Elasticsearch.

Refactoring and revising Typescript broke the value type that was actually being indexed in Elasticsearch, which broke the listing searches for users with security disabled.

Changes:

  • Add ReportingUser type
  • Revert the string | null value types back to string | false for the created_by field
  • Typescript updates in server/routes/lib/jobs_query.ts to remove custom types and use imported ones

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@tsullivan tsullivan marked this pull request as draft August 18, 2020 20:25
@tsullivan tsullivan changed the title Reporting/revert createdby nosecurity [Reporting/JobListing] fix user ID for non-security in queries Aug 18, 2020
@tsullivan tsullivan force-pushed the reporting/revert-createdby-nosecurity branch 2 times, most recently from 75eebb3 to 374947d Compare August 18, 2020 23:13
@tsullivan tsullivan force-pushed the reporting/revert-createdby-nosecurity branch from 374947d to 1e0a49f Compare August 18, 2020 23:20
@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes Team:Reporting Services v7.10.0 v8.0.0 labels Aug 19, 2020
@joelgriffith
Copy link
Contributor

Thanks for adding functional tests, very helpful!

@tsullivan tsullivan force-pushed the reporting/revert-createdby-nosecurity branch from c6225a0 to eea3153 Compare August 19, 2020 18:39
@tsullivan tsullivan marked this pull request as ready for review August 19, 2020 20:22
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@tsullivan
Copy link
Member Author

Head's up for @joelgriffith I have backed out the Typescript changes made in the jobs_query module, as that created a lot of questions that we can move to another PR.

@tsullivan tsullivan merged commit e48a567 into elastic:master Aug 19, 2020
@tsullivan tsullivan deleted the reporting/revert-createdby-nosecurity branch August 19, 2020 20:52
tsullivan added a commit to tsullivan/kibana that referenced this pull request Aug 19, 2020
…ic#75365)

* [Reporting/JobListing] fix user ID for non-security in queries

* fix tests

* add fn api test

* fix ci

* revert TS exploration
# Conflicts:
#	x-pack/scripts/functional_tests.js
#	x-pack/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts
#	x-pack/test/reporting_api_integration/reporting_and_security/bwc_generation_urls.ts
tsullivan added a commit that referenced this pull request Aug 21, 2020
…75365) (#75496)

* [Reporting/JobListing] fix user ID for non-security in queries (#75365)

* [Reporting/JobListing] fix user ID for non-security in queries

* fix tests

* add fn api test

* fix ci

* revert TS exploration
# Conflicts:
#	x-pack/scripts/functional_tests.js
#	x-pack/test/reporting_api_integration/reporting_and_security/bwc_existing_indexes.ts
#	x-pack/test/reporting_api_integration/reporting_and_security/bwc_generation_urls.ts

* fix bad merge

Co-authored-by: Elastic Machine <[email protected]>
@sophiec20 sophiec20 added the (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reporting page doesn't show any reports. User doesn't get report completed notifications
5 participants