Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

refactor: misc cleanup #1395

Closed
wants to merge 1 commit into from
Closed

refactor: misc cleanup #1395

wants to merge 1 commit into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Aug 27, 2014

No description provided.

@jbdeboer
Copy link
Contributor

This PR fails in a large number of apps because: Type 'Profiler' not found in generated typeFactory maps. Is the type's constructor injectable and annotated for injection?

Please add a test that would catch this error and then fix it.

@vicb
Copy link
Contributor Author

vicb commented Aug 28, 2014

@jbdeboer good catch, Profiler is fom the perf_api package hence not marked a injectable. I've reverted this to a toFactory type.

I think the test belongs to the DI rather than angular. I once submitted a PR for that which did not get merged. I'll update this PR to work with the new DI.

(edit: the PR has been updated and should be ok now)

@jbdeboer
Copy link
Contributor

No, there should a test in Angular that catches this -- it is odd that the e2e tests did not and that requires investigation.

@vicb
Copy link
Contributor Author

vicb commented Aug 29, 2014

@jbdeboer may be we can merge this and create an issue ?

@vicb
Copy link
Contributor Author

vicb commented Aug 29, 2014

Actually the Profiler is used only for Animations and they are disabled for e2e IIRC.

@jbdeboer
Copy link
Contributor

Could we create an e2e test that triggered this error?

I would prefer to fix this gap in our test coverage now while we are focused on it instead of filing an issue that might not be fixed.

@vicb
Copy link
Contributor Author

vicb commented Aug 29, 2014

@chirayuk knows why anims have to be disabled for e2e, I don't. (and I fail to see how not merging this PR would help)

@vicb
Copy link
Contributor Author

vicb commented Aug 30, 2014

@jbdeboer I really think the solution (or part of it if you wish) is to be fixed at the root (ie di level), I have a PR almost ready based on my previous work (dart-archive/di.dart#104) with the updates requested by Pavel. It still need to write tests before submitting it.

@vicb
Copy link
Contributor Author

vicb commented Sep 1, 2014

@jbdeboer PR submitted to the DI: dart-archive/di.dart#174

@jbdeboer
Copy link
Contributor

jbdeboer commented Sep 3, 2014

Thank you @vicb

vsavkin pushed a commit to vsavkin/angular.dart that referenced this pull request Sep 3, 2014
@vicb vicb closed this in 16e9622 Sep 4, 2014
vsavkin pushed a commit to vsavkin/angular.dart that referenced this pull request Sep 10, 2014
@vicb vicb deleted the 0827-cleanup branch September 17, 2014 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

3 participants