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

Null Return on Group scrubs a github team #6

Closed
jerick1976 opened this issue Jan 7, 2019 · 5 comments
Closed

Null Return on Group scrubs a github team #6

jerick1976 opened this issue Jan 7, 2019 · 5 comments
Assignees
Labels
🐛 bug Something isn't working enhancement New feature or request

Comments

@jerick1976
Copy link

We experienced an issue within our AD environment where the sync script hit a heavily loaded AD server. The result was a query return of zero users for a group that had multiple users in it. The script then proceeded to remove all of the users from the GitHub team.

On the next run the script hit a lightly loaded AD server and repopulated the team but the damage was done.

The request here is to add a check for a null list. If the list is empty, report an error and proceed to the next sync instead of stripping the users from the GitHub team.

@primetheus
Copy link
Collaborator

This looks like it's due to #5.

@primetheus primetheus self-assigned this Jan 8, 2019
@primetheus primetheus added the 🐛 bug Something isn't working label Jan 8, 2019
@primetheus
Copy link
Collaborator

We can probably add an option to skip null responses... maybe -n|--skip-null or something of the like... that way existing functionality can remain for those who want it, and when we want empty groups to be ignored we can do that

@primetheus primetheus added the enhancement New feature or request label Jan 9, 2019
@jerick1976
Copy link
Author

jerick1976 commented Jan 9, 2019 via email

@primetheus
Copy link
Collaborator

@jerick1976 I've refactored the script to run as a GitHub App in #33. I need to add more checks in, but the CHANGE_THRESHOLD should help with this issue

@primetheus
Copy link
Collaborator

Closing. If further functionality is requested please re-open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants