From b51096cf7dd28d04748779ce09a8ddff8f6fc312 Mon Sep 17 00:00:00 2001 From: Arshadul Monir Date: Wed, 4 Feb 2026 11:31:39 -0500 Subject: [PATCH 1/5] 736: Changed discord message to have leaderboard ID --- .../codebloom/common/components/DiscordClubManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java index 196eb1af9..f0e74152e 100644 --- a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java +++ b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java @@ -92,7 +92,7 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) { The new leaderboard just started, so best of luck to everyone! - View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard?%s=true + View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard/%s?%s=true Happy LeetCoding, Codebloom @@ -115,6 +115,7 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) { .map(String::valueOf) .orElse("N/A"), club.getName(), + currentLeaderboard.getId(), club.getTag().name().toLowerCase(), serverUrlUtils.getUrl()); @@ -181,7 +182,7 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { Just as a reminder, there's %d day(s), %d hour(s), and %d minute(s) left until the leaderboard closes, so keep grinding! - View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard?%s=true + View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard/%s?%s=true See you next week! @@ -210,6 +211,7 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { hoursLeft, minutesLeft, club.getName(), + currentLeaderboard.getId(), club.getTag().name().toLowerCase(), serverUrlUtils.getUrl()); From cef0487e6cafb5aea8a0ef1a0c15803f5202b3e5 Mon Sep 17 00:00:00 2001 From: Arshadul Monir Date: Wed, 4 Feb 2026 12:04:37 -0500 Subject: [PATCH 2/5] 736: Removed hard-coded url by using ServerUrlUtils --- .../codebloom/common/components/DiscordClubManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java index f0e74152e..9a5314169 100644 --- a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java +++ b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java @@ -92,7 +92,7 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) { The new leaderboard just started, so best of luck to everyone! - View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard/%s?%s=true + View the full leaderboard for %s users at %s/leaderboard/%s?%s=true Happy LeetCoding, Codebloom @@ -115,6 +115,7 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) { .map(String::valueOf) .orElse("N/A"), club.getName(), + serverUrlUtils.getUrl(), currentLeaderboard.getId(), club.getTag().name().toLowerCase(), serverUrlUtils.getUrl()); @@ -182,7 +183,7 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { Just as a reminder, there's %d day(s), %d hour(s), and %d minute(s) left until the leaderboard closes, so keep grinding! - View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard/%s?%s=true + View the full leaderboard for %s users at %s/leaderboard/%s?%s=true See you next week! @@ -211,6 +212,7 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { hoursLeft, minutesLeft, club.getName(), + serverUrlUtils.getUrl(), currentLeaderboard.getId(), club.getTag().name().toLowerCase(), serverUrlUtils.getUrl()); From 13e978692ea759aed0ef00bb888e8ef6ffc7d249 Mon Sep 17 00:00:00 2001 From: Arshadul Monir Date: Wed, 4 Feb 2026 13:02:35 -0500 Subject: [PATCH 3/5] 736: Updated leaderboardChannelId for Patina Network and MHC++ --- .github/scripts/copy-prod-db/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/copy-prod-db/index.ts b/.github/scripts/copy-prod-db/index.ts index fca8a3537..34f1a0eb0 100644 --- a/.github/scripts/copy-prod-db/index.ts +++ b/.github/scripts/copy-prod-db/index.ts @@ -104,7 +104,7 @@ async function main() { UPDATE \"DiscordClubMetadata\" m SET \"guildId\" = '1389762654452580373', - \"leaderboardChannelId\" = '1401739528057655436' + \"leaderboardChannelId\" = '1417161536014778388' FROM \"DiscordClub\" c WHERE c.\"id\" = m.\"discordClubId\" AND c.\"name\" = 'Patina Network'; @@ -113,7 +113,7 @@ async function main() { UPDATE \"DiscordClubMetadata\" m SET \"guildId\" = '1389762654452580373', - \"leaderboardChannelId\" = '1401739528057655436' + \"leaderboardChannelId\" = '1417161536014778388' FROM \"DiscordClub\" c WHERE c.\"id\" = m.\"discordClubId\" AND c.\"name\" = 'MHC++'; From 1ffd67a14088e6fdf17e3f873bc3c1fee07b1e1a Mon Sep 17 00:00:00 2001 From: Arshadul Monir Date: Thu, 5 Feb 2026 22:58:25 -0500 Subject: [PATCH 4/5] 736: Removed leaderboard id from weekly message --- .../codebloom/common/components/DiscordClubManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java index 9a5314169..32d4fd5b2 100644 --- a/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java +++ b/src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java @@ -183,7 +183,7 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { Just as a reminder, there's %d day(s), %d hour(s), and %d minute(s) left until the leaderboard closes, so keep grinding! - View the full leaderboard for %s users at %s/leaderboard/%s?%s=true + View the full leaderboard for %s users at %s/leaderboard?%s=true See you next week! @@ -213,7 +213,6 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) { minutesLeft, club.getName(), serverUrlUtils.getUrl(), - currentLeaderboard.getId(), club.getTag().name().toLowerCase(), serverUrlUtils.getUrl()); From 64a3b18746e27ecc8decca30de11dc19fab29fde Mon Sep 17 00:00:00 2001 From: Arshadul Monir Date: Sat, 7 Feb 2026 18:47:02 -0500 Subject: [PATCH 5/5] 736: Updated github script to updated GWC data --- .github/scripts/copy-prod-db/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/scripts/copy-prod-db/index.ts b/.github/scripts/copy-prod-db/index.ts index 34f1a0eb0..1015d5293 100644 --- a/.github/scripts/copy-prod-db/index.ts +++ b/.github/scripts/copy-prod-db/index.ts @@ -117,6 +117,15 @@ async function main() { FROM \"DiscordClub\" c WHERE c.\"id\" = m.\"discordClubId\" AND c.\"name\" = 'MHC++'; + + -- Update DiscordClubMetadata for 'GWC - Hunter College' + UPDATE \"DiscordClubMetadata\" m + SET + \"guildId\" = '1389762654452580373', + \"leaderboardChannelId\" = '1417161536014778388' + FROM \"DiscordClub\" c + WHERE c.\"id\" = m.\"discordClubId\" + AND c.\"name\" = 'GWC - Hunter College'; "`; await sendMessage(prId, `Database copy command completed successfully!`);