gitcoinco / gitcoinco/grants-stack-qf-calculator

Create a handler to get results

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
engineering
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

route: GET `/results/:chain_id/:round_id/:algorithm`

* find the record in the results table by chainId, roundId, algoithm
* return 404 if not found
* if found, return the timestamp + the field url in a json object
* add a status field based on the timesstamps (`generated_at`, `last_requested_at`)
* pending
* running
* done

notes:

in the next tickets we will:
* validate if the round chainId/roundId exists
* check if a calculation already exists and redirect to its GET route

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.