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

fix: fix empty voting period being overriden #1014

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Dec 3, 2024

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

  1. Go to an offchain space settings
  2. Save the voting period as 0
  3. It saves as 0 (previously, will always show 7 instead of 0)
  4. Go to the Editor
  5. Proposal end time should be set to 3 days after start

@wa0x6e wa0x6e force-pushed the fix-allow-null-voting-period-for-offchain-spaces branch from cf51c09 to 6b50137 Compare December 3, 2024 14:36
@wa0x6e wa0x6e requested a review from ChaituVR December 4, 2024 10:01
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.

bug: offchain space voting period default to 7 days when null
1 participant