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

Backport Context Menu fix to 7.9.1 #300

Conversation

davidcui1225
Copy link
Contributor

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

  • Fix in-context menu so it does not disappear when switching index patterns in the Discover page
  • Instead of checking just that the navMenu length is greater than 1 on Report source pages, checks to make sure the length matches based on the report source type
    • Dashboard nav menu length should be 4
    • Visualization nav menu length should be 3
    • Saved search nav menu length should be 5

Related: #299

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

@codecov
Copy link

codecov bot commented Jan 9, 2021

Codecov Report

Merging #300 (87ef5f1) into 7.9.1 (02dca6b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            7.9.1     #300   +/-   ##
=======================================
  Coverage   72.96%   72.96%           
=======================================
  Files          32       32           
  Lines        1809     1809           
  Branches      357      357           
=======================================
  Hits         1320     1320           
  Misses        484      484           
  Partials        5        5           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02dca6b...87ef5f1. Read the comment docs.

@@ -142,7 +142,7 @@ export const popoverMenuDiscover = (savedObjectAvailable) => {
</div>
<div data-focus-lock-disabled="disabled">
<div class="euiPanel euiPopover__panel euiPopover__panel--bottom euiPopover__panel-isOpen euiPopover__panel-withTitle" aria-live="assertive" role="dialog" aria-modal="true" aria-describedby="i199c7fc0-f92e-11ea-a40d-395bfe9dc89a" style="top: 97px; left: 255.583px; z-index: 2000;" id="reportPopover">
<div class="euiPopover__panelArrow euiPopover__panelArrow--bottom" style="left: 15.9417px; top: 0px;">
<div class="euiPopover__panelArrow euiPopover__panelArrow--bottom" style="left: 30.9417px; top: 0px;">
Copy link
Member

Choose a reason for hiding this comment

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

Is this necessary? I didn't see this change in your PR to dev

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah- in 7.9.1 the Discover reporting menu was not lined up over the Reporting nav menu item, it's almost not under it at all.
Screen Shot 2021-01-11 at 9 27 54 AM

@davidcui1225 davidcui1225 merged commit f7e8832 into opendistro-for-elasticsearch:7.9.1 Jan 11, 2021
@davidcui1225 davidcui1225 deleted the backport-context-menu-fix branch January 11, 2021 18:23
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.

4 participants