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

Caching issue in dashboard #97

Closed
javierggt opened this issue Jul 12, 2023 · 0 comments · Fixed by #98
Closed

Caching issue in dashboard #97

javierggt opened this issue Jul 12, 2023 · 0 comments · Fixed by #98
Labels
bug Something isn't working

Comments

@javierggt
Copy link
Collaborator

Sometimes the dashboard does not update. That somehow has to do with the caching I do of the repository info.

Right now, if I do

proseco_2 = packages.get_repository_info('sot/proseco')

I get this:

In [5]: proseco_2['merge_info']
Out[5]: []

while if I do this (which is a call with the default arguments passed explicitly:

proseco_1 = packages.get_repository_info('sot/proseco', version="v4", update=False)

I get this:

In [4]: proseco_1['merge_info']
Out[4]: 
[{'pr_number': 382,
  'branch': 'sot/add-acq-model-info',
  'title': 'Add acq prob model info dict as a new pickled attribute',
  'author': 'Tom Aldcroft'},
 {'pr_number': 381,
  'branch': 'sot/models-for-tests',
  'title': 'Pin chandra_models version to 3.48 for all tests',
  'author': 'Jean Connelly'}]

I could not figure out where is the problem, so I just updated all, doing this:

info = packages.get_repositories_info(update=True)
@javierggt javierggt added the bug Something isn't working label Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant