Repository navigation
Conversation
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
from
November 4, 2026 19:17
056dc89 to
171657a
Compare
8 tasks
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
from
November 4, 2026 21:38
171657a to
afcb88c
Compare
HachemJ
marked this pull request as ready for review
November 10, 2026 16:19
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
4 times, most recently
from
November 19, 2026 19:55
418c4fb to
00fdc6d
Compare
HenriRabalais
requested changes
Nov 20, 2026
| foreach ($identifiers as $identifier) { | ||
| $identifierType = $identifier->type; | ||
|
|
||
| // Check project restrictions. |
Collaborator
There was a problem hiding this comment.
this project and permission check is the same as _canAccessIdentifierType in the identifiers API endpoint, could it live in one place? Say a method on IdentifierType or IdentifierTypeController that both call
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
from
November 24, 2026 18:41
00fdc6d to
b9ae870
Compare
Contributor
Author
|
Thanks for the review on Part 6 (Candidate Identifiers Widget), Henri! I've addressed your comments:
Ready for another review. Thanks! |
HenriRabalais
approved these changes
Nov 25, 2026
HenriRabalais
left a comment
Collaborator
There was a problem hiding this comment.
thanks for moving the check into IdentifierTypeController! looks good to me 🙂
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
from
November 26, 2026 16:02
b9ae870 to
bcae070
Compare
HachemJ
force-pushed
the
AddCandidateIdentifiersWidget
branch
from
November 27, 2026 19:32
bcae070 to
3a2891d
Compare
Contributor
Author
|
The last force push is to rebase onto the latest version of Part 5. |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Brief summary of changes
This PR adds a Candidate Identifiers widget to the candidate dashboard, allowing users to view a candidate's identifiers directly from their profile.
This PR depends on #11279.
Changes
Testing Instructions
Widget functionality
Permission restrictions
The following SQL commands use ExternalID (identifier type ID 2), user ID 1, and the
edit_policiespermission (permission ID 94) as examples. Adjust these IDs according to your local raisinbread test database if needed.Assign a required permission to ExternalID:
Ensure the test user does not have the required permission or superuser permission:
Note: Superusers bypass individual permission checks.
Log out and log back in. Open a candidate profile containing an ExternalID and verify that it is no longer displayed.
Verify that identifiers without additional permission restrictions remain visible.
Grant the required permission to the test user:
Log out and log back in. Verify that ExternalID is displayed again.
Project restrictions
The following example assumes that the candidate belongs to project 1 and that the test user has access to that project.
Restrict ExternalID to a different project:
Refresh the candidate profile and verify that ExternalID is not displayed.
Change the restriction to match the candidate's project:
Refresh the candidate profile and verify that ExternalID is displayed again.
Verify that users without access to the required project cannot view the restricted identifier.
API regression testing
Verify that the candidate identifiers API continues to enforce the same permission and project restrictions when viewing, adding, editing, and deleting identifiers.