-
Notifications
You must be signed in to change notification settings - Fork 62
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
Soft delete support #471
Soft delete support #471
Conversation
94a576f
to
803fa61
Compare
return evaluations.map((p) => ({ | ||
label: p.name, | ||
href: segments[1] | ||
? ROUTES.evaluations.detail({ uuid: p.uuid })[ | ||
segments[1] as EvaluationRoutes | ||
].root | ||
: ROUTES.evaluations.detail({ uuid: p.uuid }).root, | ||
})) | ||
return evaluations.map((p) => { | ||
const baseRoute = ROUTES.evaluations.detail({ uuid: p.uuid }) | ||
const href = evaluationSegment | ||
? (baseRoute[evaluationSegment]?.root ?? baseRoute.root) | ||
: baseRoute.root | ||
|
||
return { | ||
label: p.name, | ||
href, | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed a bug where the Breadcrumb component failed on /evaluations/<uuid>/destroy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing test for checking in the repository only not soft deleted models are return.
@andresgutgon That's tested in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok got it
1a52deb
to
2946165
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful
PR is about 300-400 LOC, not over 3k... You know the deal with Drizzle.
Added soft delete on drafts, evaluations and providerApiKeys. Soft-deleted rows, or data related to soft-deleted rows (like document logs from removed commits, or evaluation results from removed evaluations) will not be available from the respective repositories. Deleted logs and results are taken into account when calculating workspace usage though.
Additionally, "deleting" a
providerApiKey
will censor the token forever. This means that data can still be aggregated with this provider, it cannot be used to generate new logs.