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

Make unloadAll() unload all records, deprecate unloadAll(type) in favor ... #2999

Merged
merged 2 commits into from
Apr 28, 2015

Conversation

svox1
Copy link
Contributor

@svox1 svox1 commented Apr 13, 2015

Make unloadAll() unload all records, deprecate unloadAll(type) in favor of unloadType(type)

Big thx to @wecc for the support!

@fivetanley
Copy link
Member

LGTM but we'll plus one / merge it at friday's meeting

@svox1
Copy link
Contributor Author

svox1 commented Apr 22, 2015

Sounds good, but was there any issues on this?

hm... you didnt say which friday 😃

@fivetanley
Copy link
Member

Hey this looked great to us. We weren't solid on unloadType. Igor and I thought this could be construed as unloading an entire type (as in you can't make new records with it) from the store.

@wecc suggested unloadRecordsByType(type), unloadAllRecords() as new method names, I think those are good. If you have any alternative names we're totally open to it! If not, if you can update the PR with the renames I will merge it ASAP. Thanks!

@wecc wecc removed the team-review label Apr 24, 2015
@fivetanley
Copy link
Member

After talking at the meeting, we'd like to switch on type. So for example unloadAll() and unloadAll(type). We can always switch these to different methods later in a backwards compatible way.

@svox1
Copy link
Contributor Author

svox1 commented Apr 27, 2015

I hope I have understood you correctly.

I have change the method so we have:
unloadAll(); and
unloadAll(type);

@fivetanley
Copy link
Member

👍 I'll merge it once Travis and Appveyor give us the green light. Thanks!

@quaertym
Copy link

👍 Great.

fivetanley added a commit that referenced this pull request Apr 28, 2015
Make unloadAll() unload all records, deprecate unloadAll(type) in favor ...
@fivetanley fivetanley merged commit 49f00ab into emberjs:master Apr 28, 2015
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.

None yet

4 participants