Skip to content
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

GPS : correctif pour les prescripteurs sans organisation #4265

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

celine-m-s
Copy link
Collaborator

@celine-m-s celine-m-s commented Jun 19, 2024

Nous avons utilisé le parcours de candidature pour la création de bénéficiaires dans GPS. L'objectif était d'aller plus vite en réutilisant l'existant.
Le parcours de candidature a besoin (assez logiquement) d'une Company.pk. Celle qui était passée était la request.current_organization mais cela a posé deux soucis :

  • dans ApplyBaseView, la Company cherchée l'était parfois avec la PK d'une PrescriberOrganization,
  • les prescripteurs sans organisation ont eu des 500.

Après en avoir discuté en équipe, nous proposons d'utiliser le Singleton Pôle emploi uniquement dans ce cas là et en attendant que GPS devienne pérenne. Il sera alors possible de créer un parcours de création dédié.

Copy link

Correction d’un bug

@celine-m-s celine-m-s marked this pull request as draft June 19, 2024 19:16
Copy link
Contributor

@tonial tonial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ca me semble bien répondre au problème de ne pas vouloir ré-écrire un tunnel pour GPS 👍

We used the job application process to create beneficiaries for GPS.
This was a quick attempt to make the MVP work but it had a downside:
a company pk is mandatory. The problem is solo prescribers can't provide one.
So they were shown a 500 page.
To be nice with solo prescribers, let's use the PE Singleton only when `gps` is
present in the job application URL.
I know, this piece of code is a real beauty.
@celine-m-s celine-m-s marked this pull request as ready for review June 20, 2024 10:46
@celine-m-s celine-m-s added this pull request to the merge queue Jun 20, 2024
Merged via the queue into master with commit bf9c59f Jun 20, 2024
11 checks passed
@celine-m-s celine-m-s deleted the celinems/fix-benef-creation branch June 20, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants