Skip to content

Conversation

@scottyhagan
Copy link

@scottyhagan scottyhagan commented Apr 7, 2021

JIRA

https://tractionguest.atlassian.net/browse/SST-17083

Description

I am making a change to our package to handle the use of default_scope in our projects SCIM "User" model. We are raising exceptions when trying to create users where the default_scope attribute is set to false. This PR unscopes the lookup to work around it.

We should be reverting this back once we remove the default_scope from our model, because if for whatever reason we were to try and publish this back to the original repo or some other public gem it could cause problems for people where they want the default_scope to be respected.

Just another lesson in why we should avoid using default_scopes

@scottyhagan scottyhagan self-assigned this Apr 7, 2021
@pluus
Copy link

pluus commented Apr 7, 2021

Does it have a JIRA ticket? 🤔

@scottyhagan
Copy link
Author

Does it have a JIRA ticket? 🤔

https://tractionguest.atlassian.net/browse/SST-17083

@scottyhagan scottyhagan merged commit 9c2d9a5 into master Apr 8, 2021
@amaury-sie amaury-sie deleted the unscope-people branch June 14, 2023 22:52
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

Successfully merging this pull request may close these issues.

4 participants