-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/refactor delete #1397
base: main
Are you sure you want to change the base?
Feature/refactor delete #1397
Conversation
433700f
to
2741735
Compare
a35ff8b
to
81f251c
Compare
81f251c
to
b9da4c6
Compare
b9da4c6
to
08a3231
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.
Overall i see that this works, however i think this adds too much tech depth to the project, consider the following:
- We do not need a Hard-Delete anymore simply stay with soft-delete
- I reckon that interfacing could simplify the "Generic Hell" instead of using abstract classes
- Maybe even direct implementations are the way to go instead of abstracting that much
- Overall look over your PR there are quite some amount of unwanted comments/ todos left over.
@@ -1,7 +1,7 @@ | |||
<component name="ProjectRunConfigurationManager"> | |||
<configuration default="false" name="OkrApplication-E2E" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot"> | |||
<option name="ACTIVE_PROFILES" value="integration-test" /> | |||
<option name="ALTERNATIVE_JRE_PATH" value="$USER_HOME$/.sdkman/candidates/java/current" /> | |||
<option name="ALTERNATIVE_JRE_PATH" value="corretto-21" /> |
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.
why? maybe sdkman works best for all
|
||
@NoRepositoryBean | ||
public interface DeleteRepository<E extends Deletable, I> extends CrudRepository<E, I>, JpaSpecificationExecutor<E> { | ||
// @Query("select #{#entityName} e set e.isDeleted = true where e.id = :id") |
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.
remove comment seems unnecessary to me
|
||
Integer countByTeamAndQuarter(Team team, Quarter quarter); | ||
Integer countByTeamAndQuarterAndIsDeletedFalse(Team team, Quarter quarter); |
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.
is only used for testing, remove and remove tests or make separate task, up to you
@@ -10,6 +10,7 @@ | |||
@Documented | |||
@Inherited | |||
@SpringBootTest | |||
// @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS) |
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.
remove
No description provided.