-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Feature] Development programs backend #12481
Merged
+806
β14
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9756abc
model skeleton
petertgiles 6189323
tidy factory
petertgiles 6e91365
fix classification relationship name
petertgiles 9232627
schema update
petertgiles 13f5215
development program interest model and seeder
petertgiles 0e641fb
schema update for interest in development programs
petertgiles d2e0405
create and update
petertgiles 923ed59
validators
petertgiles 86a9a3a
phpunit tests
petertgiles b9f147c
fix seeder
petertgiles bac292e
non-localized enum
petertgiles 9acd5d2
update built schema
petertgiles 3d3dcb7
fix tests
petertgiles 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
Loading status checksβ¦
non-localized enum
commit bac292e58c480f7698b65f1b2eb04fc91d749d38
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
Unchanged files with check annotations Beta
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
</Svg> | ||
); | ||
export default BackgroundGraphic; | ||
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
user: Pick<User, "firstName" | "lastName">, | ||
) => <ChangeDateDialog selectedCandidateQuery={candidate} user={user} />; | ||
export function viewTeamLinkCell( | ||
url: Maybe<string> | undefined, | ||
displayName: Maybe<LocalizedString> | undefined, | ||
intl: IntlShape, |
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
// eslint-disable-next-line deprecation/deprecation | ||
const educationLevel: string | undefined = hasDiplomaToEducationLevel( | ||
applicantFilter?.hasDiploma, | ||
intl, | ||
); | ||
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
); | ||
} | ||
export function viewTeamLinkCell( | ||
url: Maybe<string> | undefined, | ||
displayName: Maybe<LocalizedString> | undefined, | ||
intl: IntlShape, |
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
positionDuration: applicantFilter?.positionDuration | ||
? applicantFilter.positionDuration | ||
: null, | ||
hasDiploma: applicantFilter?.hasDiploma | ||
? applicantFilter?.hasDiploma | ||
: false, | ||
equity: applicantFilter?.equity, | ||
languageAbility: applicantFilter?.languageAbility, |
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
const operationalRequirementFilterCount = | ||
filters?.operationalRequirements?.length ?? 0; | ||
const educationSelection = filters?.hasDiploma; | ||
const workingLanguage = filters?.languageAbility; | ||
const employmentDuration = filters?.positionDuration; | ||
const skillCount = filters?.skills?.length ?? 0; |
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
...(data?.equity?.isVisibleMinority ? ["isVisibleMinority"] : []), | ||
...(data?.equity?.isWoman ? ["isWoman"] : []), | ||
], | ||
educationRequirement: data.hasDiploma ? "has_diploma" : "no_diploma", | ||
skills: data.skills?.filter(notEmpty).map((s) => s.id) ?? [], | ||
stream: stream?.id ?? "", | ||
locationPreferences: data.locationPreferences?.filter(notEmpty) ?? [], |
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
isIndigenous: applicantFilter.equity?.isIndigenous, | ||
isVisibleMinority: applicantFilter.equity?.isVisibleMinority, | ||
}, | ||
hasDiploma: applicantFilter?.hasDiploma, | ||
positionDuration: applicantFilter?.positionDuration, | ||
languageAbility: applicantFilter.languageAbility?.value, | ||
locationPreferences: applicantFilter?.locationPreferences |
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
return false; | ||
}; | ||
export const isTeamTeamable = ( | ||
teamable: Teamable | undefined | null, | ||
): teamable is TeamTeamable => { | ||
if (teamable && teamable.__typename === "Team") { |
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.
I've elected to not back-end localize this enum. On the applicant side, the UI uses the first person "I'm..." form of description and I don't see the descriptions on the admin side at all.