Closed JMitnik closed 2 years ago
Hexagons are still buggy; after certain date-ranges, the hexagons might be lagging behind on the statistics (there is data according to the filtering, but the hexagons are lacking behind)
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-401.d36c61y3h9mqcx.amplifyapp.com
Fixes HAAS-315
Caching issues: Introducing, PrismaCacheService
The cache did not work for upserting, and blocked hexagons from being updated.
In this update, this is fixed by extracting the cahcing logic to its own service, which can now be reused across the workspace. Furthermore, any potential upsert race condition issues are logged to the console and do not block flow execution.
See an implementation in the StatisticsSummary service for how it works.
Note: This relies on the fact that each record can be retrieved based purely on their key.
Extra bug-fix:
Another bug that was introduced after the adjustment of the scores, was that if a score falls between 76 and 75, it becomes red. This has been fixed