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

Quitting the Dao (old) #48

Closed
wants to merge 11 commits into from
Closed

Conversation

swfsql
Copy link
Collaborator

@swfsql swfsql commented Nov 3, 2021

Partial implementation of #41

There are open questions, such was:

  • quitting is considered a direct action that a user can call, alongside add_proposal and act_proposal .

    • (before it was considered a proposal that didn't depend on approval nor on policies).
  • quitting doesn't cleanup any data besides removing the user account from the roles.

    • (before it would remove empty roles if the quitting user was the last one) .
  • this is still missing the policies questions, as raised on Quitting the DAO #41.

There are open questions, such was:
- should quitting be still classified as a proposal?
- should it execute immediately?
  - how should it behave for non-existing users?
- is being tagged for the next cleanup a better approach?
@swfsql swfsql changed the title init implementation Quitting the Dao Nov 3, 2021
@swfsql swfsql changed the title Quitting the Dao [Draft] Quitting the Dao Nov 3, 2021
@swfsql swfsql marked this pull request as draft November 9, 2021 09:15
@swfsql swfsql changed the title [Draft] Quitting the Dao Quitting the Dao Nov 9, 2021
@swfsql swfsql marked this pull request as ready for review November 12, 2021 14:18
Copy link
Contributor

@mikedotexe mikedotexe left a comment

Choose a reason for hiding this comment

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

Overall looking good, thanks. The simulation tests in test_quit were a bit confusing to read with a mixture of closures and functions, but I think we can work with that. Wouldn't hurt to have a bit more high-level comments peppered throughout tests. But also, thanks for the details comments above the functions, that's very helpful.

I'm going to open a pull request on something small that seems worth doing a different way.

@swfsql
Copy link
Collaborator Author

swfsql commented Nov 25, 2021

Thanks for the review Mike! I had placed the closures into functions, which I agree makes it easier to reason about the code! Can improve the overall commenting as well!

I'm closing this issue in favor of #67, which contains updates from main and updated binaries

@swfsql swfsql closed this Nov 25, 2021
@swfsql swfsql deleted the issue/41/quitting branch November 25, 2021 17:56
@swfsql swfsql changed the title Quitting the Dao Quitting the Dao (old) Nov 25, 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