Skip to content

[Website][Docs] Version selector on the published docs for 13.0.0 seems broken #37357

Closed as not planned

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

There seems to be something wrong with the version selector for the docs (https://arrow.apache.org/docs/index.html):
image
Release 13.0.0 is released and should appear as stable.
If I click on the 12.0.0(stable) version selector, I get the 13.0.0 docs but there is no link to 12.0.0 on the selector apart from that.

Component(s)

Documentation, Website

Activity

  1. raulcd commented on Aug 24, 2023

    @raulcd
    MemberAuthor

    @thisisnic @jorisvandenbossche @AlenkaF I know you worked on this in the past (or something related). Any idea of what happened?

  2. AlenkaF commented on Aug 24, 2023

    @AlenkaF
    Member

    One thing I noticed is that the versions.json file was not updated here: https://arrow.apache.org/docs/_static/versions.json and this is the file from where the data gets pulled into the version warnings and I think also to the version switcher.

    It just changed now though =)

  3. AlenkaF commented on Aug 24, 2023

    @AlenkaF
    Member

    And the issue on the site is fixed ...

  4. jorisvandenbossche commented on Aug 24, 2023

    @jorisvandenbossche
    Member

    Do a "hard" refresh of the page. The versions.json file is cached by your browser, and so the dropdown still shows the old versions. But the file itself is correctly updated, I think: https://github.com/apache/arrow-site/blob/asf-site/docs/_static/versions.json

  5. raulcd commented on Aug 24, 2023

    @raulcd
    MemberAuthor

    Oh! I see, this is cached and we require a hard refresh. I am wondering if we can ask INFRA if they can set some headers for non-caching on some files like this one or if it is not worth it.
    edit as a clarification, with a hard refresh it works for me now:
    image

  6. kou commented on Aug 25, 2023

    @kou
    Member

    If we want to disable caching, we can use fetch()'s cache: "no-cache" option: https://developer.mozilla.org/en-US/docs/Web/API/fetch

    Note that we're using jQuery's $.getJSON() not fetch():

    $.getJSON("https://arrow.apache.org/docs/_static/versions.json", function(data){

  7. jorisvandenbossche commented on Aug 25, 2023

    @jorisvandenbossche
    Member

    I think the exact implementation is being changed in #36591 (now using the sphinx theme's upstream one), so if we want to look into it, might be better to do that afterwards.

    I also don't know if we want to disable caching, as for most of the time, the caching actually is beneficial (although I don't know how important this is, given it's a small file)

  8. kou commented on Aug 28, 2023

    @kou
    Member

    I think that we don't need to disable cache because this will be fixed (the cache will be expired) eventually.

  9. raulcd commented on Aug 28, 2023

    @raulcd
    MemberAuthor

    That makes sense to me. I am closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions