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

Fix #38623 remove xpack namespace REST API #38625

Merged
merged 7 commits into from
Feb 18, 2019

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Feb 8, 2019

Except for xpack.usage and xpack.info API's, this moves the last remaining API's out of the xpack namespace.

Need to distinguish xpack.info from info https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/info.json

Since both these API's are quite clearly relay details about x-pack I am fine with leaving these in the x-pack namespace.

cc @elastic/es-clients

Closes #38623

@Mpdreamz
Copy link
Member Author

Mpdreamz commented Feb 8, 2019

@jasontedor @jakelandis preferences for updating the YAML tests? Can do a follow up PR or add commits to this one to do so.

@Mpdreamz
Copy link
Member Author

Mpdreamz commented Feb 8, 2019

Closing for now, realized I need to do more due diligence as I stepped outside. Don't want to waste anyone's time while I'm out. Will reopen later today when ready.

@Mpdreamz Mpdreamz closed this Feb 8, 2019
@Mpdreamz Mpdreamz reopened this Feb 8, 2019
@Mpdreamz
Copy link
Member Author

Mpdreamz commented Feb 8, 2019

Updated the names inside the yaml files as well as their references in the various yaml test suites.

This shoul now be ready for review.

@Mpdreamz Mpdreamz added the :Core/Infra/REST API REST infrastructure and utilities label Feb 11, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@Mpdreamz
Copy link
Member Author

run elasticsearch-ci/1

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Looks fine overall. I found a few more references in

xpack.ml.put_job:
(and the following lines) that I think need to be changed as well?

@Mpdreamz
Copy link
Member Author

Correct @danielmitterdorfer thought i caught all of those 👍 Updated the PR.

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks for iterating. If CI is happy then I'm happy. LGTM.

@Mpdreamz
Copy link
Member Author

run elasticsearch-ci/bwc
run elasticsearch-ci/default-distro

@alpar-t
Copy link
Contributor

alpar-t commented Feb 15, 2019

@Mpdreamz I think you'll need to merge master in to get elasticsearch-ci/bwc passing.
You're missing the commit that adds the task called by this check,

@Mpdreamz Mpdreamz force-pushed the fix/rest-spec-namespaces branch from 140bdec to 1af538c Compare February 15, 2019 09:01
@Mpdreamz
Copy link
Member Author

Thanks @atorok rebased against master 🤞

@Mpdreamz
Copy link
Member Author

run elasticsearch-ci/2

@Mpdreamz Mpdreamz merged commit ccb5d93 into elastic:master Feb 18, 2019
Mpdreamz added a commit to Mpdreamz/elasticsearch that referenced this pull request Feb 18, 2019
* Fix elastic#38623 remove xpack namespace REST API

Except for xpack.usage and xpack.info API's, this moves the last remaining API's out of the xpack namespace

* rename xpack api's inside inside the files as well

* updated yaml tests references to xpack namespaces api's

* update callsApi calls in the IT subclasses

* make sure docs testing does not use xpack namespaced api's

* fix leftover xpack namespaced method names in docs/build.gradle

* found another leftover reference

(cherry picked from commit ccb5d93)
Mpdreamz added a commit to Mpdreamz/elasticsearch that referenced this pull request Feb 18, 2019
* Fix elastic#38623 remove xpack namespace REST API

Except for xpack.usage and xpack.info API's, this moves the last remaining API's out of the xpack namespace

* rename xpack api's inside inside the files as well

* updated yaml tests references to xpack namespaces api's

* update callsApi calls in the IT subclasses

* make sure docs testing does not use xpack namespaced api's

* fix leftover xpack namespaced method names in docs/build.gradle

* found another leftover reference

(cherry picked from commit ccb5d93)
Mpdreamz added a commit that referenced this pull request Feb 18, 2019
* Fix #38623 remove xpack namespace REST API

Except for xpack.usage and xpack.info API's, this moves the last remaining API's out of the xpack namespace

* rename xpack api's inside inside the files as well

* updated yaml tests references to xpack namespaces api's

* update callsApi calls in the IT subclasses

* make sure docs testing does not use xpack namespaced api's

* fix leftover xpack namespaced method names in docs/build.gradle

* found another leftover reference

(cherry picked from commit ccb5d93)
Mpdreamz added a commit that referenced this pull request Feb 18, 2019
* Fix #38623 remove xpack namespace REST API

Except for xpack.usage and xpack.info API's, this moves the last remaining API's out of the xpack namespace

* rename xpack api's inside inside the files as well

* updated yaml tests references to xpack namespaces api's

* update callsApi calls in the IT subclasses

* make sure docs testing does not use xpack namespaced api's

* fix leftover xpack namespaced method names in docs/build.gradle

* found another leftover reference

(cherry picked from commit ccb5d93)
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Feb 18, 2019
…ate-file

* elastic/master:
  Remove tests and branches that will never execute (elastic#38772)
  also check ccr stats api return empty response in ensureNoCcrTasks()
  Add overlapping, before, after filters to intervals query (elastic#38999)
  Mute test elastic#38949
  Add remote recovery to ShardFollowTaskReplicationTests (elastic#39007)
  [ML] More advanced post-test cleanup of ML indices (elastic#39049)
  wait for shard to be allocated before executing a resume follow api
  Update track-total-hits.asciidoc
  Force kill testcluster nodes (elastic#37353)
  Make pullFixture a task dependency of resolveAllDependencies (elastic#38956)
  set minimum supported version (elastic#39043)
  Enforce Completion Context Limit (elastic#38675)
  Mute test
  Don't close caches while there might still be in-flight requests. (elastic#38958)
  Fix elastic#38623 remove xpack namespace REST API (elastic#38625)
  Add data frame feature (elastic#38934)
  Test bi-directional index following during a rolling upgrade. (elastic#38962)
  Generate mvn pom for ssl-config library (elastic#39019)
  Mute testRetentionLeaseIsRenewedDuringRecovery
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.

Remove the "xpack" namespace from the REST API
6 participants