Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Election workflow #24

Merged
merged 16 commits into from
Mar 11, 2020
Merged

Election workflow #24

merged 16 commits into from
Mar 11, 2020

Conversation

alpe
Copy link
Collaborator

@alpe alpe commented Feb 21, 2020

Full election workflow - end to end

I have started to implement the election workflow end-to-end to stress the design and my understanding of it. This PR does implement the happy path. Please do not consider this DONE.
The proper message handling and validations will be implemented in separate PRs.

Resolves #31

Open questions -> will be addressed separately with new PRs on top of master (see task list)

- How to model/ create custom proposal types?
- How to create deterministic group account addresses -> weave.Condition
- How we need to ensure that ThresholdDecisionPolicy is not modified during proposal - we are storing a version number as well
- Why min/max_voting_window - replaced by timeout

  • Do we want to support a withdrawn of an proposal
  • What events do we want to expose
    - How do we handle execution failures with MsgExec in the proposal. like a transfer fails due to lack of tokens? I have implemented a executor status in the proposal so that the proposal is closed. -> msgExec will fail

@alpe alpe changed the title Alex/election workflow Spike election workflow Feb 21, 2020
@alpe alpe changed the title Spike election workflow WIP - spike election workflow Feb 21, 2020
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

Added some suggestions which will hopefully help with handling the base/app proposal proto stuff.

incubator/group/handler.go Outdated Show resolved Hide resolved
incubator/group/types.proto Outdated Show resolved Hide resolved
incubator/group/keeper.go Show resolved Hide resolved
incubator/group/keeper.go Show resolved Hide resolved
incubator/group/testdata/types.proto Outdated Show resolved Hide resolved
@alpe
Copy link
Collaborator Author

alpe commented Feb 26, 2020

Thanks @aaronc for the feedback! 💐
I think I am not fully on track with the design and workflow you have in mind for the proposal model and workflow. I would add one function for the MsgExec which is missing to have that in code but otherwise wait for the call today to learn and discuss what to do with proposals.

@alpe alpe changed the base branch from alex/group_update to alex/group_start March 3, 2020 10:02
@alpe alpe mentioned this pull request Mar 3, 2020
@alpe alpe changed the title WIP - spike election workflow Election workflow Mar 3, 2020
@alpe alpe changed the base branch from alex/group_start to new_master March 4, 2020 08:35
@alpe
Copy link
Collaborator Author

alpe commented Mar 9, 2020

The remaining amino codec are required for integration tests using the sdk BaseApp.

@alpe alpe marked this pull request as ready for review March 9, 2020 12:20
@alpe alpe requested a review from aaronc March 9, 2020 12:21
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

Unfortunately I didn't have a time to review everything as there's quite a lot here. Thank you! But I made some suggested changes. Let's check in more about this tomorrow.

incubator/group/keeper.go Show resolved Hide resolved
incubator/group/group_handler.go Show resolved Hide resolved
incubator/group/integration_test.go Show resolved Hide resolved
incubator/group/keeper.go Show resolved Hide resolved
incubator/group/keeper.go Show resolved Hide resolved
incubator/group/keeper.go Show resolved Hide resolved
incubator/group/group_handler.go Show resolved Hide resolved
@aaronc
Copy link
Member

aaronc commented Mar 11, 2020

Based on our discussions, merging this with the intention to move quickly and address other issues that have been raised through smaller PRs on top of this.

@aaronc aaronc merged commit bab6de6 into new_master Mar 11, 2020
@alpe alpe deleted the alex/election_workflow branch March 12, 2020 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants