Skip to content
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

Search by username #1066

Closed
Isaac-DeFrain opened this issue Jun 5, 2024 · 6 comments · Fixed by #1146 or #1180
Closed

Search by username #1066

Isaac-DeFrain opened this issue Jun 5, 2024 · 6 comments · Fixed by #1146 or #1180
Assignees
Labels
Data Database, storage or retrieval of data, JSON, serialization, etc. GraphQL GraphQL API New Feature A brand new feature
Milestone

Comments

@Isaac-DeFrain
Copy link
Member

No description provided.

@n1tranquilla
Copy link
Collaborator

n1tranquilla commented Jun 14, 2024

curl 'https://api.minasearch.com/graphql' \
  --data-raw $'{"variables":{"limit":100,"sortBy":"BALANCE_DESC","query":{"username":"SNZPool"}},"query":"query AccountsQuery(\\n  $limit: Int = 100\\n  $sortBy: AccountSortByInput\u0021\\n  $query: AccountQueryInput\\n) {\\n  accounts(limit: $limit, query: $query, sortBy: $sortBy) {\\n username\\n  }\\n}\\n","operationName":"AccountsQuery"}' | jq ".data.accounts[].username" | uniq
"Unknown"

@n1tranquilla n1tranquilla reopened this Jun 14, 2024
@Isaac-DeFrain Isaac-DeFrain removed their assignment Jun 14, 2024
@Isaac-DeFrain
Copy link
Member Author

@trevorbernard you want to take a look?

@trevorbernard trevorbernard self-assigned this Jun 14, 2024
@Isaac-DeFrain
Copy link
Member Author

We will probably want to add a username iterator.
usernameCF: {username}{pk} -> _ for sorting
Iterator over that CF to search for username

@Isaac-DeFrain
Copy link
Member Author

I believe the problem is caused by not setting the username in the best ledger

@Isaac-DeFrain
Copy link
Member Author

#1180 should solve this one

@robinbb
Copy link
Member

robinbb commented Jun 19, 2024

@n1tranquilla Take a look to ensure that this is solved, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Database, storage or retrieval of data, JSON, serialization, etc. GraphQL GraphQL API New Feature A brand new feature
Projects
Archived in project
4 participants