-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/create_change_requests_for_segments
- Loading branch information
Showing
33 changed files
with
367 additions
and
687 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "2.153.0" | ||
".": "2.154.0" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
import logging | ||
|
||
from rest_framework.request import Request | ||
|
||
from integrations.lead_tracking.hubspot.constants import HUBSPOT_COOKIE_NAME | ||
from users.models import HubspotTracker | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def register_hubspot_tracker(request: Request) -> None: | ||
hubspot_cookie = request.COOKIES.get(HUBSPOT_COOKIE_NAME) | ||
|
||
# TODO: Remove this temporary debugging logger statement. | ||
logger.info(f"Request cookies for user {request.user.email}: {request.COOKIES}") | ||
|
||
if hubspot_cookie: | ||
logger.info( | ||
f"Creating HubspotTracker instance for user {request.user.email} with cookie {hubspot_cookie}" | ||
) | ||
|
||
HubspotTracker.objects.update_or_create( | ||
user=request.user, | ||
defaults={ | ||
"hubspot_cookie": hubspot_cookie, | ||
}, | ||
) | ||
else: | ||
logger.info( | ||
f"Could not create HubspotTracker instance for user {request.user.email} since no cookie" | ||
) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 4.2.16 on 2024-11-08 18:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("tags", "0006_alter_tag_type"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="tag", | ||
name="color", | ||
field=models.CharField( | ||
default="#6837FC", | ||
help_text="Hexadecimal value of the tag color", | ||
max_length=10, | ||
), | ||
), | ||
] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.