Prolonger la validité d'un token visiteur (#1747)#2166
Open
BySplashGm wants to merge 5 commits intoafup:masterfrom
Open
Prolonger la validité d'un token visiteur (#1747)#2166BySplashGm wants to merge 5 commits intoafup:masterfrom
BySplashGm wants to merge 5 commits intoafup:masterfrom
Conversation
Permet de prolonger la validité d'un token visiteur de 3 jours depuis la liste des tokens dans l'administration des événements.
Contributor
Author
|
Je n'étais pas trop sûr de comment définir la durée de prolongation; dans l'issue il est dit "disons 3 de façon totalement arbitraire" j'ai donc mis une constante, mais je pense qu'il serait possible de faire autrement ? |
Mopolo
approved these changes
Mar 19, 2026
Contributor
Mopolo
left a comment
There was a problem hiding this comment.
Je pense que la constante comme ça c'est très bien pour le moment.
Si vraiment à l'usage on se rend compte que ça serait bien que ce soit paramétrable on verra.
Merci pour la contribution :)
Contributor
Author
|
Avec plaisir, si jamais la constante est modifiée il faudra penser à modifier le test TokensVIsiteurs.feature 😉 |
stakovicz
approved these changes
Mar 19, 2026
sources/AppBundle/Controller/Admin/Event/ExtendSpecialPriceAction.php
Outdated
Show resolved
Hide resolved
sources/AppBundle/Controller/Admin/Event/SpecialPriceAction.php
Outdated
Show resolved
Hide resolved
…ion.php Co-authored-by: Albin Kester <83301974+stakovicz@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ajout d'un bouton permettant de prolonger la validité d'un token visiteur de 3 jours depuis la liste des tokens dans l'administration des événements.
Changements
admin_event_special_price_extend(/event/special_price/{id}/extend)ExtendSpecialPriceActionqui décale la date de fin du tokenEXTEND_DAYS = 3dansSpecialPriceActionpartagée entre le controller et le templateprimary: truemanquant dans les métadonnées duTicketSpecialPriceRepository(nécessaire pour queget($id)fonctionne)Tests
Screenshots