-
Notifications
You must be signed in to change notification settings - Fork 6
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
Haie / événement SQL "dépôt d'un dossier" et "instruction d'un projet" #525
Conversation
request = factory.get("/") | ||
request.COOKIES[settings.VISITOR_COOKIE_NAME] = SESSION_KEY | ||
request.user = type("User", (object,), {"is_staff": False})() | ||
request.site = Site.objects.get(domain=settings.ENVERGO_HAIE_DOMAIN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La clef de session étant obligatoire pour la création d'un log, j'en ai généré une que j'ai attribué à la commande.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
@@ -16,6 +18,9 @@ | |||
|
|||
logger = logging.getLogger(__name__) | |||
|
|||
# This session key is randomly attributed to this command to identify the logs | |||
SESSION_KEY = "248b6fba-07ef-4d73-a9ea-51f3a6cc963e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Est-ce que le format metabase est contraint et empêche d'utiliser quelque chose de plus explicite, comme le nom de la commande par exemple ?
request = factory.get("/") | ||
request.COOKIES[settings.VISITOR_COOKIE_NAME] = SESSION_KEY | ||
request.user = type("User", (object,), {"is_staff": False})() | ||
request.site = Site.objects.get(domain=settings.ENVERGO_HAIE_DOMAIN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
https://trello.com/c/FvKGvWYT/1370-haie-%C3%A9v%C3%A9nement-sql-d%C3%A9p%C3%B4t-dun-dossier-et-instruction-dun-projet