-
Notifications
You must be signed in to change notification settings - Fork 193
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
archive (1.3) exclude: remove versions 1.3 and 3.7.0, part 1: reviewable steps #2502
Closed
Closed
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
75a3fe5
archive(1.2) exclude: remove 1.3 and 3.7.0 from the version manifests
pepopowitz 53c27a6
archive(1.2) exclude: redirect 1.3 / 3.7.0 traffic to new website
pepopowitz 7b84279
archive(1.2) exclude: move 1.3 to unsupported versions in navbar, rem…
pepopowitz 128874d
refactor: extract versionMappings to a versions.js file, where we'll …
pepopowitz 225d5d1
refactor: extract unsupportedVersions to versions.js, and use it to g…
pepopowitz 387d3ac
refactor: update isolation scripts to target versionMappings in the n…
pepopowitz 0442e77
docs: update release procedure to account for new versions.js file
pepopowitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["3.10.0", "3.9.0", "3.8.0", "3.7.0"] | ||
["3.10.0", "3.9.0", "3.8.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["8.2", "8.1", "8.0", "1.3"] | ||
["8.2", "8.1", "8.0"] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This array turns into the “unsupported versions” in the versions dropdown. It leads to some confusing information when viewing Optimize docs.
We’ve customized the versions dropdown to display different supported versions, depending on if you’re browsing the main docs or Optimize docs. This is done by swizzling a component, and passing metadata to its children based on the current URL.
Unfortunately, the rendering of the static unsupported versions is a lot more simplistic than the rendering of the supported versions. Thus, when I’m viewing an Optimize doc, the static/unsupported versions show the main docs versions, because that’s all that’s configured to show there. Like this:
How much effort do we want to put into this?
I am pretty sure I can swizzle one or two components to make that static list toggle between two different sets, depending on which docs instance you’re viewing. But I also wonder if this is necessary. This is somewhere between a “small” and “medium” amount of effort — closer to small, but there is risk that I can’t accomplish it.
I can also think of at least two other solutions that are even smaller, but less correct. Since these are “unsupported” versions, we’ve already made decisions along the way guided by the idea that we don’t care about them as much as supported versions. Maybe they are good enough?
Possible solutions
1.3 / 3.7.0
). This is a "small" effort. This is what it'd look like:If we choose this option, the
/ 3.7.0
would also show in the unsupported versions when viewing a main docs page.@akeller is there anything unclear here, and do you have any opinions on which route meets the "good enough" bar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree on spending a small amount of time/effort here. Spending no effort sounds like it will create confusion and may even block people from finding what they need. Ideally it doesn't because people are running one of the 3 supported versions, but we can't ding people for not being on our schedule.
I like your 3rd option, particularly because we have similar upcoming work. Showing in the main docs page feels natural.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, I forgot that the existing code is taking the displayed version number, and appending it to the unsupported.docs.camunda.io URL for the href. So for the "1.3 / 3.7.0" version, it's sending me to https://unsupported.docs.camunda.io/1.3%20/%203.7.0/ - which is not correct 😅
This means I have to do a little bit of work to keep track of both the label and the URL. I still think this is less work than trying to display specific versions on specific pages, but I'll see when i get there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My most recent commits address this. Just for clarity (and I'll add this to the body of the PR),
This is what the version dropdown looks like when viewing most docs:
This is what the version dropdown looks like when viewing an Optimize doc: