Skip to content

Add AccountService and CacheManager#2920

Merged
wanghoppe merged 11 commits intomainfrom
hoppe/account-cache
Jul 11, 2024
Merged

Add AccountService and CacheManager#2920
wanghoppe merged 11 commits intomainfrom
hoppe/account-cache

Conversation

@wanghoppe
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 91.57303% with 15 lines in your changes missing coverage. Please review.

Project coverage is 67.62%. Comparing base (225ef88) to head (fdb6a42).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2920      +/-   ##
==========================================
+ Coverage   67.50%   67.62%   +0.12%     
==========================================
  Files        1262     1269       +7     
  Lines       34257    34418     +161     
  Branches     6303     6325      +22     
==========================================
+ Hits        23124    23276     +152     
- Misses      10963    10970       +7     
- Partials      170      172       +2     
Files Coverage Δ
packages/bonito-core/src/cache/cache-manager.ts 100.00% <100.00%> (ø)
packages/bonito-core/src/cache/cache-utils.ts 100.00% <100.00%> (ø)
packages/bonito-core/src/cache/index.ts 100.00% <100.00%> (ø)
...ages/bonito-core/src/cache/memory-cache-manager.ts 100.00% <100.00%> (ø)
...ackages/bonito-core/src/environment/environment.ts 100.00% <100.00%> (ø)
...es/bonito-core/src/environment/mock-environment.ts 87.17% <100.00%> (+0.69%) ⬆️
packages/bonito-core/src/service/operations.ts 16.66% <ø> (ø)
...ckages/service/src/account/fake-account-service.ts 100.00% <100.00%> (ø)
...ckages/service/src/account/live-account-service.ts 100.00% <100.00%> (ø)
...ages/service/src/environment/batch-dependencies.ts 100.00% <100.00%> (ø)
... and 5 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 225ef88...fdb6a42. Read the comment docs.

@wanghoppe wanghoppe marked this pull request as ready for review July 3, 2024 18:59
Copy link
Member

@dpwatrous dpwatrous left a comment

Choose a reason for hiding this comment

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

This looks really good overall, but I do think we need some answers around cache invalidation.

@wanghoppe
Copy link
Member Author

Regarding to return undefined when we see a 404. In real case, like in the vm extensions list blade, should we still throw an exception when the account is not found?

@dpwatrous dpwatrous self-requested a review July 10, 2024 23:26
@wanghoppe wanghoppe merged commit 6e52e29 into main Jul 11, 2024
@wanghoppe wanghoppe deleted the hoppe/account-cache branch July 11, 2024 00:23
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.

2 participants