Skip to content

Conversation

quaff
Copy link
Contributor

@quaff quaff commented Jul 3, 2025

Now it's covered by tests copied from JDBC implementation.

See GH-4896

@fmbenhassine
Copy link
Contributor

Thank you for the PR! I think that is the right fix. However, can you please add a test that covers the case? With that in place, the PR should be good merge.

@fmbenhassine fmbenhassine added pr-for: bug in: core status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter labels Jul 20, 2025
Copy link
Contributor

@HyunSangHan HyunSangHan left a comment

Choose a reason for hiding this comment

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

Could you check the feedbacks? :)

.stream()
.filter(stepExecution -> stepExecution.getName().equals(stepName))
.min(Comparator
.max(Comparator
Copy link
Contributor

@HyunSangHan HyunSangHan Sep 10, 2025

Choose a reason for hiding this comment

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

I believe it would be also necessary to fix line 114 which is not correct comment anymore.

-		// first one
+		// last one

@quaff quaff changed the title Fix MongoStepExecutionDao::getLastStepExecution Overhaul MongoDB Dao to fix various bugs Sep 11, 2025
@quaff
Copy link
Contributor Author

quaff commented Sep 11, 2025

Thank you for the PR! I think that is the right fix. However, can you please add a test that covers the case? With that in place, the PR should be good merge.

@fmbenhassine Please review.

@fmbenhassine fmbenhassine added status: feedback-provided Issues for which the feedback requested from the reporter was provided and removed status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter labels Sep 11, 2025
@fmbenhassine fmbenhassine added this to the 6.0.0-RC1 milestone Sep 11, 2025
fmbenhassine added a commit that referenced this pull request Oct 22, 2025
The patch is taken from #4898, credits to @quaff.

Resolves #4896
@fmbenhassine
Copy link
Contributor

Very interesting fixes in this PR! However, I was not sure about the change of JobParameters so I will review this for RC2.

I wanted to cherry-pick the change to fix #4896 but I couldn't as this PR has a single commit and I didn't want to amend yours. I took the patch in 845f2c3 and gave you credits, thank you! So please remove that part from the PR and I will merge the remaining changes in RC2.

This PR addresses different things (adds missing methods like MongoStepExecutionDao#deleteStepExecution, fixes an issue with job parameters of type Date, etc). We need to create issues that describe each problem separately (with separate commits) to be able to back port what could be back ported to 5.2.x.

@fmbenhassine fmbenhassine added status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter and removed status: feedback-provided Issues for which the feedback requested from the reporter was provided labels Oct 22, 2025
@fmbenhassine fmbenhassine modified the milestones: 6.0.0-RC1, 6.0.0-RC2 Oct 22, 2025
@quaff
Copy link
Contributor Author

quaff commented Oct 22, 2025

This PR addresses different things (adds missing methods like MongoStepExecutionDao#deleteStepExecution, fixes an issue with job parameters of type Date, etc). We need to create issues that describe each problem separately (with separate commits) to be able to back port what could be back ported to 5.2.x.

Should I close this PR and create other PRs?

@fmbenhassine
Copy link
Contributor

As you wish. You can keep a single PR with different commits so I can cherry pick what can be back-ported to 5.2.x. Otherwise you can open separate PRs if you want.

Many thanks upfront 🙏

quaff added 4 commits October 23, 2025 11:20
1. Implement method `deleteJobInstance()`
2. Fix missing range check for `List.subList()`
3. Introduce MongoJobInstanceDaoIntegrationTests

Signed-off-by: Yanming Zhou <[email protected]>
1. Implement method `deleteJobExecution()`
2. Fix find job executions ordering
3. Convert Date to LocalDate/LocalTime/LocalDateTime
4. Introduce MongoJobExecutionDaoIntegrationTests

Signed-off-by: Yanming Zhou <[email protected]>
1. Implement method `deleteStepExecution()`
2. Fix NPE if stepExecutionId not exists when get step execution
3. Fix count step executions by step name
4. Introduce MongoStepExecutionDaoIntegrationTests

Signed-off-by: Yanming Zhou <[email protected]>
@quaff
Copy link
Contributor Author

quaff commented Oct 23, 2025

As you wish. You can keep a single PR with different commits so I can cherry pick what can be back-ported to 5.2.x. Otherwise you can open separate PRs if you want.

Many thanks upfront 🙏

@fmbenhassine I break it down to 4 commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: core pr-for: bug status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants