Skip to content

feat: mp-2504-lender fprofile fast fail#6724

Open
infante-jaime wants to merge 1 commit intomainfrom
mp-2504-lender-profile-fast-fail
Open

feat: mp-2504-lender fprofile fast fail#6724
infante-jaime wants to merge 1 commit intomainfrom
mp-2504-lender-profile-fast-fail

Conversation

@infante-jaime
Copy link
Contributor

##MP-2504: Fast Fail for Invalid/Private Lender Profiles
MP-2504: Fast Fail for Invalid/Private Lender Profiles
Updated preFetch in LenderProfile.vue to check if the lender exists before doing extra work. If the lender is invalid or private, we stop early — skipping the badge query and the full page render. Valid profiles are unaffected.

Before: 2 queries + full render + HTTP 200 for every fake URL.
After: 1 query + early return.

Next step: Return HTTP 404 for invalid profiles so bots stop retrying those URLs. This was explored not sure if we need it.

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.

2 participants