8000 Add community card member and thread count by ap-atul · Pull Request #79 · peer-town/peer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add community card member and thread count #79

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

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10000
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ prisma/dev.db
packages/composedb/.ceramic
.idea/
.nyc_output/

# compose json files
Composite.*.json
4 changes: 2 additions & 2 deletions apps/web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const Home: NextPage = () => {
community.node?.socialPlatforms.edges[0]?.node
.communityAvatar
}
members={20}
questions={10}
members={community.node?.userCount}
questions={community.node?.threadCount}
tags={tags}
/>
</Link>
Expand Down
2 changes: 2 additions & 0 deletions packages/composedb/Query/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ export const composeQueryHandler = () => {
id
communityName
description
userCount
threadCount
tags(first: 10) {
edges {
node {
Expand Down
10 changes: 10 additions & 0 deletions packages/composedb/commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ composedb composite:models ./gen/Composite.Vote.json --ceramic-url=$2
composedb composite:create ./schemas/VotesInComment.graphql --output=gen/Composite.VotesInComment.json --ceramic-url=$2 --did-private-key=$1
composedb composite:models ./gen/Composite.VotesInComment.json --ceramic-url=$2

# relation count updates
composedb composite:create ./schemas/UserRelationCount.graphql --output=gen/Composite.UserRelationCount.json --ceramic-url=$2 --did-private-key=$1
composedb composite:models ./gen/Composite.UserRelationCount.json --ceramic-url=$2
composedb composite:create ./schemas/CommunityRelationCount.graphql --output=gen/Composite.CommunityRelationCount.json --ceramic-url=$2 --did-private-key=$1
composedb composite:models ./gen/Composite.CommunityRelationCount.json --ceramic-url=$2
composedb composite:create ./schemas/ThreadRelationCount.graphql --output=gen/Composite.ThreadRelationCount.json --ceramic-url=$2 --did-private-key=$1
composedb composite:models ./gen/Composite.ThreadRelationCount.json --ceramic-url=$2
composedb composite:create ./schemas/CommentRelationCount.graphql --output=gen/Composite.CommentRelationCount.json --ceramic-url=$2 --did-private-key=$1
composedb composite:models ./gen/Composite.CommentRelationCount.json --ceramic-url=$2

composedb composite:merge ./gen/Composite.* --output=./gen/DevNode.json --ceramic-url=$2
composedb composite:compile ./gen/DevNode.json ./gen/runtime-composite.json --ceramic-url=$2
composedb composite:compile ./gen/DevNode.json src/definition.ts --ceramic-url=$2
Expand Down
1 change: 0 additions & 1 deletion packages/composedb/gen/Composite.Comments.json

This file was deleted.

50 changes: 0 additions & 50 deletions packages/composedb/gen/Composite.CommentsInThread.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/composedb/gen/Composite.CommunitiesInTag.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/composedb/gen/Composite.Community.json

This file was deleted 44D1 .

Loading
0