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 proposal count #2074

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Fix proposal count #2074

merged 1 commit into from
Jul 4, 2024

Conversation

adamgall
Copy link
Member

@adamgall adamgall commented Jul 3, 2024

Add a property to state to track the number of proposals that are being "skipped", to adjust total proposal count.

This is only relevant for our Decent DAO, which has that broken proposal due to malformed Metadata JSON.

We skip that malformed proposal during processing and don't add it to state at all, but a side effect is that our "proposal count" components on the dashboard rely on the Azorius proposal IDs to determine how many have been created (proposal count equals highest ID + 1).

Since we don't want to acknowledge this malformed proposal in our UI, we need to adjust our total proposal count to account for it.

…ng "skipped", to adjust total proposal count
Copy link

netlify bot commented Jul 3, 2024

Deploy Preview for decent-interface-dev ready!

Name Link
🔨 Latest commit 73c20c6
🔍 Latest deploy log https://app.netlify.com/sites/decent-interface-dev/deploys/6685c1a831425f00075b4cf1
😎 Deploy Preview https://deploy-preview-2074.app.dev.decentdao.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@mudrila mudrila left a comment

Choose a reason for hiding this comment

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

This is some rocket science shit going on here, sir
🚀 🚢

@mudrila mudrila merged commit cfe7d70 into develop Jul 4, 2024
7 checks passed
@mudrila mudrila deleted the correct-proposal-count branch July 4, 2024 16:07
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.

3 participants