-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Remove relays #242
Comments
It would be nice to at least try and remove them. 👍 It might be a breaking change for anyone who is getting around the current issue of getting non relay objects like this. changeset.get('changeset.date') => // moment() But there could be a warning for keys starting with /^changeset./ to say you no longer need to do this. |
@krishandley Great point, maybe we should use |
Bumping to 2.0.0 sounds good to me 👍 |
Ya. I think it’s worth a shot. I started from the existing feature branch, so i never tried it without. I think maybe if you where to get the nested object, then start working off of that, you’d run into some issues with things. But definitely worth a shoot. The whole time i was finishing it out, i felt more like i was applying bandaids rather then fixing root causes, and thought that with nested keys the architecture would need to change a bit, but at that time decided not to take a new direction. |
And to clarify my previous point. I realized it might have sounded like I was absolving myself and pushing "the blame" up. That was not my intention. There are times when you come into a system or issue that is half complete, and it is the responsibility of the one who completes something to feel confident in it. Having the "applying band-aids" to patches (if you read #194 (comment) it will become clear of the lack of confidence in the course I was taking). But I just didn't want to have it be misconstrued that I was talking about anyone's work other than my own. (Probably didn't need to state this, but just wanted to be painfully clear as I reread what I wrote and saw that it could have been taken the wrong way, so wanted to clarify). |
@webark Don't sweat it, if anything I shouldn't have been so hasty in merging the PR. We have a good grasp on the remaining bugs – and I'll be on holiday break soon – so let's try to get the next release out. 😄 @poteto mentioned something about foo = obj.unknownProperty('foo')
bar = foo.unknownProperty('bar')
bar.setUnknownProperty('baz', 42) So yeah this needs some more thought. Any suggestions would be appreciated! |
Going to close this, since I understand why we need relays now. |
It seems like we don't really need relays. Here are some random supporting thoughts:
get
and her ember-deep-set addon.Without relays,
_valueFor
would look a lot simpler – not to mention easier to maintain:I might be missing something though. Anyone have any thoughts on the matter?
The text was updated successfully, but these errors were encountered: