Skip to content

ref: Refactor transaction post processing#25826

Merged
lynnagara merged 4 commits intomasterfrom
transactions-post-processing
May 4, 2021
Merged

ref: Refactor transaction post processing#25826
lynnagara merged 4 commits intomasterfrom
transactions-post-processing

Conversation

@lynnagara
Copy link
Copy Markdown
Member

This is the first step towards removing transactions from
post processing entirely. It simply groups the post
processing transaction code so it can be more easily refactored
later.

The only functional change included here is that the metric
events.processed is no longer inclusive of transactions.

This is the first step towards removing transactions from
post processing entirely. It simply groups the post
processing transaction code so it can be more easily refactored
later.

The only functional change included here is that the metric
`events.processed` is no longer inclusive of transactions.
Comment on lines +215 to +224
# Re-bind node data to avoid renormalization. We only want to
# renormalize when loading old data from the database.
event.data = EventDict(event.data, skip_renormalization=True)

# Re-bind Project and Org since we're reading the Event object
# from cache which may contain stale parent models.
event.project = Project.objects.get_from_cache(id=event.project_id)
event.project._organization_cache = Organization.objects.get_from_cache(
id=event.project.organization_id
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could probably move this before the if is_transaction_event statement and just share it for events and transactions

@lynnagara lynnagara merged commit 2a085a4 into master May 4, 2021
@lynnagara lynnagara deleted the transactions-post-processing branch May 4, 2021 20:48
JoshFerge pushed a commit that referenced this pull request May 4, 2021
This is the first step towards removing transactions from
post processing entirely. It simply groups the post
processing transaction code so it can be more easily refactored
later.

The only functional change included here is that the metric
events.processed is no longer inclusive of transactions.
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants