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

Added migration/index.asciidoc generation support #87318

Merged

Conversation

craigtaverner
Copy link
Contributor

When generating release notes for 8.3.0, it was discovered that they could not build due to missing imports in the migration/index.asciidoc file. This was easily added manually in the PR for that release at #87294, but I felt it should have been handled by the gradle task generateReleaseNotes, so I have added what I think is the right stuff for that.

@@ -0,0 +1,35 @@
[[breaking-changes]]
= Migration guide
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps it would make more sense to have this template file contain nothing but the dynamic bits at the bottom, together with an include directive for the main content which should be in the docs section, and not in the template, for easier editing.

@@ -180,6 +180,28 @@ public void getVersions_includesCurrentVersion() {
);
}

/**
* Check that when deriving a lit of major.minor versions from git tags, the current unreleased version is included.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spelling of list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And included should be excluded.

@craigtaverner craigtaverner added the >docs General docs changes label Jun 2, 2022
@elasticmachine elasticmachine added the Team:Docs Meta label for docs team label Jun 2, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@craigtaverner craigtaverner requested a review from pugnascotia June 2, 2022 09:50
@craigtaverner craigtaverner force-pushed the release-notes-migration-index branch from 49a49e8 to b5d3bb5 Compare June 2, 2022 09:58
* This class ensures that the migrate/index page has the appropriate anchors and include directives
* for the current repository version.
*/
public class MigrateIndexGenerator {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Elsewhere it is migration not migrate so perhaps change name for consistency.

@craigtaverner craigtaverner force-pushed the release-notes-migration-index branch from b5d3bb5 to 8ae4c50 Compare June 2, 2022 11:09
craigtaverner and others added 3 commits June 2, 2022 14:46
@craigtaverner craigtaverner merged commit a4e0d9b into elastic:master Jun 2, 2022
craigtaverner added a commit to craigtaverner/elasticsearch that referenced this pull request Jun 2, 2022
Including extracting static content from migration/index, so the template would be as light as possible.

The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0.
craigtaverner added a commit that referenced this pull request Jun 3, 2022
* Generate release notes for v8.3.0

* [DOCS] Add 8.3 migration file to index

* Fixed version number

* Fix formatting of deprecation in 85326

* Use asciidoc format for deprecations

* Extract static content from migration/index

* This was just an enhancement

* Nope, it was an upgrade

* Added migration/index.asciidoc generation support (#87318)

Including extracting static content from migration/index, so the template would be as light as possible.

The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0.

* [DOCS] Add ml-cpp PRs to release notes

* Added back incorrectly deleted changlog

* Added missing highlight

* Fixed spelling of StackOverflowError

Co-authored-by: lcawl <[email protected]>
craigtaverner added a commit to craigtaverner/elasticsearch that referenced this pull request Jun 29, 2022
* Generate release notes for v8.3.0

* [DOCS] Add 8.3 migration file to index

* Fixed version number

* Fix formatting of deprecation in 85326

* Use asciidoc format for deprecations

* Extract static content from migration/index

* This was just an enhancement

* Nope, it was an upgrade

* Added migration/index.asciidoc generation support (elastic#87318)

Including extracting static content from migration/index, so the template would be as light as possible.

The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0.

* [DOCS] Add ml-cpp PRs to release notes

* Added back incorrectly deleted changlog

* Added missing highlight

* Fixed spelling of StackOverflowError

Co-authored-by: lcawl <[email protected]>
craigtaverner added a commit that referenced this pull request Jun 30, 2022
* Generate release notes for v8.3.0 (#87294)

* Generate release notes for v8.3.0

* [DOCS] Add 8.3 migration file to index

* Fixed version number

* Fix formatting of deprecation in 85326

* Use asciidoc format for deprecations

* Extract static content from migration/index

* This was just an enhancement

* Nope, it was an upgrade

* Added migration/index.asciidoc generation support (#87318)

Including extracting static content from migration/index, so the template would be as light as possible.

The reason for this work is because the gradle task `generateReleaseNotes` was not correctly adding new links and imports to the migrations/index and that caused documentation to fail building for 8.3.0.

* [DOCS] Add ml-cpp PRs to release notes

* Added back incorrectly deleted changlog

* Added missing highlight

* Fixed spelling of StackOverflowError

Co-authored-by: lcawl <[email protected]>

* Brought back missing changelog for 87235 (#87370)

* Brought back missing changelog for 87235

* Regenerate release notes

* Regenerate release notes for BC3 (#87449)

* Regenerate release notes for BC3

* Re-applied manual fixes that Lisa Cawley used

* Fixed breaking changes generation

To match the manual edits done by Lisa Cawley

* Fixed failing test

Since the manual edits by Lisa removed the `-SNAPSHOT` from the docs
we remove it from the tests too.

* Remove changelogs for intermediate lucene upgrades

* Update release notes for BC4 (#87635)

* Update release notes for BC4

* Adding missing changelog for geo_grid

* Added missing highlight notes for 84250

* Update docs/reference/release-notes/highlights.asciidoc

Co-authored-by: David Kilfoyle <[email protected]>

* Update docs/reference/release-notes/highlights.asciidoc

Co-authored-by: David Kilfoyle <[email protected]>

* Backported fixes to original yaml

* Control sort order of release highlights

So that small changes to an individual highlight don't completely shuffle the entire document.

We also added links to the PRs from the highlight titles, for convenience.
Otherwise readers need to search the release notes for the changelog entry and click there,
which is a lot more work.

* Fixed failing test after new ordered highlights

Also made test verify re-ordering of highlights

Co-authored-by: David Kilfoyle <[email protected]>

* Update release notes for BC5 (#87808)

* Update release notes for BC6 (#87912)

* Update release notes for BC9 (#88011)

* Regenerate release notes after version bump 8.4.0

And after forward porting 8.3.0 release notes changes.

* Regenerate after some changelog entries removed

* Re-prune the changelogs

* Removed three changelog entries

Co-authored-by: lcawl <[email protected]>
Co-authored-by: David Kilfoyle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes Team:Docs Meta label for docs team v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants