These git hooks runs bundle
or npm install
automatically whenever you:
git checkout
a new branch with a different Gemfile or package.json.git pull
a change to Gemfile or package.json.
cd awesome_git_repo
{"client":"Thunder Client","collectionName":"DfE ttapi","dateExported":"2022-12-01T14:44:21.609Z","version":"1.1","folders":[],"requests":[{"_id":"5c832b22-a335-4487-95ac-f5f86129a031","colId":"0888a3c5-e2ec-44f8-9621-1ea0cf4a1394","containerId":"","name":"Providers","url":"{{base_url_qa}}/{{api/public/v1}}/{{recruitment_cycles/2023}}/providers","method":"GET","sortNum":10000,"created":"2022-12-01T09:07:58.330Z","modified":"2022-12-01T14:44:08.715Z","headers":[],"params":[],"tests":[{"type":"set-env-var","custom":"","action":"setto","value":"{{server}}"}]},{"_id":"e1969d15-2d96-401b-8784-0e8c949008bd","colId":"0888a3c5-e2ec-44f8-9621-1ea0cf4a1394","containerId":"","name":"Provider","url":"{{base_url_qa}}/{{api/public/v1}}/{{recruitment_cycles/2023}}/providers/1BJ","method":"GET","sortNum":20000,"created":"2022-12-01T09:19:51.202Z","modified":"2022-12-01T14:42:39.057Z","headers":[],"params":[],"tests":[{"type":"set-env-var","custom":"","action":"setto","value":"{{server}}"}]},{"_id":"34bff35e-e669-4137-8d5e-99 |
ap = RecruitmentCycle.current.providers.find_by(provider_code: "E75") | |
nap = { | |
"1KM": RecruitmentCycle.current.providers.find_by( provider_code: "M82"), | |
"1K8": RecruitmentCycle.current.providers.find_by( provider_code: "E69"), | |
"3H5": RecruitmentCycle.current.providers.find_by( provider_code: "E69"), | |
"285": RecruitmentCycle.current.providers.find_by( provider_code: "F82"), | |
"1ZH": RecruitmentCycle.current.providers.find_by( provider_code: "F82"), | |
"2G1": RecruitmentCycle.current.providers.find_by( provider_code: "F82"), |
convert "1000 trainees.gif" -coalesce "coalesce/1000 trainees.gif" | |
convert "coalesce/1000 trainees.gif" -trim +repage -resize '640x320>' -gravity center -background transparent -extent 640x320 "cropped/1000 trainees.gif" |
####### | |
# This is the latest (previous courses) | |
# flatten exploded courses over allocations + leftover allocations | |
# to use rails c | |
# copy and paste dump tip | |
####### | |
courses = Subject.find_by(subject_code: "C6").courses.with_recruitment_cycle(RecruitmentCycle.next.year).with_funding_types(["fee"]) |
items = Allocation.where(recruitment_cycle_id: RecruitmentCycle.current).map do |a | | |
{ | |
accredited_body_code: a.accredited_body_code, | |
accredited_body_name: a.accredited_body.provider_name, | |
provider_code: a.provider_code, | |
provider_name: a.provider.provider_name, | |
confirmed_number_of_places: a.confirmed_number_of_places, | |
request_type: a.request_type, | |
number_of_places: a.number_of_places, | |
url: "https://qa.publish-teacher-training-courses.service.gov.uk/organisations/#{a.accredited_body_code}/2021/allocations", |
items = (RecruitmentCycle.current.providers.lead_school.map do |p| | |
p.users.non_admins.map do |u| | |
{ | |
provider_name: p.provider_name, | |
email: u.email, | |
} | |
end | |
end).flatten | |
SUBJECTS = [ | |
{:name=>"Primary", :level=>:primary}, | |
{:name=>"Primary with English", :level=>:primary}, | |
{:name=>"Primary with geography and history", :level=>:primary}, | |
{:name=>"Primary with mathematics", :level=>:primary}, | |
{:name=>"Primary with modern languages", :level=>:primary}, | |
{:name=>"Primary with physical education", :level=>:primary}, | |
{:name=>"Primary with science", :level=>:primary}, | |
{:name=>"Art and design", :level=>:secondary}, | |
{:name=>"Science", :level=>:secondary}, |
🎉 Merged PR #3048 in DFE-Digital/publish-teacher-training | |
🗣 Commented on #1524 in DFE-Digital/find-teacher-training | |
🎉 Merged PR #1526 in DFE-Digital/find-teacher-training | |
🎉 Merged PR #1523 in DFE-Digital/find-teacher-training | |
🎉 Merged PR #1514 in DFE-Digital/find-teacher-training |
issues = RecruitmentCycle.current.courses.with_funding_types(["apprenticeship"]).distinct | |
xxxx = issues.map do |c| | |
provider_code = c.provider.provider_code | |
course__findable = c.findable? | |
find_url = course__findable ? "https://www.find-postgraduate-teacher-training.service.gov.uk/course/#{provider_code}/#{c.course_code}" : "" | |
pub_url = "https://www.publish-teacher-training-courses.service.gov.uk/organisations/#{provider_code}/2020/courses/{c.course_code}" |