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

Dynamically download release information from Bodhi #3

Closed
owtaylor opened this issue Mar 29, 2021 · 0 comments
Closed

Dynamically download release information from Bodhi #3

owtaylor opened this issue Mar 29, 2021 · 0 comments

Comments

@owtaylor
Copy link
Owner

owtaylor commented Mar 29, 2021

fedora/release_info.py is a liability, because when things change - e.g., a new Flatpaks release is added in Fedora - the indexer breaks in a hard-to-notice fashion.

We can get the same information directly from Bodhi using the https://bodhi.fedoraproject.org/releases/?exclude_archived=1

Endpoint. Basic idea is:

  • Add bodhi_query.py: refresh_updates()
  • Have that cache a JSON-object in redis like:
[
{
   "name": "F34F",
   "content_type": "flatpak",
   "branch": "f34"
}
]
  • Call refresh_* updates() once per update cycle, then load and use it where we currently use release_info.py. (Probably pass the loaded result as a parameter to bodhi_update.py:_query_updates() to reduce redis round-trips.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant