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

ec_deployments: Bugfix for queries with hyphens #241

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

karencfv
Copy link
Contributor

Description

Fixes a bug where the name prefix query was using a text field rather
than a keyword field in order to ensure the query is not analyzed.

Additionally the acceptance tests have been fixed since recently it
appears the deployment read API returns all possible topology elements
even if the size is set to 0. This means that the ec_deployment datasource
will return more topology elements than what is set in the ec_deployment
resource. I will open up a follow up PR with the fix for this, but I wanted to
leave the tests passing for now.

Related Issues

Closes: #239

How Has This Been Tested?

Manually and through acceptance tests

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

Readiness Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@karencfv karencfv added the bug Something isn't working label Feb 17, 2021
@karencfv karencfv self-assigned this Feb 17, 2021
@karencfv karencfv requested a review from a team as a code owner February 17, 2021 05:44
Copy link
Contributor

@marclop marclop left a comment

Choose a reason for hiding this comment

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

Code LGTM

@karencfv
Copy link
Contributor Author

Will merge as the tests I was fixing passed

Screen Shot 2021-02-17 at 7 24 32 PM

@karencfv karencfv merged commit 17cdc41 into elastic:master Feb 17, 2021
@karencfv karencfv deleted the datasource-query-hyphen-fix branch February 17, 2021 06:27
marclop pushed a commit that referenced this pull request Feb 18, 2021
…ts (#242)

This PR is a follow up to the bug discovered in #241

The deployment read API returns all possible topology elements
even if the size is set to 0. This means that the ec_deployment datasource
will return more topology elements than what is set in the ec_deployment
resource. This patch makes sure only the topology elements used in the 
deployment are returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ec_deployments filter by name-prefix doesn't work with hyphens
2 participants