Comments (2)
@jschanfung, actually, the following snippet should guarantee that there won't be any conflicts in case of multiple invitations of the same user:
from outside-collaborators.
Hi @jschanfung
Did you manage to test it in a real scenario or are you speculating about the pitfall?
Users and groups get processed serially, hence user03
should receive the permission that comes as last.
That said, I didn't cover all the possibilities while developing this system honestly, and it might be that inviting twice the same user in a row can generate conflicts. Differently, when you just change permissions for users/groups who have already accepted the invitation, there are no conflicts.
It's not that straightforward to test this condition as I'd need an external collaborator to help me with that, but I'll have a look.
Thanks for pointing it out.
from outside-collaborators.
Related Issues (20)
- Empty groups are not handled correctly
- Add Host-coreboot.yml to repos directory and add coreboot users HOT 3
- Failed when managing archived repos
- Deleting a file from repos does not trigger a proper cleanup HOT 4
- Validate outside collaborators role before changing permissions HOT 14
- check-automated-repositories does not warn that an user has been manually removed HOT 2
- Handle Rate Limit HOT 5
- Judge the possibility to keep previous invitations
- Add collaborators to a list of repos HOT 5
- Extend the mentioning mechanism to discussions HOT 1
- Send out fresh invitations HOT 1
- [mentioning] Do all repositories need access to the PAT of org admin? HOT 5
- Duplicate entries break the update scripts. HOT 12
- Github action still seems successful even if collaborators weren't added HOT 1
- Rate limiter not handled correctly for paged services
- Rate limit exception got at a safeguarded seemingly single operation HOT 5
- Mentioning Breaking - Need Info HOT 8
- GH handles with wrong case are not added up
- PR are not actually checked
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from outside-collaborators.