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

Rename backing fields (so that they don't clash with devise) #27

Closed
wants to merge 1 commit into from

Conversation

stulentsev
Copy link

@dblock
Copy link
Collaborator

dblock commented Aug 26, 2014

This is not backward compatible and will leave a lot of garbage fields in existing documents set to nil I believe. I think we don't want to merge this without the customizing feature.

Either way, this also needs an entry in CHANGELOG and potentially create an UPGRADING document. Thx.

@stulentsev
Copy link
Author

Got it, thanks.

@stulentsev stulentsev closed this Aug 26, 2014
@dblock
Copy link
Collaborator

dblock commented Aug 26, 2014

You can keep it open! Just add to this PR.

@dblock dblock reopened this Aug 26, 2014
@afeld
Copy link
Collaborator

afeld commented Aug 27, 2014

I think we don't want to merge this without the customizing feature.

I'm fine with a minor version bump and instructions about how to clean up the old fields, but could go either way. Customizability seems less pressing with the more specific field name.

@stulentsev
Copy link
Author

Who's in charge here? :)

@afeld
Copy link
Collaborator

afeld commented Aug 27, 2014

It's @dblock's world, I just live in it 👸

@dblock
Copy link
Collaborator

dblock commented Aug 27, 2014

"Agreement" in something like this is when everybody can live with the results, even if sometimes they don't "love" it ;)

The biggest issue I see with renaming the field is that cleanup is particularly complicated for existing projects across all models. We use this gem in a lot of places and if I am not mistaken there're a lot of instances that have a nil value for the lock field right now. So we would need to unset these, which is potentially a very large operation, multiplied by many models.

I am happy to help with customization if it seems too hard @stulentsev, btw. Do you want to try it or do you need help?

@stulentsev
Copy link
Author

@dblock I want to try it. And then I'll likely ask for help :)

@dblock
Copy link
Collaborator

dblock commented Mar 12, 2015

Bump @stulentsev

@stulentsev
Copy link
Author

@dblock hah, you know how it is. You solve the immediate problem and then there are more pressing things to attend to. :)
I'll devote a couple of hours this weekend.

@dblock
Copy link
Collaborator

dblock commented Jan 24, 2017

I'm going to close this for now. There's a lot more work here to be done for it to be merged and there be dragons with renaming fields, anyone who feels like it can pick it up. See above for comments.

@dblock dblock closed this Jan 24, 2017
@stulentsev
Copy link
Author

yeah...

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.

3 participants