feat: add HubSpot certificate webhooks for blockchain and avalanche L1 academies#3815
Open
navillanueva wants to merge 11 commits intomasterfrom
Open
feat: add HubSpot certificate webhooks for blockchain and avalanche L1 academies#3815navillanueva wants to merge 11 commits intomasterfrom
navillanueva wants to merge 11 commits intomasterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
c815b15 to
a080a00
Compare
…tificate-webhooks
…academy graduation webhooks
…ficate reliability
…tificate-webhooks
…tificate-webhooks
… error propagation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
blockchain, avalanche L1)
prisma.$transaction()with P2002 safety netfetchWithRetry()for CDN template resilience (3 retries, exponential backoff on 5xx)awardBadge()calls inBadgeNotification.tsxviauseRefresponse.okbefore parsing badge API responseEnv Vars
Per-course webhooks (all new, set in Vercel):
HUBSPOT_WEBHOOK_AVALANCHE_FUNDAMENTALSHUBSPOT_WEBHOOK_PERMISSIONED_L1SHUBSPOT_WEBHOOK_L1_NATIVE_TOKENOMICSHUBSPOT_WEBHOOK_PERMISSIONLESS_L1SHUBSPOT_WEBHOOK_INTERCHAIN_MESSAGINGHUBSPOT_WEBHOOK_ERC20_BRIDGEHUBSPOT_WEBHOOK_NATIVE_TOKEN_BRIDGEHUBSPOT_WEBHOOK_CUSTOMIZING_EVMHUBSPOT_WEBHOOK_ACCESS_RESTRICTION_FUNDAMENTALSHUBSPOT_WEBHOOK_ACCESS_RESTRICTION_ADVANCEDHUBSPOT_WEBHOOK_BLOCKCHAIN_FUNDAMENTALSHUBSPOT_WEBHOOK_SOLIDITY_FOUNDRYHUBSPOT_WEBHOOK_NFT_DEPLOYMENTHUBSPOT_WEBHOOK_ENCRYPTED_ERCHUBSPOT_WEBHOOK_X402_PAYMENT_INFRASTRUCTUREGraduation webhooks (new):
HUBSPOT_WEBHOOK_AVALANCHE_L1_GRADUATIONHUBSPOT_WEBHOOK_BLOCKCHAIN_GRADUATIONEntrepreneur (unchanged):
ENTREPRENEUR_ACADEMY_HUBSPOT_WEBHOOKCODEBASE_CERTIFICATE_HUBSPOT_WEBHOOKMissing env vars are handled gracefully — certificate generation is never blocked.
Test Plan
To run the integration tests you need a session cookie and user ID from a logged-in session.
1. Get your User ID
Open DevTools → Console and run:
TEST RESULTS