Skip to content

[SDK][Dashboard] Add new WorkerUtils add missing parameters to details endpoint#3325

Merged
dnechay merged 5 commits intodevelopfrom
feat/dashboard/details
May 13, 2025
Merged

[SDK][Dashboard] Add new WorkerUtils add missing parameters to details endpoint#3325
dnechay merged 5 commits intodevelopfrom
feat/dashboard/details

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented May 9, 2025

Issue tracking

N/A

Context behind the change

SDK

  • Implemented WorkerUtils class in both SDK to fetch worker details and lists from the subgraph.
  • Added WorkerFilter for filtering worker queries.
  • Created GraphQL queries for fetching worker data.
  • Updated TypeScript interfaces to include worker-related types and examples.
  • Added tests for WorkerUtils to ensure functionality and error handling.
  • Updated Python SDK to include worker-related functionalities and examples.

Dashboard

  • Enhanced existing services and DTOs to incorporate worker information.

How has this been tested?

Tested locally by using examples for SDK
Ran tests
Deployed dashboard locally and did some calls

Release plan

Deploy new SDK version

Potential risks; What to monitor; Rollback plan

None

flopez7 added 2 commits May 9, 2025 10:10
- Implemented WorkerUtils class in both SDK to fetch worker details and lists from the subgraph.
- Added WorkerFilter for filtering worker queries.
- Created GraphQL queries for fetching worker data.
- Updated TypeScript interfaces to include worker-related types and examples.
- Enhanced existing services and DTOs to incorporate worker information.
- Added tests for WorkerUtils to ensure functionality and error handling.
- Updated Python SDK to include worker-related functionalities and examples.
@flopez7 flopez7 requested a review from portuu3 May 9, 2025 08:19
@flopez7 flopez7 self-assigned this May 9, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented May 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
human-app 🛑 Canceled (Inspect) May 12, 2025 3:28pm
human-dashboard-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 3:28pm
staking-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2025 3:28pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview May 12, 2025 3:28pm
faucet-server ⬜️ Ignored (Inspect) Visit Preview May 12, 2025 3:28pm

Comment thread packages/sdk/typescript/human-protocol-sdk/src/interfaces.ts Outdated
flopez7 added 2 commits May 12, 2025 16:50
- Updated links in StatisticsClient.md, StorageClient.md, TransactionUtils.md, EscrowStatus.md, and various type-aliases to reflect the latest commit hash.
- Added ordering capabilities to WorkerFilter in Python SDK, allowing results to be sorted by payout count.
- Modified GraphQL queries and worker utility functions to support new ordering parameters.
- Updated TypeScript example to demonstrate the new ordering features for worker retrieval.
@flopez7 flopez7 requested a review from portuu3 May 12, 2025 14:59
@dnechay dnechay merged commit 2188b31 into develop May 13, 2025
22 checks passed
@dnechay dnechay deleted the feat/dashboard/details branch May 13, 2025 07:39
@dnechay dnechay mentioned this pull request May 13, 2025
15 tasks
flopez7 added a commit that referenced this pull request May 21, 2025
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.

3 participants