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

WIP: Metrics break down #2459

Closed
wants to merge 305 commits into from
Closed

Conversation

quaxsze
Copy link
Contributor

@quaxsze quaxsze commented Mar 11, 2020

No description provided.

Copy link
Contributor

@abulte abulte left a 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 👌

udata/core/metrics/api.py Outdated Show resolved Hide resolved
udata/core/metrics/commands.py Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
udata/core/dataset/models.py Outdated Show resolved Hide resolved
udata/core/dataset/models.py Outdated Show resolved Hide resolved
udata/core/site/models.py Outdated Show resolved Hide resolved
udata/core/user/models.py Outdated Show resolved Hide resolved
udata/core/user/models.py Outdated Show resolved Hide resolved
udata/core/user/models.py Outdated Show resolved Hide resolved
udata/core/user/models.py Outdated Show resolved Hide resolved
@quaxsze quaxsze requested a review from abulte March 24, 2020 15:22
udata/core/metrics/tasks.py Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
udata/core/metrics/api.py Show resolved Hide resolved

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No answer? ;-)

udata/core/metrics/signals.py Outdated Show resolved Hide resolved
udata/core/metrics/tasks.py Show resolved Hide resolved
def get_value(self):
org = self.target
return Dataset.objects(organization=org).visible().count()


@Dataset.on_create.connect
@Dataset.on_update.connect
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

udata/core/organization/models.py Outdated Show resolved Hide resolved
udata/core/reuse/models.py Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

4 participants