-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: fix empty voting period being overriden #1014
fix: fix empty voting period being overriden #1014
Conversation
cf51c09
to
6b50137
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs rebase now to account for created
param.
e656373
to
c7bb3dc
Compare
With this fix, we got a minor behavior change: The proposal As filling the form may take time, the creation and start date may be a few minutes behind now (which is still valid, and accepted by sequencer). On the opposite, the dates shown on the Editor timeline are now the correct dates sent to the proposal. EDIT: not the case anymore |
To me it's not expected behavior, why does it work this way? Can we instead, same as before submit timestamp at the time of submit and for Editor UI make timeline reactive and update it on the fly using |
…tps://github.com/snapshot-labs/sx-monorepo into fix-allow-null-voting-period-for-offchain-spaces
Implemented using reactive timestamp. |
Co-authored-by: Wiktor Tkaczyński <[email protected]>
Summary
Closes: #1012
Toward https://github.com/snapshot-labs/workflow/issues/282
This PR fix an issue where the voting period is saved as empty for offchain spaces, but shows as 7 days on the UI.
Issue was fixed by allowing
0
as voting period value (which means no default enforcing, and up to the proposer), with a fallback to 3 days (like on v1)How to test