Closed mohamede1945 closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
423b821
) 41.26% compared to head (27329aa
) 41.39%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request reverts a recent change (https://github.com/quran/quran-ios/pull/526) in the matching logic of translations from using
Translation.Id
tofileName
. The update was initially implemented to enhance the accuracy of translation matching. However, it was observed that new versions of the same translation are assigned new IDs, leading to inconsistencies in the matching process.Issue
After updating the matching logic to utilize
Translation.Id
, we encountered a significant issue where new versions of translations received different IDs, breaking the expected continuity and leading to mismatches in our application. This behavior was not anticipated and has affected the stability of the translation matching feature.Resolution
To address this, we've decided to revert to using the
fileName
as the matching reference. ThefileName
has been confirmed with the backend team to be a stable and unchanging field, ensuring consistent matching even when new versions of translations are released.Testing
The changes have been tested locally, and existing automated tests have been updated to reflect this new logic. Manual testing was also conducted to ensure that translations are being matched correctly with their respective
fileName
.