Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions spire/humbug/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def generate_humbug_dependencies(


async def remove_humbug_dependencies(
db_session: Session,
token: UUID,
humbug_event: HumbugEvent,
db_session: Session, token: UUID, humbug_event: HumbugEvent,
) -> None:
"""
Delete autogenerated user and remove it from journal holders.
Expand Down Expand Up @@ -355,9 +353,7 @@ async def create_humbug_user(
Create bugout autogenerated user for Humbug integration.
"""
new_humbug_user = HumbugBugoutUser(
user_id=user_id,
access_token_id=access_token_id,
event_id=event_id,
user_id=user_id, access_token_id=access_token_id, event_id=event_id,
)
db_session.add(new_humbug_user)
db_session.commit()
Expand Down Expand Up @@ -478,7 +474,7 @@ async def push_pack_to_journals_api(
JournalEntryContent(
title=report.title,
content=report.content,
tags=report.tags,
tags=[tag for tag in report.tags if tag and len(tag) <= 1024],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It not save, it checks only length of each tag, but I can still push 1,000,000 tags

context_id=str(restricted_token),
context_type="humbug",
created_at=report.created_at,
Expand Down