-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add resolver for tracking first required AT Version #1051
Conversation
…tPlanVersion, given an atId
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of notes! The main thing is that I encountered an error in the graphql playground.
server/graphql-schema.js
Outdated
create subsequent reports after the Test Plan Version has reached | ||
RECOMMENDED. | ||
""" | ||
firstRequiredAtVersion(atId: ID!): AtVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering, how do you feel about calling this earliestMissingAtVersion
? I feel like "missing" might be more descriptive than "required", possibly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "required" in the name relates to the description provided for required reports. "Missing" feels slightly different here for 2 reasons:
- Initially, the name seems like it would return a value that should exist, but doesn't, which isn't what this value is
- If the following is okay though, a "missing" AT Version may not necessarily be the same as a "required" AT version. For example if VO + Firefox got to recommended with any other VO + Browser combinations (not actually possible), it shouldn't produce a result for this based on the description in Update report status dialog for recommended test plans to include information about required AT/Browser versions #792, since it isn't "required"
I was also thinking the first
-> earliest
may cause confusion since it deviates from what was originally proposed but that is currently conceptual and earliest does feel a bit more clear and aligns with other variables in the schema.
Based on the above though, this variable could really be earliestRequiredWhenRecommendedAtVersion
(or similar) if I wanted to fully self-document. But the descriptions around this value help should make this clear. So to avoid further confusion and increased verbosity, how about just earliestAtVersion
?
I've also created a Business Logic Wiki so the definitions of these concepts aren't also lost outside the context of the graphql schema or whatever else other internal app logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
server/graphql-schema.js
Outdated
|
||
This should be used to prevent any older AT Versions from being used to | ||
create subsequent reports after the Test Plan Version has reached | ||
RECOMMENDED. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the depth of this explanation, but even so I had a hard time understanding what this field really means. Would it be possible to describe it in terms of how exactly it fits into the workflow for test plans?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in b916caf. Does that help to clarify?
I got this error with the query 21a0c72 should fix this. Because of how the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified that this is working perfectly now. And thanks for addressing all my feedback.
* Add minimum or exact at version to reports * Quick tweak * Revert home copy change * Remove unused field from createTestPlanReport * Fix undefined var * Prevent API from creating duplicate reports * Support primary test plan to be selected * Fix test * Add dialog when marking report as final for an admin to select from probably primary test run options * prioritised -> prioritized typo (british -> american english) * Avoid displaying primary test plan run confirmation when just 1 run option * Add atVersion frontend * Make sure automation dialog always shows when valid * Make sure existing reports have a minimum at version * Formatting * feat: Add resolver for tracking first required AT Version (#1051) Address #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 --------- Co-authored-by: alflennik <[email protected]>
…s RECOMMENDED (#1052) * Add minimum or exact at version to reports * Quick tweak * Revert home copy change * Remove unused field from createTestPlanReport * Fix undefined var * Prevent API from creating duplicate reports * Support primary test plan to be selected * Fix test * Add resolver for finding firstRequiredAtVersion for a RECOMMENDED TestPlanVersion, given an atId * Add dialog when marking report as final for an admin to select from probably primary test run options * prioritised -> prioritized typo (british -> american english) * Update tests * Track recommended AT version * Avoid displaying primary test plan run confirmation when just 1 run option * Fix graphql call when including "firstRequiredAtVersion" under "testPlanVersions" * Update description of firstRequiredAtVersion * Add atVersion frontend * Make sure automation dialog always shows when valid * Rename resolver * Make sure existing reports have a minimum at version * Formatting * Fix graphql calls when doing testPlanReports > recommendedAtVersion * feat: Add resolver for tracking first required AT Version (#1051) Address #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 * Use exactAtVersionId if available for recommendedAtVersion * Update comment --------- Co-authored-by: alflennik <[email protected]>
…#1087) * Add minimum or exact at version to reports * Quick tweak * Revert home copy change * Remove unused field from createTestPlanReport * Fix undefined var * Prevent API from creating duplicate reports * Support primary test plan to be selected * Fix test * Add dialog when marking report as final for an admin to select from probably primary test run options * prioritised -> prioritized typo (british -> american english) * Avoid displaying primary test plan run confirmation when just 1 run option * Add atVersion frontend * Make sure automation dialog always shows when valid * Make sure existing reports have a minimum at version * Formatting * feat: Add resolver for tracking first required AT Version (#1051) Address #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 * Update status dialog for minimum exact AT versions * Recommended phase uses exact AT version * Remove unneeded ternary * Fix issue caused by using draft reports * Reduce number of at versions shown in status dialog * Fix unused var * Fix incorrect required browser * Address PR feedback --------- Co-authored-by: Howard Edwards <[email protected]>
This PR adds support for tracking "First Required AT Versions as outlined in #792.
firstRequiredAtVersion
on graphql schema'sTestPlanVersion
. When provided an AT id, given that a report has been generated for that test plan version with that AT, it will follow defined rules to return the first required AT version for a TestPlanVersion once it has gotten to RECOMMENDED.Since this is work is also dependent on a "primary test plan run", this is branched off of the work being done on #1001.