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

[Bug] The version shown in the list of packages is older then the latest versions displayed inside the package page #1524

Open
unkarjedy opened this issue Jan 9, 2025 · 6 comments
Labels

Comments

@unkarjedy
Copy link

unkarjedy commented Jan 9, 2025

Current behavior

I've just uploaded the latest version of sbt-idea-plugin
https://github.com/JetBrains/sbt-idea-plugin

The latest version is now 4.0.3
You can see it in the official source of truth:
https://central.sonatype.com/artifact/org.jetbrains/sbt-idea-plugin_2.12_1.0

When I open
https://index.scala-lang.org/jetbrains
I see the older version 4.0.2 in the list:
image

However, if I click on it, I can see the latest version 4.0.3

image

Expected Behavior

I expect the version in the list of packages to display the latest version.

Extra comments

No response

Search terms

No response

@unkarjedy unkarjedy added the bug label Jan 9, 2025
@adpi2
Copy link
Member

adpi2 commented Jan 10, 2025

Thanks for the report

@adpi2
Copy link
Member

adpi2 commented Jan 10, 2025

The issue resolved itself automatically.

The search base is synced asynchronously by a background job, and it can take up to 30 min. This explains the temporary inconsistency, though in this case, it appears to have persisted much longer. I am not sure why, as there is nothing suspicious in the logs.

@adpi2 adpi2 closed this as completed Jan 10, 2025
@unkarjedy
Copy link
Author

It's understandable that there is some delay.
However, there seems to be inconsistency in how the versions are retrieved on two pages.
When you open the project, you can see the latest version in the list.

Is it fetched on-demand from repo when viewing the list?
Or is the version there because sync already happened?

In the first case, if the requests were made via a single point in the code, this info could be used to update the cached latest version.

@adpi2
Copy link
Member

adpi2 commented Jan 10, 2025

At the moment the search page is only powered by the search engine whereas the project page is only powered by the database, hence the inconsistency.

The database is our source of truth. So after we get the search response, and before rendering the page, we could use it to get the up-to-date view of each project. If so, we should do the same for the awesome page.

@adpi2 adpi2 reopened this Jan 10, 2025
@adpi2
Copy link
Member

adpi2 commented Jan 10, 2025

In the first case, if the requests were made via a single point in the code, this info could be used to update the cached latest version.

That's another possibility, we could update the search view, each time we load a project page.

@unkarjedy
Copy link
Author

So after we get the search response, and before rendering the page, we could use it to get the up-to-date view of each project. If so, we should do the same for the awesome page.

I actually meant something like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants