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

Specify primary Test Plan Run when finalizing report and track first required AT Version #1001

Merged
merged 20 commits into from
May 2, 2024

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Apr 4, 2024

This PR adds support for selecting a "Primary test plan run" as outlined in #792.

  • Updates TestPlanRun table to track isPrimary as an attribute
  • Updates markAsFinal resolver to take a primaryTestPlanRunId which indicates which test run a report should be considered the "primary"
  • Adds a dialog that pops up when marking a test plan report as final on the Test Queue for an admin. It allows them to select from the possible options which tester's run should be the primary

Note: This PR also includes #1051 which was reviewed and approved separately

@howard-e howard-e changed the base branch from main to development April 4, 2024 22:27
@howard-e howard-e changed the title Specify primary Test Plan Run Specify primary Test Plan Run when finalizing report Apr 9, 2024
@howard-e howard-e marked this pull request as ready for review April 9, 2024 18:51
@howard-e howard-e requested a review from evmiguel April 9, 2024 18:51
Copy link
Contributor

@evmiguel evmiguel left a comment

Choose a reason for hiding this comment

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

LGTM! Minor comments on the styling.

title="Select Primary Test Plan Run"
content={
<>
When a tester&apos;s run is marked as primary, it means
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we style this at the break point to have whitespace?

padding: 0.75rem;
} */
.primary-test-run-select {
padding: 0 !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a padding left to the select?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I realize now what was being shown is because the dialog still appears when the number of testers to choose from is 1 and <select>.size would render differently.

I've pushed b738bc0 which should won't display the dialog at all if there's only 1 tester to choose from. Thanks for pointing this out!

@evmiguel
Copy link
Contributor

Looks good @howard-e!

alflennik and others added 6 commits April 22, 2024 13:55
…ress #792

* Add resolver for finding firstRequiredAtVersion for a RECOMMENDED TestPlanVersion, given an atId

* Update tests

* Fix graphql call when including "firstRequiredAtVersion" under "testPlanVersions"

* Update description of firstRequiredAtVersion

* Rename resolver
@alflennik
Copy link
Contributor

Following a discussion with @howard-e we are changing the base branch to #1055

@alflennik alflennik changed the base branch from development to minimum-exact-at-version April 24, 2024 21:06
…anRun

# Conflicts:
#	server/tests/integration/graphql.test.js
@howard-e howard-e changed the title Specify primary Test Plan Run when finalizing report Specify primary Test Plan Run when finalizing report and track first required AT Version Apr 25, 2024
Base automatically changed from minimum-exact-at-version to trends May 2, 2024 20:50
@alflennik alflennik merged commit 6dff002 into trends May 2, 2024
2 checks passed
@alflennik alflennik deleted the primaryTestPlanRun branch May 2, 2024 21:00
@howard-e howard-e mentioned this pull request Jun 20, 2024
howard-e added a commit that referenced this pull request Jun 20, 2024
This includes work to support #791 and #792.

Includes the following changes:
* #1055
* #1001
* #1065
* #1052 
* #1087
* #1098 
* #1092
* #1131
* #1124

---------

Co-authored-by: Howard Edwards <[email protected]>
Co-authored-by: Paul Clue <[email protected]>
Co-authored-by: alflennik <[email protected]>
howard-e added a commit that referenced this pull request Jun 24, 2024
Includes the following changes:
* #1123, addresses #791 and #792 with:
  * #1055
  * #1001
  * #1065
  * #1052 
  * #1087
  * #1098 
  * #1092
  * #1131
  * #1124
* #1128, addresses #1100
* #1102, addresses #957
* #1132
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.

3 participants