Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Fix UUID Generation #263

Merged

Conversation

davidcui1225
Copy link
Contributor

Issue #, if available:
N/A
Description of changes:

  • Make UUID part of report name in schema so it's not generated on-fly in reports table
  • Make time period column text same size as rest of columns
  • Update snapshot
  • Report source field displays report name with UUID parsed out

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@@ -93,7 +94,7 @@ const generateInContextReport = (
time_to: timeRanges.time_to.valueOf(),
report_definition: {
report_params: {
report_name: $('span.euiBreadcrumb').prop('title'),
report_name: $('span.euiBreadcrumb').prop('title') + '_' + uuidv4(),
Copy link
Member

Choose a reason for hiding this comment

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

Do we have snapshot testing for in-context menu UI? Or is there a way to add?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can add snapshot testing- but this line 97 highlighted will not be tested even if we add in-context UI snapshots

@davidcui1225 davidcui1225 merged commit d9857cc into opendistro-for-elasticsearch:7.9.1 Dec 17, 2020
@davidcui1225 davidcui1225 deleted the fix-uuid branch December 17, 2020 18:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants