-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev blocked projects and block Metakeys copy-cat #4067
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
f52a82a
to
247eee6
Compare
@@ -68,7 +69,13 @@ export function useDBProjectsInfiniteQuery( | |||
pageSize, | |||
})}`, | |||
) | |||
.then(res => (res.data ? res.data.map(parseDBProject) : [])) | |||
.then(res => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds filters to "all" (same as the "new" query) and "trending" projects queries
247eee6
to
27dcd92
Compare
src/constants/blocklist.ts
Outdated
@@ -0,0 +1,4 @@ | |||
// List of delisted projects | |||
export const BLOCKED_PROJECT_IDS = [ | |||
'564', //copycat of 563 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll want these to be project id
s (e.g. "2-564"), not projectId
s (otherwise this would block a v1 project 564). we also want it to be specific to mainnet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or, we could copy the pattern used for archived projects (storing V2ArchivedProjectIdsByNetwork
that are all pv == 2), but we need to add the pv == 2
statement in the filter. archived project lists are network-specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleanup project filtering on db projects queries
For projects listed in
BLOCKED_PROJECT_IDS
: