Skip to content

[DEPLOY] 260827 - #839

Merged
whqtker merged 0 commit into
masterfrom
develop
Aug 27, 2026
Merged

[DEPLOY] 260827#839
whqtker merged 0 commit into
masterfrom
develop

Conversation

@whqtker

@whqtker whqtker commented Aug 27, 2026

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 38ede562-d8ce-4010-8907-a87a459b213b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0dcf5b66f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +39 to +43
DiscordMessageResponse response = discordWebhookSender.sendAndGetMessage(
webhookUrl,
buildMessage(type, applicantInfo)
);
discordNotificationService.save(type, reviewId, response.channelId(), response.id());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Isolate webhook failures from submission transactions

When the configured webhook times out, returns an error, or yields an empty response, sendAndGetMessage propagates an exception from this synchronous overload. Both ScoreService submission methods and MentorApplicationService.submitMentorApplication invoke it inside @Transactional methods, so a Discord outage now rolls back an otherwise valid user submission; the previous notifier was asynchronous and isolated notification errors. Handle the failure outside the business transaction while still persisting the message identifiers after a successful send.

Useful? React with 👍 / 👎.

String url = REACTION_URL.formatted(channelId, messageId, encodedEmoji);
HttpHeaders headers = new HttpHeaders();
headers.set("Authorization", "Bot " + botToken);
discordBotRestTemplate.exchange(url, HttpMethod.PUT, new HttpEntity<>(headers), Void.class);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Prevent reaction failures from rolling back reviews

If the bot token is absent or invalid, or Discord is unavailable, this exchange throws through DiscordNotifier.addReaction. The new calls occur before the transactional GPA, language-score, and mentor approval/rejection methods return, so the external reaction failure rolls back the actual review state and prevents administrators from completing reviews. Catch or defer this ancillary Discord operation so it cannot determine the database transaction outcome.

Useful? React with 👍 / 👎.

@whqtker
whqtker merged commit e0dcf5b into master Aug 27, 2026
3 checks passed
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.

1 participant