-
Notifications
You must be signed in to change notification settings - Fork 6
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
Change SoftDelete for AverageRatings, Ratings and QuartzJobs. #1241
Conversation
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.
See no issues in logic. Few code suggestion were mentioned in comments, though they might be out of scope
@VadymLevkovskyi I like the |
@DmyMi - it's a good point I hadn't thought before. Let's investigate. So main question (as for me) - do we really need that "id-less" dto's? If yes - we need 2 sets of dto's (with/without id field), So naive solution for 1st variant: Mechanical "improvement" of 1st variant: Solution for 2nd variant: Slightly improved solution for 2nd variant - rehydrate UI These're possible solutions I can see, and, pay attention, that "magical Dto" interfaces (mentioned initially) aren't really the obstacle. And here are (finally) my recommendations:
Unfortunately both my suggestions requires extra coding, so please "choose your poison" ) -- |
{ | ||
builder.HasKey(x => x.Id); | ||
|
||
builder.HasIndex(x => x.IsDeleted); |
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.
do we ready need to track deleted quartz jobs? They they are either useful and exist in db or not usefull and we can safely delete it completely.
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.
Ok. I'll fix it in the next PR.
SonarCloud Quality Gate failed. 0 Bugs 53.8% Coverage The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
No description provided.