-
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 Minimum / Exact AT Version to Test Plan Reports #997
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e563863
Add minimum or exact at version to reports
alflennik f233b0f
Quick tweak
alflennik 5d7ef54
Revert home copy change
alflennik 408b3f1
Remove unused field from createTestPlanReport
alflennik 1d140c0
Fix undefined var
alflennik 9695e4f
Prevent API from creating duplicate reports
alflennik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,24 +149,29 @@ function AddTestToQueueWithConfirmation({ | |
content={ | ||
'The report could not be created because an existing ' + | ||
'report was found on the reports page with the same AT, ' + | ||
'browser and test plan version. Would you like to return ' + | ||
'the existing report back to the test queue?' | ||
'browser and test plan version. Work is currently ' + | ||
'underway to remove this limitation.' | ||
} | ||
closeLabel="Cancel" | ||
staticBackdrop={true} | ||
actions={[ | ||
{ | ||
label: 'Proceed', | ||
onClick: async () => { | ||
setErrorMessage(false); | ||
if (hasAutomationSupport) { | ||
setShowConfirmation(true); | ||
} else { | ||
await addTestToQueue(); | ||
} | ||
} | ||
} | ||
]} | ||
// The proceed button is disabled because it will now create | ||
// duplicate testPlanReports, and support has not yet been | ||
// implemented across the full frontend to account for | ||
// duplicates. | ||
Comment on lines
+157
to
+160
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably want to defend against this on the backend as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, I added temporary code to enforce that. |
||
|
||
// actions={[ | ||
// { | ||
// label: 'Proceed', | ||
// onClick: async () => { | ||
// setErrorMessage(false); | ||
// if (hasAutomationSupport) { | ||
// setShowConfirmation(true); | ||
// } else { | ||
// await addTestToQueue(); | ||
// } | ||
// } | ||
// } | ||
// ]} | ||
useOnHide | ||
handleClose={async () => { | ||
setErrorMessage(false); | ||
|
@@ -186,8 +191,7 @@ function AddTestToQueueWithConfirmation({ | |
} | ||
}); | ||
const testPlanReport = | ||
res?.data?.findOrCreateTestPlanReport?.populatedData | ||
?.testPlanReport ?? null; | ||
res?.data?.createTestPlanReport?.testPlanReport ?? null; | ||
tpr = testPlanReport; | ||
}, 'Adding Test Plan to Test Queue'); | ||
setShowConfirmation(true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This makes me wonder if we don't actually want to include this change in
main
until the rest of #791 and #792 is also ready. So we can instead treat this as a current dev "base"? Do you have any thoughts on that?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 do think it might become necessary at some point to have a branch for trend report changes. However personally I feel like this code is still mergeable to main, and we haven't arrived at the "ok now we need a separate branch" point.
Other than removing the "proceed" button, I don't think there's much impact on the user experience. In the event the admins do want to move a report from the reports page back to the test queue, we can accommodate that through the API.
That's my perspective but I'm happy to defer to whatever you think is better.
Do you think removing the "work is underway" sentence would mitigate your concern?
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.
Sounds good, I'm okay with not yet considering this the "breaking point", so it could go to
main
but not just yet for 2 reasons:main
(PRs Support results being copied even when commands have been added or removed between versions #967, Copy results from advanced phase #976 and Copy results when adding to Test Queue #978) though.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.
@howard-e do you want to merge it into a branch with a nice name like "trends"?
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.
Sure!