gitcoinco / gitcoinco/easy-retro-pgf
creating new rounds are not behaving as expected
- Dominant language
- TypeScript
- Stars
- 66
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
I created first round(round 1) and all steps went as expected,
then created another one(round 2) but round.id in ballot.get is undefined, I assume its because of using protectedProcedure instead of protectedRoundProcedure [here](https://github.com/gitcoinco/easy-retro-pgf/blob/main/src/server/api/routers/ballot.ts#L34),
so when navigating to round 2/projects/[id], ballot.get would return votes and data related to round-1 projects. And this affect all the steps for new rounds.
Is there steps required before creating new rounds? i tried setting all round 1 phases dates before the creation of round 2 but same result.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the second-round flow and inspect src/server/api/routers/ballot.ts at the referenced line, then follow ballot.get from round 2/projects/[id]. Compare the returned round and project data with round 1. Done means creating a new round makes ballot.get and the subsequent round flow use that round's data rather than round 1's.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100