-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[CLEANUP beta] Remove array controller #11484
Conversation
1653ddd
to
bc71998
Compare
yes this should also be extracted. Is there an addon for arraycontroller already? |
Extracted addon for ObjectController and ArrayController: https://github.com/cibernox/ember-proxy-controllers |
|
This weekend I'll extract this to the addon and finish this. |
e339e1f
to
d32f8ee
Compare
After some discussion with @tomdale regarding itemController. We suspect, itemController hooks should be left in the view layer, but only become functional when the legacy ArrayController addon is present. This may be tests a-bit tricky, but likely they should also be extracted to the add-on. Going forward, we will likely have to be careful to run test against the supported legacy addons, or ideally eventually support them as part of a normal test run. |
let keyword = hash['-legacy-keyword'] && getValue(hash['-legacy-keyword']); | ||
|
||
if (firstParam && firstParam instanceof ArrayController) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe these hooks will need to stay (as deprecated) for some reasonable period of 2.x. This will allow apps to upgrade, and for tests in the legacy addons to tap in.
Obviously requiring the ArrayController
for the instanceof
wont work, so we will need to revert to duckTyping of some kind. Maybe something like: firstParam.isArrayController
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added back
This may need to want until routableComponents land. Although |
this stays around, since Ember.Controller is still needed as we did not land RoutableComponents. |
@cibernox thanks for all your work here, I am super excited for this to land! |
1d486ff
to
1168c63
Compare
@cibernox this looks good (except for the failing tests) Im available tomorrow and thursday to help you in anyway to get this in. |
7579bee
to
4919d19
Compare
now needs a rebase lets be sure we get the addon to production readiness shortly. |
Is @cibernox working on extracting the addon as well? |
Yes. He has it on his account Appears to be complete (to the degree discussed ) |
Support for legacy array controller lives in the addon detected via duck typing. Also added inline comment where some functionality was extracted into the addon
4919d19
to
e9bb9bf
Compare
1be8859
to
a75762e
Compare
Apparently the tests with the old jquery are consistently failing in travis, but locally they work. Is is a known issue? |
No, master appears to be green. |
6f31f13
to
deec0be
Compare
Ok, it was random. It passed after 5 tries. |
sorry the second commit should likely also be BETA @rwjblue c/d? |
047cc25
to
f829ba8
Compare
f829ba8
to
0272681
Compare
[CLEANUP beta] Remove array controller
Thank you! |
NO MERGE: Depends on #11479
Probably there is a few more tasks to do, but in different PRs:
beforeObserver/addBeforeObserver/removeBeforeObserver/beforeObserversFor
and deprecate pubic interfaces in theEmber
namespaceAs a curiosity, ember is finally under 500KB again:
