-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1167 +/- ##
==========================================
+ Coverage 93.04% 93.07% +0.02%
==========================================
Files 532 533 +1
Lines 20526 20658 +132
Branches 2415 2437 +22
==========================================
+ Hits 19099 19227 +128
- Misses 1132 1133 +1
- Partials 295 298 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Next, I'll add the bit to actually assign the role when there's at least one trust. And to remove it again when trust is revoked and there's less than one trust left.... I guess that can somehow work... |
Great :) Makes sense for me to review it after that. The notifications might be the more fiddly, I think the ones for getting editor role are very specific to that, but would be useful if they were generalizable, so when roles are customizable per group there is just one set of role/trust notifications. |
I wondered if it could make sense to have those notifications somehow user-defined; after all, I have no idea what the role is actually good for. From my perspective, it's just a lower-case string ;) We probably need those messages:
This would turn Karrot more into a Content Management System, but could be a useful level of customization. I guess groups would write better messages than we could, because they are closer to the users. This also resolves the question about translation, groups would provide the messages in their own language. |
Totally :) That's exactly the kind of direction that makes sense to me too. And more generally having more and more bits of the app that the groups themselves have written. This is part of the same vision of the customizable activity types, place types, etc... I think there is an intermediate step though, as that's a lot of work to get to that, and it would probably be best to do some design process first to understand the context for the groups better. So, to my mind a way to notify about people getting approved role is enough for now, whether that's by generalizing the existing editor content, or making new content is up to you :) (or someone else if you aren't doing that bit) |
I mean, I wouldn't implement any API method to change the text yet, but still have it in the database so we can adapt to the Luxembourg group needs without re-deploying (but just change the database entry). Basically, my idea is to set up the code so the Luxembourg group can try out their "approved" role with text of their own choosing (set through us), and if other groups would like to join the beta test, they can do so with fairly low effort for us (just changing a few database fields). I wouldn't touch the existing messages for editor yet, would leave that for later. At some point, we can add the API to add roles and change messages. Then it makes sense to adjust the editor messages, as roles would become more prevalent in the groups. |
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.
Great, I think it's amazing to progress this stuff.
It does feel an intermediate state now, not on your part, but because we're bolting concepts on to our existing system, which I think would benefit from some rationalization, which I think we are capable to manage now! So great to work with what we have right now.
I can't actually approve this, because GitHub tells me it's my PR, because I did the initial work on it :)
yup, makes sense! |
1b11e4b
to
1b938a6
Compare
Forum thread: https://community.foodsaving.world/t/applicant-trial-pickup-proposal/575
Backend part for trust for role feature karrot-dev/karrot-frontend#2361
It:
role
field toTrust
modelrole
field in the trust user / revoke trust API endpointstrust
fieldrole
model to let groups specify custom roles, with fieldsdisplay_name
,description
,threshold
,role_required_for_trust
trusted_by
serializer field in group membership infoTo try it out, use the database shell to create a new
Role
for a given group: