Skip to content

[Monitoring] Address shard allocation color mismatch - #34086

Merged
chrisronline merged 2 commits into
elastic:masterfrom
chrisronline:monitoring/shard_allocation_color_mismatch
Mar 28, 2019
Merged

chrisronline merged 2 commits into
elastic:masterfrom
chrisronline:monitoring/shard_allocation_color_mismatch

Conversation

@chrisronline

Copy link
Copy Markdown
Contributor

Resolves #31376

This PR fixes an issue where the actual shard listings didn't match the legend color scheme. I've added a couple simple tests for a couple scenarios, but would love to hear about potentially more important use cases to test against (most likely from @pickypg if he has the time).

@cachedout Do you know if we can get this into 7.0.0, or does it need to wait for 7.0.1?

@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/stack-monitoring

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

expect(component).toMatchSnapshot();
});

it('should show UNASSIGNED non-primary shards', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: non-primary is more commonly known as replica.

const component = shallow(<Shard {...props}/>);
expect(component).toMatchSnapshot();
});
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about adding test cases for the rest of the shard states for completeness?

@ycombinator

Copy link
Copy Markdown
Contributor

I have an unassigned replica shard. However, it's using the wrong color. It seems to be using the color of unassigned primary shards:

Screen Shot 2019-03-28 at 10 20 43 AM

@chrisronline

Copy link
Copy Markdown
Contributor Author

Thanks @ycombinator. Nice find. I added tests and found another issue too. All fixed up and ready for another round

@ycombinator ycombinator left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@chrisronline
chrisronline merged commit bbb21b1 into elastic:master Mar 28, 2019
@chrisronline
chrisronline deleted the monitoring/shard_allocation_color_mismatch branch March 28, 2019 18:59
chrisronline added a commit to chrisronline/kibana that referenced this pull request Mar 28, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit to chrisronline/kibana that referenced this pull request Mar 28, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit that referenced this pull request Mar 28, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit that referenced this pull request Mar 28, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
@chrisronline

chrisronline commented Mar 28, 2019 •

Copy link
Copy Markdown
Contributor Author

Backport:

6.6: 498dfcd
6.7: afb09f1
7.0: b9af5c3
7.x: e95cd83

chrisronline added a commit to chrisronline/kibana that referenced this pull request Apr 22, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit to chrisronline/kibana that referenced this pull request Apr 22, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit that referenced this pull request Apr 22, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
chrisronline added a commit that referenced this pull request Apr 22, 2019
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* Address mismatch and add a couple starter tests

* More tests and fixing a bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shard color for primaries is not the same as in legend

3 participants