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

Show proc time on queryTests.php #612

Merged
merged 9 commits into from
Jan 16, 2018
Merged

Conversation

zackgalbreath
Copy link
Contributor

  • Clean up the queryTests.php API endpoint
  • Show Processors & Proc Time on this page when appropriate
  • Better display of test timing on this page

Remove unused $required parameter from get_project_from_request().
Assume that a project is required.
get_project_from_request() now calls can_access_project().
The caller is no longer expected to call both functions in sequence.
@zackgalbreath zackgalbreath force-pushed the proc_time_on_queryTests branch from ad4ddc3 to 0b17163 Compare January 12, 2018 18:28
Copy link
Contributor

@bryonbean bryonbean left a comment

Choose a reason for hiding this comment

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

This all looks good to me, though I was a little surprised by the local functions that were added to the testManageMeasurements test. Was there any reason in particular for doing it that way? Just curious.

@zackgalbreath
Copy link
Contributor Author

Thanks for the review!

I was a little surprised by the local functions that were added to the testManageMeasurements test. Was there any reason in particular for doing it that way? Just curious.

All this "proc time" stuff gets tested with manageMeasurements.php because this test creates (and deletes) the "Processors" test measurement, which turns on the proc time feature. I agree that it would probably be cleaner to split these up a bit. Perhaps this is something to keep in mind if/when we start using CTest test fixtures to manage test state dependencies better.

@zackgalbreath zackgalbreath merged commit f58ae14 into master Jan 16, 2018
@zackgalbreath zackgalbreath deleted the proc_time_on_queryTests branch January 16, 2018 14:55
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.

2 participants