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

Suggestion for #3448: subscribe to questions, rather than notify #3783

Conversation

erights
Copy link
Member

@erights erights commented Aug 31, 2021

A suggestion for #3448

The notifier notifies of each individual question. The one consumer (a test) assumes it gets notified about each question. The test passes only because this accidentally happens. It is outside the notifier spec, which may not notify of earlier questions if there are later questions to notify of instead. But a later question does not make an earlier question irrelevant, so this was never a job for notifiers.

Chris-Hibbert and others added 13 commits August 24, 2021 14:50
ContractGovernor is an ElectionManager that knows its Registrar, and
starts up and manages one contract. The managed contract returns a
facet that describes the managed parameters to the governor. The
ContractGovernor returns a facet that allows the creation of new Ballot
questions to ask the electorate to approve changing the values of
those parameters.

There's a README.md that gives on overview of the interdependent
APIs.

The swingsetTest exercise the ContractGovernor over a trivial
governedContract that shows how a contract can configure its
parameters, and the methods that have to be available in order for
everything to be found and verified. The tests include a verification
step that cross-checks the Registrar, ElectionManager (i.e.
ContractGovernor in this case), and Ballots to see that they are
consistent.

The API of Ballot and others is changed to bundle the details of a
question into BallotSpec. This affects some of the unit tests.
Rename HALF to MAJORITY, and NONE to NO_QUORUM
break up long lines in types.js
Add bullet points to break up paragraph in choiceMethod
use typescript sub-type declarations
fix QuestionTerms
patch around a ts confusion.
fixed typos, etc.
added detail in README on Future Enhancements
Integrated with fees for zoe execution
integrated with ENDO changes to import formatting
Added checking of Installations now that Zoe has getInstallationForInstance
rename ballot validation to looksLike
improve checking for ballotDetails
@erights erights requested a review from Chris-Hibbert August 31, 2021 22:13
@erights erights self-assigned this Aug 31, 2021
@erights erights changed the base branch from master to contractGovernanceMgr-3185 August 31, 2021 22:13
@erights
Copy link
Member Author

erights commented Aug 31, 2021

Subscription and Notifier were co-designed so that it would be easy to switch from one to the other, as demonstrated by this PR.

@Chris-Hibbert
Copy link
Contributor

These changes have been merged into 3448. I'll add a closes link there.

@Chris-Hibbert Chris-Hibbert force-pushed the contractGovernanceMgr-3185 branch 4 times, most recently from 8ebabda to 20e1ec6 Compare September 16, 2021 00:51
@Chris-Hibbert Chris-Hibbert force-pushed the contractGovernanceMgr-3185 branch 2 times, most recently from afd01b5 to e3fa924 Compare September 16, 2021 22:28
@erights
Copy link
Member Author

erights commented Sep 17, 2021

Obsolete. Suggestion already applied. Closing.

@erights erights closed this Sep 17, 2021
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