-
Notifications
You must be signed in to change notification settings - Fork 16
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
Enhancement/contract update #676
Conversation
@lucca65 can you confirm if |
Thats correct @NeoVier! No longer we have react sale and verify action changed its name! No need to implement the new |
about |
Ok, then I believe the work for this PR is done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one missing param
Bro, can you also work on instead of showing the regular Feedback when we got the permission error, to show this modal instead? https://www.figma.com/file/XKS6pzhjaFtdJVPAYR6hSK/Modal---Congelar-usuário |
✔️ Deploy Preview for cambiatus-elm-book ready! 🔨 Explore the source changes: 89df2f4 🔍 Inspect the deploy log: https://app.netlify.com/sites/cambiatus-elm-book/deploys/62155b038b6e62000790eb69 😎 Browse the preview: https://deploy-preview-676--cambiatus-elm-book.netlify.app |
@lucca65 this PR is not supposed to include the permission configuration screens, right? Just showing the modal when the user doesn't have enough permissions to do stuff? Here's a list of the necessary permissions for each action, please correct me if I'm wrong:
From what I could find, these are all of the community actions we call on the frontend that require permissions. I also see that users need the invite permission to invite other users. Should we hide the button that generates the invite link if the user doesn't have that permission? |
Just the modal is enough for now!
That is right! Reward also requires a permission but we don't have this on the frontend yet
No, we should also show the error modal, at least for now! |
@lucca65 is the backend synced with this new version? Seems like I can perform actions I don't have permissions to do (at least according to GraphQL). Looking at the GraphQL response, my user has no roles (and hence no permissions): However, I can create and update sales, buy stuff from the shop and claim actions (I only get a permission error when trying to vote on claims) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice!! can't wait to finally have this working!! we need to make sure the test is good for this, though. @juramos-2020 please share with me three accounts you use for testing? one must be an admin and the others can be normal members. I'll create a few scenarios for testing
Claro @lucca65 Segue conta admin: Heltonlr4141 (admin) Outros membros ju3141441515 Miguel313314 : |
@NeoVier event-source still don't sync up with new contract actions, this will be done in a part 2 of this task, that will include more stuff: transfer permission and clean up of RAM by removing old data (objectives) |
What issue does this PR close
Closes #665
Changes Proposed ( a list of new changes introduced by this PR)
Update contract calls to be compatible after the migration from cambiatus/contracts#33
Here is a full list of changes and how they relate to the frontend:
assignroles
- Newclaimaction
- Addedcommunity_id
clean
- Not usedcreate
- Not changedcreatesale
- Not changeddeleteact
- Not changed/Not useddeleteobj
- Not changeddeletesale
- Not changedmigrate
- Not changed/Not usedmigrateafter
- Not changed/Not usedmigrateobj
- Newmigrateusers
- Newnetlink
- Not changed/Not usedreward
- Replacesverifyaction
? - Not usedsetindices
- Not changed/Not usedtransfersale
- Not changedupdate
- Not changedupdatesale
- Not changedupsertaction
- Added community_idupsertobjctv
- Replaces newobjective and updobjective , adding/replacing cmm_asset with community_symbolupsertrole
- Newverifyclaim
- Added community_idreactsale
- Not used - was this deleted?How to test ( a list of instructions on how to test this PR)
Check if the above list is correct, and test these contract calls on the frontend
If you try to perform an action and don't have enough permissions, you should see a modal telling you that.