Skip to content

feat: overriding strategies for non pro #581

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

Open
wants to merge 1 commit into
base: feat-validate-space-strategies
Choose a base branch
from

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Aug 15, 2025

Toward https://github.com/snapshot-labs/workflow/issues/631

This PR will reject space setting saving, as well as proposal creation, when a non pro space is using overriding strategies.

List of overriding strategies from https://score.snapshot.org/api/strategies

@wa0x6e wa0x6e requested a review from Copilot August 15, 2025 00:25
@wa0x6e wa0x6e changed the base branch from master to feat-validate-space-strategies August 15, 2025 00:25
Copilot

This comment was marked as outdated.

@wa0x6e wa0x6e requested a review from Copilot August 18, 2025 20:39
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements validation to restrict overriding strategies to pro (turbo) spaces only, addressing GitHub issue #631. The change ensures that non-pro spaces cannot use overriding strategies when saving space settings or creating proposals.

  • Added validation logic to reject overriding strategies for non-turbo spaces
  • Added comprehensive test coverage for both rejection and acceptance scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/helpers/validation.ts Added validation check to reject overriding strategies for non-turbo spaces
test/unit/helpers/validation.test.ts Added test cases to verify override strategy validation for both turbo and non-turbo spaces

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@wa0x6e wa0x6e requested a review from ChaituVR August 18, 2025 20:40
Copy link
Member

@bonustrack bonustrack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

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.

2 participants