-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Livecheck outdated status should be cleared when port is updated #312
Comments
Just some brainstorming. @arjunsalyan: I would probably implement this somewhere inside macports-webapp/app/port/models.py Lines 91 to 92 in 932ff73
We could check whether the version or revision have changed, and if any of those two fields did, schedule the livecheck via some async/non-blocking job (we basically only need to run We could either add the ports to some queue for livecheck, or perhaps invalidate (The only thing that we need to take care of is not to "block" the initial port database population by waiting for livecheck for all the ports to finish.) |
PS: yes, at some rare occasions the result of the livecheck could also change as a result of changing If we run livecheck on regular basis anyway, we probably don't need to worry about this case. Basically I don't really care that much if we run livecheck for all updated port or just for those where the version has in fact changed. We could also have a tiny "Refresh" icon next to the information when the livecheck was last run. |
How quickly does The approach we go ahead with will depend on this. Instant updates would be easy to handle by simply supplying all updated ports to a function that runs livecheck in background. |
Immediately if syncing from git, but rsync is behind by I think about half an hour (or more if using a less frequently updated mirror). |
Aren't we already going through the (updated) ports from portindex json on regular basis? (Are we generating json locally now that we have MacPorts inside the Docker container?) Maybe we just need to make sure that we use the latest git repo for both port data and for anything that the port command does, like livecheck. We just need to add one line to macports configuration to make sure that the git repo takes precedence over the default one using rsync. |
Yes we do, but are not using it for the
Okay, that's something we will have to change in the Dockerfile. If I am right, when using the git repo directly in |
|
In principle we run both |
Currently you can get something like this between when a new port version is committed and livecheck is next run:
The text was updated successfully, but these errors were encountered: