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

Scottx611x/fix add users to public group timeout #2996

Merged

Conversation

scottx611x
Copy link
Member

While trying to deploy an AWS instance for hotfix-1.6.6.1 I consistently ran into a timeout that didn't allow for the Puppet manifest to apply completely.

This is due to the fact that we have a bunch of spam User instances hanging around and for each user.save() being called within the add_users_to_public_group mgmt command _add_user_to_neo4j is being run unnecessairily.

This PR only adds a user to neo4j on a User.post_save signal being hit if we have activated said user prior.

@ghost ghost assigned scottx611x Sep 11, 2018
@ghost ghost added the review label Sep 11, 2018
@scottx611x
Copy link
Member Author

@mccalluc I've now been able to bring up a stack with this fix introduced

Copy link
Member

@mccalluc mccalluc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good... but maybe getting rid of inactive users would also be a good thing.

@scottx611x scottx611x merged commit 307bc41 into hotfix-1.6.6.1 Sep 11, 2018
@scottx611x scottx611x deleted the scottx611x/fix_add_users_to_public_group_timeout branch September 11, 2018 20:21
scottx611x added a commit that referenced this pull request Oct 12, 2018
* Only add a User to the Public Group if they aren't already a member

* Only add user to neo4j upon initial User creation

* Revert "Only add a User to the Public Group if they aren't already a member"

This reverts commit 12f53c6.

* Constrain User addition and annotatio set updating neo4j to active users only;
We still need to run this code for all active users during provisioning because the Neo4J database is recreated each time

* Reverse logic to check if a User is active and add logger
@scottx611x scottx611x added this to Backlog in Scott O. Tasks via automation Oct 24, 2018
@scottx611x scottx611x moved this from Backlog to Done in Scott O. Tasks Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants