-
Notifications
You must be signed in to change notification settings - Fork 67
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
1.2.7 getModified regression #225
Comments
In fact, model "dirty tracking" in general seems to have issues in 1.2.7. |
Can you create a reproduction? When introducing 1.2.7 version I was expecting to get several issues about the |
I've improved backward compatibility in Astronomy 1.2.8. You shouldn't have problem right now. |
I've updated my astronomy perf repo to demonstrate the bug: https://github.com/marbemac/astronomy-perf Load that meteor app up, then change the url in the input field. You'll see getModified() returns the entire request object, which is the first kind of weird thing. Then, when you clear the input, isModified() correctly returns false, but getModified() still returns the request object, even though nothing in there is actually modified. |
Ok I know what's the problem. The reason that it still sees modifications is because document contains |
Fixed in 1.2.9 |
👍 all good, thanks! We continue to layer in hacks to work around #156. Any sort of progress update on 2.0? Not a huge rush, just curious. Would a 2.0 umbrella issue make sense? Kind of like this: |
I have a little delay with Astronomy 2.0 because of private stuff. Moreover there is Christmas now. So it will be at the beginning of 2016. What is it about umbrella issue? I don't have time to read entire discussion. |
No problem on 2016. I was just suggesting that it might make sense to create an umbrella issue for astronomy 2.0, similar to that linked issue. It's not strictly necessary - just helps people that are interested, follow the 2.0 progress without having to ask or bug you :). |
Oh I see. I didn't know that we can use the "umbrella" word in such situation :). Is there some reason that they use the "umbrella" word instead of something else? :) Yes I think it's good idea to create such issue. I will do it. |
I hate to resurrect this again, but see the attached screenshot. I'm not sure exactly what is causing this to happen, but I'm seeing cases where getModified returns an empty object, but isModified() returns true. In the specific case I'm running into, there should be no modifications to the model (so getModified is working correctly, but isModified seems to have an issue). I'll try and figure out how to reproduce this, but in general, should isModified ever return true if getModified returns an empty object? |
(this does not occur in 1.2.6) |
Ok I will take a look at it |
@jagi They use the "umbrella" word because it kind of covers the entire thing. So like how an umbrella covers a person from rain in entirety. |
We rely on getModified to show a save/undo button if there are changes to the model.
With 1.2.7, getModified doesn't work correctly for nested objects. Consider:
The text was updated successfully, but these errors were encountered: