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

Registry search does not take you to latest by default #246

Open
Apollorion opened this issue Nov 15, 2024 · 2 comments
Open

Registry search does not take you to latest by default #246

Apollorion opened this issue Nov 15, 2024 · 2 comments
Labels
bug Something isn't working frontend help wanted Extra attention is needed

Comments

@Apollorion
Copy link

URL of the page that's broken

https://search.opentofu.org/

Screenshot

Screenshot 2024-11-15 at 9 54 06 AM

OS, browser version, installed extensions

Firefox, latest version, stylue, grammerly, new tab override

Additional information

When I click the provider in the screenshot, it takes me to https://search.opentofu.org/provider/spacelift-io/spacelift/v1.15.0 instead of https://search.opentofu.org/provider/spacelift-io/spacelift/latest. Strangly, if I click the other one (spacelift-io/spacelift), it takes me to latest. Might cause a bit of heartache for people.

@Apollorion Apollorion added bug Something isn't working frontend labels Nov 15, 2024
@Yantrio
Copy link
Member

Yantrio commented Nov 15, 2024

I think there's some old data in the search indexing database. I'll investigate this soon :) thanks for raising this

@abstractionfactory abstractionfactory added the help wanted Extra attention is needed label Nov 26, 2024
@diofeher
Copy link
Contributor

It seems there's old data on the search indexing database as @Yantrio was mentioning.
I just tested using curl and it seems this provider is pointing to the old version, so the bug is not on the frontend.

curl https://api.opentofu.org/registry/docs/search\?q\=spacelift-io
...
  {
    "id": "providers/spacelift-io/terraform-provider-spacelift",
    "last_updated": "0001-01-01T00:00:00.000Z",
    "type": "provider",
    "addr": "spacelift-io/terraform-provider-spacelift",
    "version": "v1.15.0",
    "title": "spacelift",
    "description": "",
    "link_variables": {
      "id": "",
      "name": "spacelift",
      "version": "v1.15.0",
      "namespace": "spacelift-io",
      "submodule": "",
      "target_system": ""
    },
    "document": null,
    "popularity": 0,
    "warnings": 0,
    "popularity_fudge": "0.5",
    "provider_rank_fudge": 1,
    "title_sim": 0.40625,
    "description_sim": 0,
    "name_sim": 0.7692308
  },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants