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

Added missing completed proposal queries to approval-single #767

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

NoahSaso
Copy link
Member

@NoahSaso NoahSaso commented Nov 15, 2023

The dao-pre-propose-approval-single contract does not store pending proposals once they have been approved or rejected. This makes it impossible to retrieve past decisions and connect approval proposals used in dao-pre-propose-approver to existing proposals.

This PR adds queries to check whether or not a given approval ID is pending, and allows querying completed proposals. If approved, it also includes the created proposal ID. It also adds a query to get the completed pre-propose ID from the created proposal ID.

@NoahSaso NoahSaso force-pushed the noah/missing-approval-query branch 2 times, most recently from 69d8e27 to bd7b3cc Compare November 15, 2023 01:59
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (development@db42d45). Click here to learn what that means.

Additional details and impacted files
@@              Coverage Diff               @@
##             development     #767   +/-   ##
==============================================
  Coverage               ?   96.27%           
==============================================
  Files                  ?      203           
  Lines                  ?    50289           
  Branches               ?        0           
==============================================
  Hits                   ?    48414           
  Misses                 ?     1875           
  Partials               ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@JakeHartnell JakeHartnell left a comment

Choose a reason for hiding this comment

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

LGTM

@NoahSaso NoahSaso merged commit e54d447 into development Nov 16, 2023
8 of 9 checks passed
@NoahSaso NoahSaso deleted the noah/missing-approval-query branch November 16, 2023 00:28
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