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

archive (1.3) exclude: remove versions 1.3 and 3.7.0, part 1: reviewable steps #2502

Closed

Conversation

pepopowitz
Copy link
Collaborator

@pepopowitz pepopowitz commented Aug 28, 2023

🛑 BLOCKED 🛑

We should check back when #2432 is complete, to see if OpenSearch support has been included in Optimize. If it has, we can complete this issue. If it has not, we should schedule a reminder to check again a month or so later.

Description

Part of #2189.

Includes the smaller items for removing version 1.3 from the main docs, to keep the PR in a reviewable state.

Included in this PR

  • Remove v1.3 & Optimize v3.7.0 from the version manifest files, so that they're not included in the deployed site
  • Redirect all 1.3 / 3.7.0 traffic to unsupported.docs.camunda.io/1.3 (or stage.unsupported.docs.camunda.io/1.3 for the staging build)
  • Move 1.3 to the "Unsupported versions" sub-list in the top nav version selector, redirecting to unsupported.docs.camunda.io/1.3.
    • The label for this version combines both the main version & Optimize version. This combined version label shows when viewing both a main doc (shown below on the left side) and an Optimize doc (shown below on the right side):

      image

When should this change go live?

  • This change is not yet live and should not be merged until {ADD_DATE} (apply hold label or convert to draft PR)?
  • There is no urgency with this change.
  • This change or page is part of a marketing blog, conference talk, or something else on a schedule.
  • This functionality is already available but undocumented.
  • This is a bug fix or security concern.

PR Checklist

  • I have added changes to the relevant /versioned_docs directory, or they are not for an already released version.
  • I have added changes to the main /docs directory (aka /next/), or they are not for future versions.
  • My changes require an Engineering review, and I've assigned an engineering manager or tech lead as a reviewer, or my changes do not require an Engineering review.
  • My changes require a technical writer review, and I've assigned @christinaausley as a reviewer, or my changes do not require a technical writer review.

@pepopowitz pepopowitz added kind/cleanup Issues related with clean-up the documentation hold This issue is parked, do not merge. dx Documentation infrastructure typically handled by the Camunda DX team epic:archive-old-versions labels Aug 28, 2023
@pepopowitz pepopowitz self-assigned this Aug 28, 2023
@@ -87,7 +87,7 @@ module.exports = {
className: "dropdown-unsupported-versions",
value: "<b>Unsupported versions</b>",
},
...["1.2", "1.1", "1.0", "0.26", "0.25"].map((version) => ({
...["1.3", "1.2", "1.1", "1.0", "0.26", "0.25"].map((version) => ({
Copy link
Collaborator Author

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:

image

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. A more complicated solution, in which we swizzle some components to make the “static list of unsupported versions” toggle based on the doc you’re viewing. This is a "small" to "medium" effort. I am unsure how the pre-Optimize-extraction versions should appear in this dropdown when viewing an Optimize page, if we go this route.
  2. Just let the incorrect unsupported versions display when viewing an optimize doc (0 effort, what you see in my screenshot above).
  3. Similar to the work for the upcoming release, we could display both the main version and the Optimize version in the dropdown, separated by a slash (e.g. 1.3 / 3.7.0). This is a "small" effort. This is what it'd look like:
    image
    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?

Copy link
Member

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.

Copy link
Collaborator Author

@pepopowitz pepopowitz Aug 29, 2023

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.

Copy link
Collaborator Author

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:

image

This is what the version dropdown looks like when viewing an Optimize doc:

image

...["1.2", "1.1", "1.0", "0.26", "0.25"].map((version) => ({
label: version,
href: `https://unsupported.docs.camunda.io/${version}/`,
...unsupportedVersions.map((version) => ({
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved these to a separate file because I wanted to type the array items, and I didn't want to clutter this already-large config.

@@ -24,7 +24,7 @@ sed -i '' "/^const versionMappings = \[$/,/\];/c\\
const versionMappings = [\\
{ docsVersion: \"$ARCHIVED_VERSION\", optimizeVersion: \"$ARCHIVED_OPTIMIZE_VERSION\" },\\
];\\
" src/mdx/expandVersionedUrl.js
" src/versions.js
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

these versionMappings were moved to the same file as the new unsupportedVersions, because they are all about versions.

@@ -63,7 +63,7 @@ To create the new versions:
];
```

- Add the new mapping in the first position of the array.
- Order of the items in the array is important. Add the new mapping in the first position of the array, because the first item is treated as the "current" version mapping.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this note because I think it's important. I only noticed it missing because I was editing the docs right above.

Copy link
Member

Choose a reason for hiding this comment

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

Solid add!

@pepopowitz pepopowitz removed the hold This issue is parked, do not merge. label Aug 29, 2023
@pepopowitz pepopowitz mentioned this pull request Aug 29, 2023
@pepopowitz pepopowitz added the hold This issue is parked, do not merge. label Aug 30, 2023
@CLAassistant
Copy link

CLAassistant commented Oct 5, 2023

CLA assistant check
All committers have signed the CLA.

@akeller
Copy link
Member

akeller commented Dec 12, 2023

@pepopowitz are you aware of the status of Optimize 1.3? Will this be included with the January minor release?

@pepopowitz
Copy link
Collaborator Author

@pepopowitz are you aware of the status of Optimize 1.3? Will this be included with the January minor release?

OpenSearch for Optimize is tracked at https://github.com/camunda/product-hub/issues/1908. It is targeting 8.5.

(I'll update this issue to include a link to the Optimize-specific Product Hub issue.)

@akeller
Copy link
Member

akeller commented Mar 13, 2024

@akeller
Copy link
Member

akeller commented Aug 16, 2024

@pepopowitz, is your plan to resurrect this PR or open a new one?

@pepopowitz
Copy link
Collaborator Author

we should definitely close this and re-create later.

@pepopowitz pepopowitz closed this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Documentation infrastructure typically handled by the Camunda DX team epic:archive-old-versions hold This issue is parked, do not merge. kind/cleanup Issues related with clean-up the documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants