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
WIP: Metrics break down #2459
WIP: Metrics break down #2459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few remarks below, this is starting to look pretty good 👌
|
||
if do_all or datasets: | ||
log.info('Update datasets metrics') | ||
for dataset in Dataset.objects.timeout(False): | ||
update_metrics_for(dataset) | ||
all_datasets = Dataset.objects.visible().timeout(False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No answer? ;-)
def get_value(self): | ||
org = self.target | ||
return Dataset.objects(organization=org).visible().count() | ||
|
||
|
||
@Dataset.on_create.connect | ||
@Dataset.on_update.connect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-Authored-By: Alexandre Bulté <alexandre@bulte.net>
Co-Authored-By: Alexandre Bulté <alexandre@bulte.net>
Co-Authored-By: Alexandre Bulté <alexandre@bulte.net>
Co-Authored-By: Alexandre Bulté <alexandre@bulte.net>
No description provided.