Skip to content

Conversation

@neil-marcellini
Copy link
Contributor

@neil-marcellini neil-marcellini commented Sep 1, 2025

Explanation of change

In the related issue, we are logging differences between the report title that is calculated according to the custom formula by Auth and by Web Expensify. I am pretty sure that this is happening because Web Expensify is using stale report data when it computes the title and Auth is using up-to-date data. In order to be able to ignore these logs, we are going to include the commit count when the report was loaded and the commit count that Auth used when computing the title. With that information, we can easily see when the title would have been computed correctly if not for the fact that it is using stale data.

Currently Bedrock-PHP only saves the commitCount for write commands, but in order to keep track of the commitCount when reports are loaded, it needs to be saved for all report load requests. Therefore, let's add a flag that can be set in an Auth response to explicitly tell BedrockPHP to save the commit count.

Related Issues

https://github.com/Expensify/Expensify/issues/540370

Tests

This PR will be tested along with the Web-E PR. Please see the tests there.

@neil-marcellini neil-marcellini requested a review from a team September 1, 2025 15:23
@neil-marcellini neil-marcellini self-assigned this Sep 1, 2025
@neil-marcellini neil-marcellini marked this pull request as draft September 1, 2025 15:23
@melvin-bot melvin-bot bot requested review from cristipaval and removed request for a team September 1, 2025 15:24
@neil-marcellini neil-marcellini marked this pull request as ready for review September 2, 2025 16:09
@rlinoz rlinoz merged commit c025628 into main Sep 4, 2025
2 checks passed
@rlinoz rlinoz deleted the neil-shouldSaveCommitCount branch September 4, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants