Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngScenario): Allow ngScenario to handle lazy-loaded and manually bootstrapped applications #10723

Conversation

marcfallows
Copy link
Member

I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to
ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need
to address the bug where ngScenario does not work with manual bootstrap and also has issues if
angular.resumeBootstrap is not yet defined (race condition when lazy-loading).

…bootstrapped applications

I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to
ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need
to address the bug where ngScenario does not work with manual bootstrap and also has issues if
angular.resumeBootstrap is not yet defined (race condition when lazy-loading).
@googlebot
Copy link

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

@marcfallows
Copy link
Member Author

Signed CLA

@googlebot
Copy link

CLAs look good, thanks!

@caitp
Copy link
Contributor

caitp commented Jan 27, 2015

ngScenario is deprecated, I'm not sure anyone maintaining 1.x can properly review this

@marcfallows
Copy link
Member Author

@caitp Even if deprecated, I don't think ngScenario should exist in angular with bugs. At the moment ngScenario does not support apps which manual bootstrap or are lazy-loaded (Googling "ngscenario manual bootstrap" highlights that this is causing problems for more than just me).

You'll notice that no tests were changed or removed, only added. The existing functionality remains unchanged and I only fix the broken cases.

If well covered bug fixes won't be considered it should really be removed from the project.

@petebacondarwin
Copy link
Contributor

Given that we are in maintenance mode, we should probably just land this - but we should remove ngScenario (perhaps to its own project where it can be taken on by others) before 1.5.0

@marcfallows - can you please run grunt test and fix the jshint and jscs errors in this?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@marcfallows
Copy link
Member Author

Thanks @petebacondarwin. I've updated the jshint and jscs errors in my changes, sorry I didn't catch that on the first go-around.

It would certainly be useful for us that if ngScenario were removed it was still available (as it's own project, per your suggestion). Unfortunately we are currently tied to using it, but there's not really any reason it needs to be part of angular's core if the appropriate hooks are available in angular for it to sit a separate project.

petebacondarwin pushed a commit that referenced this pull request Jan 29, 2015
…bootstrapped applications

I know protractor is preferred, and ngScenario is only in maintenance mode. But, we are limited to
ngScenario based on the devices/browsers we are targeting (no web-driver available). So, we need
to address the bug where ngScenario does not work with manual bootstrap and also has issues if
angular.resumeBootstrap is not yet defined (race condition when lazy-loading).

Closes #10723
@petebacondarwin
Copy link
Contributor

@marcfallows - I have merged this. Would you be interested in taking more of an active role in supporting this module if we separated it from the angular.js repository?

@marcfallows
Copy link
Member Author

Nice! @petebacondarwin I would definitely like to be involved if it became a standalone project, and assist in decoupling from the angular project to support that move.

@petebacondarwin
Copy link
Contributor

@marcfallows - I have created a repository https://github.com/angular/ngScenario and given you write access. Are there any other people that should be invited?
I have created a bunch of issues to help move things forward. Feel free to take on as many as you are able...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants