JMitnik / haas

haas
0 stars 0 forks source link

Workspacegrid - PrismaCacheService & Bug fixes #401

Closed JMitnik closed 2 years ago

JMitnik commented 2 years ago

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

linear[bot] commented 2 years ago
HAAS-315 WorkspaceGrid: Hexagons not up-to-date

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)

aws-amplify-eu-central-1[bot] commented 2 years ago

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-401.d36c61y3h9mqcx.amplifyapp.com