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

Php setup fix and stopping members pages being (as) slow #960

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cs-endo
Copy link
Contributor

@cs-endo cs-endo commented Oct 23, 2020

No description provided.

For whatever reason hasDependency and isAwardedTo slow the page down - this just means that unnecessary testing is avoided by putting the quicker tests earlier
Comment on lines +315 to +317
if ($status->canAward($by)
&& $status->hasDependency($to)
&& $status->canAward($by)
&& (!$status->isAwardedTo($to))
Copy link
Member

Choose a reason for hiding this comment

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

Explain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason if you run canAward without the other tests it runs smoothly. Obviously I can't just remove the tests so I just put that one first so when that fails it doesn't test the other ones.

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

2 participants