Skip to content

Commit

Permalink
chore(rdvi): remove RDV-Insertion ID from company
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-naeka committed Sep 12, 2024
1 parent 4f88d4b commit 391c035
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 26 deletions.
16 changes: 16 additions & 0 deletions itou/companies/migrations/0009_remove_company_rdv_insertion_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Django 5.0.9 on 2024-09-12 09:19

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("companies", "0008_auto_20240912_1102"),
]

operations = [
migrations.RemoveField(
model_name="company",
name="rdv_insertion_id",
),
]
8 changes: 0 additions & 8 deletions itou/companies/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,6 @@ class Company(AddressMixin, OrganizationAbstract):
verbose_name="score de recommandation (ratio de candidatures récentes vs nombre d'offres d'emploi)", null=True
)

rdv_insertion_id = models.IntegerField(
verbose_name="identifiant d'organisation RDV-I",
blank=True,
null=True,
unique=True,
help_text="Permet d'initier la prise de RDV via RDV-I lorsque renseigné.",
error_messages={"unique": "Une entreprise avec cet ID d'organisation RDV-I existe déjà."},
)
rdv_solidarites_id = models.IntegerField(
verbose_name="identifiant d'organisation RDV-S",
blank=True,
Expand Down
4 changes: 0 additions & 4 deletions tests/www/apply/__snapshots__/test_process.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id",
EXISTS
(SELECT %s AS "a"
Expand Down Expand Up @@ -435,7 +434,6 @@
T12."job_applications_blocked_at",
T12."convention_id",
T12."job_app_score",
T12."rdv_insertion_id",
T12."rdv_solidarites_id",
"eligibility_geiqeligibilitydiagnosis"."id",
"eligibility_geiqeligibilitydiagnosis"."author_id",
Expand Down Expand Up @@ -510,7 +508,6 @@
T15."job_applications_blocked_at",
T15."convention_id",
T15."job_app_score",
T15."rdv_insertion_id",
T15."rdv_solidarites_id",
T16."id",
T16."address_line_1",
Expand Down Expand Up @@ -574,7 +571,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id",
T17."id",
T17."password",
Expand Down
11 changes: 0 additions & 11 deletions tests/www/employees_views/__snapshots__/test_detail.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id",
EXISTS
(SELECT %s AS "a"
Expand Down Expand Up @@ -355,7 +354,6 @@
T8."job_applications_blocked_at",
T8."convention_id",
T8."job_app_score",
T8."rdv_insertion_id",
T8."rdv_solidarites_id",
T9."id",
T9."address_line_1",
Expand Down Expand Up @@ -825,7 +823,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "companies_company"
WHERE "companies_company"."id" = %s
Expand Down Expand Up @@ -1170,7 +1167,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "job_applications_jobapplication"
INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id")
Expand Down Expand Up @@ -1654,7 +1650,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id",
EXISTS
(SELECT %s AS "a"
Expand Down Expand Up @@ -1892,7 +1887,6 @@
T8."job_applications_blocked_at",
T8."convention_id",
T8."job_app_score",
T8."rdv_insertion_id",
T8."rdv_solidarites_id",
T9."id",
T9."address_line_1",
Expand Down Expand Up @@ -2275,7 +2269,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "companies_company"
WHERE "companies_company"."id" = %s
Expand Down Expand Up @@ -2633,7 +2626,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "job_applications_jobapplication"
INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id")
Expand Down Expand Up @@ -3306,7 +3298,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id",
EXISTS
(SELECT %s AS "a"
Expand Down Expand Up @@ -3544,7 +3535,6 @@
T8."job_applications_blocked_at",
T8."convention_id",
T8."job_app_score",
T8."rdv_insertion_id",
T8."rdv_solidarites_id",
T9."id",
T9."address_line_1",
Expand Down Expand Up @@ -4099,7 +4089,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "job_applications_jobapplication"
INNER JOIN "companies_company" ON ("job_applications_jobapplication"."to_company_id" = "companies_company"."id")
Expand Down
3 changes: 0 additions & 3 deletions tests/www/job_seekers_views/__snapshots__/test_details.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "eligibility_geiqeligibilitydiagnosis"
LEFT OUTER JOIN "companies_company" ON ("eligibility_geiqeligibilitydiagnosis"."author_geiq_id" = "companies_company"."id")
Expand Down Expand Up @@ -1480,7 +1479,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "eligibility_eligibilitydiagnosis"
INNER JOIN "users_user" T3 ON ("eligibility_eligibilitydiagnosis"."author_id" = T3."id")
Expand Down Expand Up @@ -1663,7 +1661,6 @@
"companies_company"."job_applications_blocked_at",
"companies_company"."convention_id",
"companies_company"."job_app_score",
"companies_company"."rdv_insertion_id",
"companies_company"."rdv_solidarites_id"
FROM "job_applications_jobapplication"
LEFT OUTER JOIN "users_user" T3 ON ("job_applications_jobapplication"."sender_id" = T3."id")
Expand Down

0 comments on commit 391c035

Please sign in to comment.