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

Haie / événement SQL "dépôt d'un dossier" et "instruction d'un projet" #525

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

Comment on lines 268 to 271
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)
Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice 👍

@pyDez pyDez requested a review from thibault January 20, 2025 14:16
@@ -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"
Copy link
Collaborator

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 ?

Comment on lines 268 to 271
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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice 👍

@pyDez pyDez merged commit 414a4e5 into main Jan 27, 2025
8 checks passed
@pyDez pyDez deleted the feature/project-analytics branch January 27, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants