-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Track vendor approvals across version updates through result co…
…py process (#1267) * Tweaks to address visual glitch when clicking last Next button * Add 'nvAccess' vendor seeder * Update signMeInAsVendor function and instructions to support signing in as a specific vendor * Preserve vendor approval status across result copy process * Update snapshots * Prevent phase update to candidate from overwriting older result's vendor approval status * Update tests to verify vendor approval being copied
- Loading branch information
Showing
12 changed files
with
499 additions
and
44 deletions.
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
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
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
10 changes: 9 additions & 1 deletion
10
server/resolvers/TestPlanReportOperations/promoteVendorReviewStatusResolver.js
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const ROLES = { | ||
TESTER: 'TESTER', | ||
ADMIN: 'ADMIN', | ||
VENDOR: 'VENDOR' | ||
}; | ||
|
||
const isTester = (roles = []) => roles.find(role => role.name === ROLES.TESTER); | ||
const isVendor = (roles = []) => roles.find(role => role.name === ROLES.VENDOR); | ||
const isAdmin = (roles = []) => roles.find(role => role.name === ROLES.ADMIN); | ||
|
||
module.exports = { | ||
isTester, | ||
isVendor, | ||
isAdmin | ||
}; |
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.