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

Feature/refactor delete #1397

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Feature/refactor delete #1397

wants to merge 12 commits into from

Conversation

kcinay055679
Copy link
Collaborator

No description provided.

@kcinay055679 kcinay055679 force-pushed the feature/refactor-delete branch from 433700f to 2741735 Compare February 11, 2025 14:16
@kcinay055679 kcinay055679 force-pushed the feature/refactor-delete branch from a35ff8b to 81f251c Compare February 17, 2025 06:13
@kcinay055679 kcinay055679 force-pushed the feature/refactor-delete branch from 81f251c to b9da4c6 Compare February 17, 2025 12:57
@kcinay055679 kcinay055679 force-pushed the feature/refactor-delete branch from b9da4c6 to 08a3231 Compare February 17, 2025 12:58
Copy link
Collaborator

@peggimann peggimann left a 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" />
Copy link
Collaborator

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")
Copy link
Collaborator

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);
Copy link
Collaborator

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)
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove

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.

2 participants