Skip to content

[HUMAN App] fix: refetch hCaptcha stats once user solved captcha - #3515

Merged
dnechay merged 1 commit into
developfrom
dnechay/fix-captcha-stats
Aug 25, 2025
Merged

[HUMAN App] fix: refetch hCaptcha stats once user solved captcha#3515
dnechay merged 1 commit into
developfrom
dnechay/fix-captcha-stats

Conversation

@dnechay

@dnechay dnechay commented Aug 25, 2025

Copy link
Copy Markdown
Collaborator

Issue tracking

N/A

Context behind the change

React-query doesn't re-refetch data unless its query is stale (that could be achieved by invalidateQuery call) or refetch called directly. In #3484 we removed invalidateQuery calls that were invalidating all queries, leaving only those that necessary, but missed the one for hCaptcha stats and it led to a situation where users stats are not updated and captcha is unintentionally available. Invalidate these queries now and re-fetch stats (according to server caching policies)

How has this been tested?

  • check that stats re-fetched on Vercel

Release plan

Just merge

Potential risks; What to monitor; Rollback plan

Monitor hCaptcha labeling for a couple of days.

@dnechay dnechay self-assigned this Aug 25, 2025
@vercel

vercel Bot commented Aug 25, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
human-app Ready Ready Preview Comment Aug 25, 2025 0:29am
human-dashboard-frontend Ready Ready Preview Comment Aug 25, 2025 0:29am
staking-dashboard Ready Ready Preview Comment Aug 25, 2025 0:29am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
faucet-frontend Ignored Ignored Preview Aug 25, 2025 0:29am
faucet-server Ignored Ignored Preview Aug 25, 2025 0:29am

@dnechay
dnechay merged commit ef2e509 into develop Aug 25, 2025
11 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Core-tech - 2025 Aug 25, 2025
@dnechay
dnechay deleted the dnechay/fix-captcha-stats branch August 25, 2025 12:36
@dnechay dnechay mentioned this pull request Aug 25, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants