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

Change the get pipeline api response format to be object based instead of array based #19685

Conversation

martijnvg
Copy link
Member

@martijnvg martijnvg commented Jul 29, 2016

Make the response format of the get pipeline api match with the response format of the index template api.

Right now the response is (assuming two pipelines (A and B):

{
  "pipelines" : [
    {
       "id" : "A",
       "config" : {
          "processors" : []
       }
    },
    {
       "id" : "B",
       "config" : {
          "processors" : []
       }
    }
  ]
}

with this change the response becomes:

{
  "A": {
    "processors": []
  },
  "B": {
    "processors": []
  }
}

PR for #19585

@martijnvg martijnvg added >non-issue review :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v5.0.0-beta1 labels Jul 29, 2016
@talevy
Copy link
Contributor

talevy commented Jul 29, 2016

LGTM

…he response format of the index template api

Closes elastic#19585
@martijnvg martijnvg force-pushed the get_pipeline_api_should_match_get_index_template_api branch from 378e655 to a91bb29 Compare July 29, 2016 15:58
@martijnvg martijnvg merged commit a91bb29 into elastic:master Jul 29, 2016
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this pull request Sep 27, 2016
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this pull request Sep 27, 2016
deprecate _ttl/_timestamp and remove them from our tests as per elastic/elasticsearch#18980 so that migrated 2.x indices do not have their code altered (just yet)

explicit 5.x spec generation

fix failing nodes test because  is removed as per elastic/elasticsearch#19218

fixed failing integration tests due to lang no longer defaulting to groovy elastic/elasticsearch#19960

fields => stored fields, updated failing cathelp tests due to endpoint changing

suggest response is now generic and gets _source returned in accordance with elastic/elasticsearch#19536

histogram key double not long

source filtering include and exclude are now plural

script fields tests did not explicitly specify groovy

search's StoredFields still sent

get task api tests wreaked havoc on the readonly tests

scripted metric did not specify lang

set script.max_compilations_per_minute on node

fix top hits not setting groovy explicitly

multi search now response 404 properly

multitermvector tests making sure it took more then 0 is no longer reliable beta1 is too fast :)

foreach put pipeline processors is no longer an array as per elastic/elasticsearch#19402

revert field=>stored_fields rename on update request

remove propery name with dot failure assertion integration test, no longer valid since elastic/elasticsearch#19899

use existing elasticsearch node in test framework could still spawn a new java process

revert field=>stored_fields rename on update request

get pipeline api is now dictionary based as per elastic/elasticsearch#19685

xpack beta1 related fixes

reindex tests not setting all waithandles and taking 3 minutes for no good reason

missing fieldsecurity class

fix post integration test failures unit test failures

add back run as tests now that we send the right header in the beta1 world
Mpdreamz added a commit to elastic/elasticsearch-net that referenced this pull request Oct 10, 2016
* removed deleted file from csproj

deprecate _ttl/_timestamp and remove them from our tests as per elastic/elasticsearch#18980 so that migrated 2.x indices do not have their code altered (just yet)

explicit 5.x spec generation

fix failing nodes test because  is removed as per elastic/elasticsearch#19218

fixed failing integration tests due to lang no longer defaulting to groovy elastic/elasticsearch#19960

fields => stored fields, updated failing cathelp tests due to endpoint changing

suggest response is now generic and gets _source returned in accordance with elastic/elasticsearch#19536

histogram key double not long

source filtering include and exclude are now plural

script fields tests did not explicitly specify groovy

search's StoredFields still sent

get task api tests wreaked havoc on the readonly tests

scripted metric did not specify lang

set script.max_compilations_per_minute on node

fix top hits not setting groovy explicitly

multi search now response 404 properly

multitermvector tests making sure it took more then 0 is no longer reliable beta1 is too fast :)

foreach put pipeline processors is no longer an array as per elastic/elasticsearch#19402

revert field=>stored_fields rename on update request

remove propery name with dot failure assertion integration test, no longer valid since elastic/elasticsearch#19899

use existing elasticsearch node in test framework could still spawn a new java process

revert field=>stored_fields rename on update request

get pipeline api is now dictionary based as per elastic/elasticsearch#19685

xpack beta1 related fixes

reindex tests not setting all waithandles and taking 3 minutes for no good reason

missing fieldsecurity class

fix post integration test failures unit test failures

add back run as tests now that we send the right header in the beta1 world

* make sure code is generated of master after mass picking commits of 5.x branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue v5.0.0-alpha5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants