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

fix: Autoriser seulement les "GET" sur PerimeterAutocompleteViewSet #1615

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

Guilouf
Copy link
Collaborator

@Guilouf Guilouf commented Dec 27, 2024

Quoi ?

D'après ce bug sur sentry les appels http de type OPTIONS aboutissent à des erreurs.

Pourquoi ?

Contrairement aux autres urls de l'API, cette url ne respecte pas un format correct et limite arbitrairement les résultats sans pagination. Les autres verbes http n'ont pas été prévus quand cette modification a été effectuée, menant à des erreurs.

Comment ?

Seul le verbe GET est désormais autorisé. L'autre option était de rendre standard cette partie de l'API, mais il aurait fallu changer aussi le code coté client qui consomme cette url.

@Guilouf Guilouf added the bug Something isn't working label Dec 27, 2024
@Guilouf Guilouf self-assigned this Dec 27, 2024
Copy link
Contributor

@madjid-asa madjid-asa left a comment

Choose a reason for hiding this comment

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

LGTM

@Guilouf Guilouf changed the title fix: Allow only get http method on PerimeterAutocompleteViewSet fix: Autoriser seulement les "GET" sur PerimeterAutocompleteViewSet Dec 30, 2024
@Guilouf Guilouf merged commit 848df37 into master Dec 30, 2024
10 checks passed
@Guilouf Guilouf deleted the guilouf/autocomplete-bug branch December 30, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants