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

add a test mode #50

Open
afeld opened this issue Oct 8, 2015 · 2 comments
Open

add a test mode #50

afeld opened this issue Oct 8, 2015 · 2 comments

Comments

@afeld
Copy link

afeld commented Oct 8, 2015

We are planning to use this @18F, and even though we've done some testing in a sandbox organization, it would be nice to see what the bot would do against our real org. Would be great to have a test/no-op option, where it (for example) prints out all of the issues it would file and the users it would kick out, without actually doing so. I've never done any Scala, but could possibly hack on this a bit if there's interest.

/cc @jgrevich

@rtyley
Copy link
Member

rtyley commented Oct 10, 2015

You probably want an endpoint that'll print out the results of OrgUserProblems.problems and StateUpdate (which is one of MemberUserUpdate, MembershipTermination, or UserHasLeftOrg):

https://github.com/guardian/gu-who/blob/b5307f/app/lib/OrgUserProblems.scala#L80-L113
https://github.com/guardian/gu-who/blob/b5307f/app/lib/StateUpdate.scala#L24-L51

@afeld
Copy link
Author

afeld commented Oct 10, 2015

That would work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants