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

Move receipt-specific logic into ReceiptAccumulator #3320

Merged
merged 4 commits into from
Apr 27, 2023

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Apr 26, 2023

Part of element-hq/element-web#24629

Move all the logic for processing receipts into the ReceiptAccumulator, so we can create simpler tests, and so it's easier to deal with when we start fixing bugs in it.

It's probably worth looking at this commit-by-commit.


This change is marked as an internal change (Task), so will not be included in the changelog.

@andybalaam andybalaam added the T-Task Tasks for the team like planning label Apr 26, 2023
@andybalaam andybalaam changed the title Andybalaam/more code in receipt accumulator Move receipt-specifc logic into ReceiptAccumulator Apr 26, 2023
@andybalaam andybalaam changed the title Move receipt-specifc logic into ReceiptAccumulator Move receipt-specific logic into ReceiptAccumulator Apr 26, 2023
@andybalaam andybalaam marked this pull request as ready for review April 26, 2023 15:12
@andybalaam andybalaam requested a review from a team as a code owner April 26, 2023 15:12
@andybalaam andybalaam requested review from dbkr and justjanne and removed request for a team April 26, 2023 15:12
@weeman1337 weeman1337 self-requested a review April 26, 2023 15:16
Base automatically changed from andybalaam/factor-out-receipt-accumulator to develop April 26, 2023 15:31
Copy link
Contributor

@weeman1337 weeman1337 left a comment

Choose a reason for hiding this comment

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

👍 Looks good.

};
};
};
_receipts: ReceiptAccumulator;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really something that should be exposed via the interface?
It looks more like implementation specific to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't want to mess around with the design of the sync accumulator more than I needed to. I haven't really thought about what this interface actually does - let's discuss it sometime.

@andybalaam andybalaam force-pushed the andybalaam/more-code-in-receipt-accumulator branch from de9a4b3 to 80903de Compare April 27, 2023 07:18
@andybalaam andybalaam enabled auto-merge April 27, 2023 07:19
@andybalaam andybalaam added this pull request to the merge queue Apr 27, 2023
Merged via the queue into develop with commit 3d86821 Apr 27, 2023
@andybalaam andybalaam deleted the andybalaam/more-code-in-receipt-accumulator branch April 27, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants