Skip to content

Conversation

@marciw
Copy link
Contributor

@marciw marciw commented Oct 29, 2025

👁️ Preview docs/reference/index.md

Summary of changes

  • Revised the "Major version upgrades" section in response to https://github.com/elastic/docs-content-internal/issues/421
  • Clarified forward compatibility
  • Added phrasing and table from .NET docs + made the table more accessible
  • Added links to related docs
  • Did a general edit for clarity, concision, Elastic style

❗ Notes for reviewers

TODO

  • Compare to .NET changes; go with the best of both worlds
  • Tweak section heading?
  • Clarify "outages" (whether clients need hot-swapping during major upgrades) per Upgrade from 7.17 guide docs-content#3398 (comment) <-- will do this in a follow-up issue; going to merge this in its current state as a "phase 1" edit

@github-actions
Copy link

github-actions bot commented Oct 29, 2025

🔍 Preview links for changed docs

@marciw marciw requested a review from Copilot October 30, 2025 23:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Python client documentation to improve clarity, structure, and accuracy. The changes modernize the content with better explanations of compatibility, feature descriptions, and client usage.

  • Added navigation metadata and improved page title
  • Updated compatibility section with a clearer table and explanations
  • Reorganized content flow with better placement of examples and tips

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marciw marciw marked this pull request as ready for review October 30, 2025 23:51
@marciw marciw changed the title [WIP] [DOCS] Clarify upgrades and edit generally [DOCS] Clarify upgrades and edit generally Oct 30, 2025
@marciw marciw requested a review from miguelgrinberg October 31, 2025 19:37
@miguelgrinberg
Copy link
Contributor

@marciw The lint failure is unrelated, I'll fix that separately.

@marciw

This comment was marked as outdated.

@marciw

This comment was marked as outdated.

@marciw marciw merged commit 06f25a0 into elastic:main Nov 12, 2025
15 checks passed
@github-actions
Copy link

The backport to 9.0 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.0 9.0
# Navigate to the new working tree
cd .worktrees/backport-9.0
# Create a new branch
git switch --create backport-3138-to-9.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 06f25a0f370c21e511b75e02a87d3e7056e2a00e
# Push it to GitHub
git push --set-upstream origin backport-3138-to-9.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.0

Then, create a pull request where the base branch is 9.0 and the compare/head branch is backport-3138-to-9.0.

github-actions bot pushed a commit that referenced this pull request Nov 12, 2025
* Revise upgrade section; do a general edit

* fix mis-paste

* More edits

* Review comments + more cleanup

(cherry picked from commit 06f25a0)
github-actions bot pushed a commit that referenced this pull request Nov 12, 2025
* Revise upgrade section; do a general edit

* fix mis-paste

* More edits

* Review comments + more cleanup

(cherry picked from commit 06f25a0)
miguelgrinberg pushed a commit that referenced this pull request Nov 20, 2025
* Revise upgrade section; do a general edit

* fix mis-paste

* More edits

* Review comments + more cleanup

(cherry picked from commit 06f25a0)

Co-authored-by: Marci W <[email protected]>
miguelgrinberg pushed a commit that referenced this pull request Nov 20, 2025
* Revise upgrade section; do a general edit

* fix mis-paste

* More edits

* Review comments + more cleanup

(cherry picked from commit 06f25a0)

Co-authored-by: Marci W <[email protected]>
As of version 8.0, {{es}} offers a [compatibility mode](elasticsearch://reference/elasticsearch/rest-apis/compatibility.md) for smoother upgrades. In compatibility mode, you can upgrade your {{es}} cluster to the next major version while continuing to use your existing client during the transition.

For example, to upgrade a system that uses {{es}} 8.x you can upgrade the {{es}} server to 9.x first, and the 8.x Python {{es}} client will continue to work (aside from any breaking changes, which should be listed in the server release notes). You can continue using the 8.x client during the server migration, and only upgrade it once the server migration is complete. The process is described in detail in the [REST API compatibility workflow](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/compatibility#_rest_api_compatibility_workflow) section of the {{es}} documentation.
For example, if you're upgrading {{es}} from 8.x to 9.x, you can continue to use the 8.x Python client during and after the {{es}} server upgrade, with the exception of [breaking changes](../release-notes/breaking-changes.md).
Copy link
Member

Choose a reason for hiding this comment

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

This links to the breaking changes for the Python client, which are irrelevant here since the client remains on 8.x. We need to link to the Elasticsearch release notes instead.

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.

3 participants