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

Removed synthetic statistics #149

Merged
merged 2 commits into from
Oct 31, 2020

Conversation

andOrlando
Copy link
Collaborator

@andOrlando andOrlando commented Oct 24, 2020

Closes #148. Here's the pull request. I forgot to do this last time. The only thing I changed was removing the info button and it's click event from synthetic assignments.

@psvenk psvenk force-pushed the removed-synthetic-statistics branch from eec6720 to a355470 Compare October 24, 2020 21:08
fixed how synthetic assignments show statistics.
@psvenk psvenk force-pushed the removed-synthetic-statistics branch from a355470 to 32f7b40 Compare October 26, 2020 21:03
@psvenk
Copy link
Member

psvenk commented Oct 31, 2020

@andOrlando Thank you for your contribution. I noticed that total_synthetic_assignments is a global variable which applies to all classes in all quarters, meaning that if the user creates a synthetic assignment in one class and then selects another class, the statistics for the top assignment in the other class become inaccessible. I just now pushed a commit that adds an attribute "synthetic": true to synthetic assignments and checks against that attribute instead of using a global counter.

Instead of keeping a global variable to count the number of synthetic
assignments (which does not scale across classes), add a "synthetic"
attribute to synthetic assignments and check against that.
@psvenk psvenk force-pushed the removed-synthetic-statistics branch from 6116621 to 7fc940f Compare October 31, 2020 00:58
@psvenk psvenk merged commit 6c14ecc into Aspine:master Oct 31, 2020
andOrlando added a commit that referenced this pull request Dec 16, 2020
Stop synthetic assignments (assignments added by the user) from offering to show nonexistent statistics

Co-authored-by: psvenk <45520974+psvenk@users.noreply.github.com>
@andOrlando andOrlando deleted the removed-synthetic-statistics branch December 20, 2020 03:28
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.

Statistics for synthetic assignments
2 participants