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: soft delete #717

Merged
merged 27 commits into from
Jul 18, 2024
Merged

feat: soft delete #717

merged 27 commits into from
Jul 18, 2024

Conversation

grutt
Copy link
Contributor

@grutt grutt commented Jul 12, 2024

Description

Changes the delete strategy from hard to soft delete for relations with deep cascades

Type of change

  • Refactor (non-breaking changes to code which doesn't change any behaviour)

Copy link

vercel bot commented Jul 12, 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 Jul 17, 2024 9:06pm

@grutt grutt marked this pull request as ready for review July 16, 2024 14:35
}

model GetGroupKeyRun {
// base fields
id String @id @unique @default(uuid()) @db.Uuid
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
deletedAt DateTime?
deletedAt DateTime? // TODO verify we're setting this
Copy link
Contributor

Choose a reason for hiding this comment

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

Address todo?

pkg/repository/prisma/dbsqlc/events.sql Outdated Show resolved Hide resolved
@@ -37,7 +37,7 @@ type ServerConfigFile struct {

MessageQueue MessageQueueConfigFile `mapstructure:"msgQueue" json:"msgQueue,omitempty"`

Services []string `mapstructure:"services" json:"services,omitempty" default:"[\"health\", \"ticker\", \"grpc\", \"eventscontroller\", \"queue\", \"webhookscontroller\", \"heartbeater\"]"`
Services []string `mapstructure:"services" json:"services,omitempty" default:"[\"health\", \"ticker\", \"grpc\", \"eventscontroller\", \"queue\", \"webhookscontroller\", \"heartbeater\", \"retention\"]"`
Copy link
Contributor

Choose a reason for hiding this comment

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

As a heads up, this is not going to be enabled for existing installations that have a generated config file (via docker compose). We should support regenerating the config file with changes like this eventually.

@abelanger5 abelanger5 merged commit b7cec9e into main Jul 18, 2024
25 checks passed
@abelanger5 abelanger5 deleted the feat--soft-delete branch July 18, 2024 13:06
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.

None yet

2 participants