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

fix commit retrieval loop. #278

Merged
merged 4 commits into from
May 21, 2024
Merged

fix commit retrieval loop. #278

merged 4 commits into from
May 21, 2024

Conversation

Enquier
Copy link
Contributor

@Enquier Enquier commented Apr 17, 2024

This loop was happening in the background where commits were just piling up or never returning unless a limit was set.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@@ -156,7 +157,7 @@ public List<Commit> findByRefAndTimestampAndLimit(Branch ref, Instant timestamp,
currentRef = ref.getParentRefId();
currentCid = ref.getParentCommit();

if (currentRef == null) {
if (currentRef == null || currentRef.equals(Constants.MASTER_BRANCH)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This breaks the tests since it stops at a branch whose parent is master.
master branch is created with parent ref being null, it may be you had some bad db data from a dev branch for some reason had master with master parent

Copy link

@dlamoris dlamoris merged commit f0423a7 into develop May 21, 2024
4 of 5 checks passed
@dlamoris dlamoris deleted the bugfix/commit-loop branch August 27, 2024 16:38
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