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

Fetch and display commune name #583

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fetch and display commune name #583

wants to merge 1 commit into from

Conversation

Morendil
Copy link
Collaborator

@Morendil Morendil commented Dec 5, 2024

Purpose

New users from communes should be able to make sense of what they can do with Régie.

Proposal

When arriving at Régie from ProConnect, make sure things are set up properly:

  • lookup the Commune using the provided SIRET
  • ensure the Organization is created with the commune's name

Fixes #610

@Morendil Morendil changed the title Set up Org and Domain for Communes Fetch and display commune name Jan 3, 2025
@Morendil Morendil force-pushed the org-and-domain branch 4 times, most recently from b940300 to 003b150 Compare January 3, 2025 22:02
@Morendil Morendil marked this pull request as ready for review January 4, 2025 11:45
@Morendil Morendil requested review from sdemagny and mjeammet January 4, 2025 11:45
@Morendil
Copy link
Collaborator Author

Morendil commented Jan 7, 2025

@PanchoutNathan On est pas dans les clous par rapport à la maquette: est-ce que tu aurais le temps (genre dans la semaine) de committer ou suggérer ce qu'il faudrait faire ? Sinon on peut merger et corriger plus tard… Thx 🙏

Capture d’écran 2025-01-07 à 16 08 33

Copy link
Member

@mjeammet mjeammet left a comment

Choose a reason for hiding this comment

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

Nice ! Let's try and wait for Nathan for a few days if per chance he can adjust the design of the button by the end of the week. Otherwise, let's gooo !

ANCT-specific extraction of organization names for communes, front
end changes to match.
@Morendil
Copy link
Collaborator Author

Morendil commented Jan 9, 2025

@mjeammet This failed in CI for an interesting reason - the API is rate-limited and we got a 429 error. I don't know how we managed to exceed 7 calls/sec. with only one E2E test exercising it… Not sure how best to proceed - perhaps implement retry logic, or try a different API, or use static data… it raises the question of how to deal with failure cases for something like this where the request is made at a specific point in the lifetime of an organization, and not retried afterward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants