-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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(analytics): june debug for real #1033
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Risk Level 2 - /home/runner/work/quivr/quivr/frontend/app/upload/components/FileUploader/hooks/useFileUploader.ts The code is generally well written and follows good practices. However, there are a few areas that could be improved for better error handling and readability.
Risk Level 3 - /home/runner/work/quivr/quivr/frontend/services/analytics/useEventTracking.ts The changes in this file include the addition of console logs and the use of a new analytics service. While console logs can be useful for debugging, they should be removed in production code to avoid exposing potentially sensitive information. The use of a new analytics service could potentially introduce new bugs, so thorough testing is recommended. Also, the user's email is being sent as a property to the await analytics.identify(session?.user.id, { email: session?.user.email }); Risk Level 4 - /home/runner/work/quivr/quivr/frontend/services/analytics/useJune.ts The changes in this file include the addition of console logs and the use of an API key from the environment variables. As mentioned before, console logs should be removed in production code. The use of the API key from the environment variables is a good practice as it keeps sensitive information out of the code. However, it's important to ensure that the environment variable is properly set in all environments where the code will run. If the API key is not set, the analytics service will not work. const juneApiKey = process.env.NEXT_PUBLIC_JUNE_API_KEY; 📝🔍🔐 Powered by Code Review GPT |
@@ -31,6 +32,7 @@ export const useCrawler = () => { | |||
const url = urlInputRef.current ? urlInputRef.current.value : null; | |||
|
|||
if (url === null || !isValidUrl(url)) { | |||
console.log("Invalid URL"); |
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.
👀
@@ -52,6 +54,7 @@ export const useCrawler = () => { | |||
|
|||
setCrawling(true); | |||
|
|||
console.log("Tracking URL_CRAWLED"); |
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.
👀
* 🔥 remove Suspense because no ssr in front anymore * ✨ add debugging * 🔥 remove debugger and better logs * 🐛 fixed tracker by adding it to dependencies * 🚨 add dependencies to hooks * 🚨 remove linter warning from unawaited promise
Description
Bug origin was missing "track" of june hook from dependencies
Checklist before requesting a review
Please delete options that are not relevant.
Screenshots (if appropriate):