Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(repository): use generic cacheable function #271

Merged
merged 8 commits into from
Mar 21, 2024

Conversation

steebchen
Copy link
Collaborator

Description

Fixes # (issue)

Type of change

  • New feature (non-breaking change which adds functionality)

What's Changed

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 20, 2024 10:39am

@steebchen steebchen changed the title feat(repository): cache engine-relevant methods @steebchen feat(repository): use generic cacheable function Mar 15, 2024
@steebchen steebchen changed the title @steebchen feat(repository): use generic cacheable function feat(repository): use generic cacheable function Mar 15, 2024
@steebchen steebchen changed the base branch from main to feat/repository-cache March 15, 2024 15:27
@steebchen steebchen requested a review from abelanger5 March 15, 2024 15:49
Copy link
Contributor

@abelanger5 abelanger5 left a comment

Choose a reason for hiding this comment

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

Yeah this is kinda nice, I like this. I do think we should be careful of using the IDs in the cache and potentially setting a different cache per resource. There are a handful of IDs in the database who are uniquely keyed on tuples like (tenantId, actionId) for example. It would be easy to misuse this and start accidentally poisoning the cache.

@@ -18,6 +18,7 @@ import (
)

func TestMessageQueueIntegration(t *testing.T) {
t.SkipNow()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we skipping these tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

somehow these tests fail on my machine. pushed this by accident, good catch

@abelanger5 abelanger5 merged commit 0c68eb9 into feat/repository-cache Mar 21, 2024
16 checks passed
@abelanger5 abelanger5 deleted the feat/repository-cache-generic branch March 21, 2024 16:53
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