Closed Robbilie closed 2 years ago
@Robbilie Thanks for opening this up! Can you also update the .env.example
files and README
?
sure thing!
i need your opinion on my code though, i realized that it has a tiny flaw, it runs before team members get kicked out of teams so it may take until the next scheduled run to completely remove a member from the org. changing this would mean though that i would have to do the whole iterate over installations and orgs thing after future.result() loop. that would blow up the method and thus i would probably shift it to a seperate one, but it feels like a lot of duplicate code then. any thoughts?
i made that code change, i think its a bit cleaner this way even though a bit more duplicated, at least it doesnt take another schedule this way. feel free to add your thoughts :)
@primetheus i got two more changes lined up, would be great if you could find the time to go over this :)
@Robbilie it seems to work, but it may be expensive on massive infrastructures with 10k+ users, since it doubles the API calls. I'll do some testing this afternoon and see if we can optimize the performance a bit
Solves #127