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

Avoid making calls to review methods when not logged in #333

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

alisonrclarke
Copy link
Contributor

Fixes #217

@coveralls
Copy link

coveralls commented Apr 21, 2021

Coverage Status

Coverage remained the same at 86.831% when pulling 0128d6d on fix-review-calls into 52daa3b on master.

@@ -16,6 +16,7 @@

HEPDATA.upload_max_size = {{ config['UPLOAD_MAX_SIZE']|default(52000000) }};
HEPDATA.upload_timeout = {{ config['NGINX_TIMEOUT']|default(298) }};
HEPDATA.show_review = {{ 'true' if ctx.show_review_widget or ctx.show_upload_widget else 'false'}};
Copy link
Member

Choose a reason for hiding this comment

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

Should the true condition also check for ctx.status == 'todo' to avoid making unnecessary calls for Sandbox or finished records?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - now done.

@GraemeWatt GraemeWatt merged commit fb592f0 into master Apr 22, 2021
@GraemeWatt GraemeWatt deleted the fix-review-calls branch April 22, 2021 13:35
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.

Calls are made to review functions when user is not a reviewer
3 participants