You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/de/tum/cit/aet/hephaestus/integration/core/connection/api/InitiateConnectionRequestDTO.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,5 @@
10
10
* <p>{@code userInput} is intentionally a free-form map so per-kind ConnectionStrategy
11
11
* implementations can dictate their own field schema (e.g. GitLab needs {@code pat} +
12
12
* {@code group_id}; GitHub needs nothing because the install URL is server-configured).
13
-
* Provider-specific input validation is the strategy's responsibility.
Copy file name to clipboardExpand all lines: server/src/main/java/de/tum/cit/aet/hephaestus/integration/scm/github/pullrequestreview/GitHubPullRequestReviewSyncService.java
+3-21Lines changed: 3 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,8 @@
60
60
* Uses typed GraphQL models for type-safe deserialization and delegates
61
61
* persistence to GitHubPullRequestReviewProcessor.
62
62
* <p>
63
-
* GraphQL fetching is non-transactional; persistence is done per-page in
64
-
* {@code REQUIRES_NEW} transactions via self-proxy to isolate deadlock
65
-
* failures and avoid poisoned-transaction retries.
63
+
* Reviews are fetched outside a transaction and persisted one page at a time so deadlock retries
64
+
* start clean.
66
65
*/
67
66
@Service
68
67
publicclassGitHubPullRequestReviewSyncService {
@@ -417,11 +416,7 @@ public int syncRemainingReviews(Long scopeId, PullRequest pullRequest, String st
417
416
returntotalSynced;
418
417
}
419
418
420
-
/**
421
-
* Persists a page of reviews with transient failure retry. Each attempt runs in a fresh
422
-
* {@code REQUIRES_NEW} transaction via self-proxy, so a deadlock on one attempt
423
-
* does not poison subsequent retries.
424
-
*/
419
+
/** Persists a page of reviews in a new transaction and retries transient failures. */
425
420
privateintpersistReviewPageWithRetry(
426
421
List<GHPullRequestReview> reviews,
427
422
LongpullRequestId,
@@ -479,19 +474,6 @@ private int persistReviewPageWithRetry(
479
474
return0;
480
475
}
481
476
482
-
/**
483
-
* Processes a page of review nodes in a {@code REQUIRES_NEW} transaction.
484
-
* <p>
485
-
* Called via self-proxy to ensure the transaction annotation is honoured.
486
-
* If a deadlock occurs, the transaction is rolled back independently without
487
-
* poisoning any outer transaction.
488
-
*
489
-
* @param reviews the review nodes from the GraphQL response
490
-
* @param pullRequestId the database ID of the owning pull request
491
-
* @param scopeId the scope ID for authentication
492
-
* @param repository the repository entity for creating the processing context
0 commit comments