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

Delete cache version on reset db #6426

Merged
merged 1 commit into from
Jul 27, 2024

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jul 26, 2024

As title

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request introduces a mechanism to reset the cache version when the database is reset, ensuring data consistency.

  • data-seed-dev-workspace.command.ts: Added call to deleteVersion method of WorkspaceCacheVersionService for each workspace ID.
  • workspace-cache-version.service.ts: Introduced deleteVersion method to delete a workspace cache version by its workspaceId.

Ensure deleteVersion is idempotent and handles errors gracefully.

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@charlesBochet charlesBochet merged commit 368f142 into main Jul 27, 2024
6 checks passed
@charlesBochet charlesBochet deleted the tt-delete-cache-version-on-reset-db branch July 27, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants