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

[ML] Fixing missing data visualizer links #103932

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Jun 30, 2021

Adding back in the links to other pages which existed in the original File and Index data visualizers.
These were lost in the recent work to move the these component to separate plugins. (#96408 and #98939)

Note, these links are only present when using these features in ML.

File data visualizer
image

Index data visualizer
image

Differences in original versions
File data visualizer
The two added links are now at the end of the list of links, rather than in the middle

Index data visualizer
The Create job title has been removed, to add think back in we would need to categorise the links, possibly by supplying a common title in each link passed to the data visualizer component.
This additional work seemed out of the scope of what was required. but could be added in if this title is deemed necessary.

The data recognizer cards have not been included. Adding these in requires a lot of additional work.

Original links for comparison:
image

Relates to #101435

Checklist

Delete any items that are not applicable to this PR.

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

@jgowdyelastic jgowdyelastic self-assigned this Jul 1, 2021
@jgowdyelastic jgowdyelastic added :ml auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:File and Index Data Viz ML file and index data visualizer non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes review v7.14.0 v7.15.0 v8.0.0 labels Jul 1, 2021
@jgowdyelastic jgowdyelastic marked this pull request as ready for review July 1, 2021 14:31
@jgowdyelastic jgowdyelastic requested a review from a team as a code owner July 1, 2021 14:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@qn895
Copy link
Member

qn895 commented Jul 1, 2021

Tested and LGTM 🎉 Running the flaky test runner suite for this PR ...

@jgowdyelastic
Copy link
Member Author

@elasticmachine merge upstream

const links: ResultLink[] = useMemo(
() => [
{
id: 'create_ml_ad_job',
Copy link
Contributor

Choose a reason for hiding this comment

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

This link is now shown for non-time based indices, where previously it was hidden (I think). Is it possible to hide it if the index does not contain a timestamp field?

image

Copy link
Contributor

Choose a reason for hiding this comment

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

If it isn't easy to detect the presence of a timestamp field, could we change the link to point to the start of the job wizard (select job type) page, as we do for the link on the File data visualizer?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 04879a8
Index data visualizer does not show the AD job link for non time series indices.
Also the file data vizualizer does not show the link if the imported index is not time based

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
dataVisualizer 59 73 +14

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
dataVisualizer 1 3 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataVisualizer 1.1MB 1.1MB +2.4KB
ml 5.9MB 5.9MB +3.6KB
total +6.0KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dataVisualizer 14.3KB 14.4KB +48.0B
Unknown metric groups

API count

id before after diff
dataVisualizer 59 73 +14

History

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

cc @jgowdyelastic

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested latest edits and LGTM

@jgowdyelastic jgowdyelastic merged commit 10ea44b into elastic:master Jul 5, 2021
@jgowdyelastic jgowdyelastic deleted the missing-data-visualizer-results-links branch July 5, 2021 17:02
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2021
* [ML] Fixing missing data visualizer links

* adding index dataviz links

* fixing permission

* re-enabling tests

* fixing typo

* adding check for non time based index

* catching possible error when getting index pattern

Co-authored-by: Kibana Machine <[email protected]>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2021
* [ML] Fixing missing data visualizer links

* adding index dataviz links

* fixing permission

* re-enabling tests

* fixing typo

* adding check for non time based index

* catching possible error when getting index pattern

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.14
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jul 6, 2021
* [ML] Fixing missing data visualizer links

* adding index dataviz links

* fixing permission

* re-enabling tests

* fixing typo

* adding check for non time based index

* catching possible error when getting index pattern

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: James Gowdy <[email protected]>
kibanamachine added a commit that referenced this pull request Jul 6, 2021
* [ML] Fixing missing data visualizer links

* adding index dataviz links

* fixing permission

* re-enabling tests

* fixing typo

* adding check for non time based index

* catching possible error when getting index pattern

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: James Gowdy <[email protected]>
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 bug Fixes for quality problems that affect the customer experience Feature:File and Index Data Viz ML file and index data visualizer :ml non-issue Indicates to automation that a pull request should not appear in the release notes release_note:skip Skip the PR/issue when compiling release notes review v7.14.0 v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants