-
Notifications
You must be signed in to change notification settings - Fork 679
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
Feature/allow manual control #357
base: master
Are you sure you want to change the base?
Feature/allow manual control #357
Conversation
updated all dev dependencies to current added jasmine-core to satisfy peer dependencies updated syntax in unit tests due to breaking changes in jasmine 2.x syntax
exposes functionality so that loading bar progress can be customized more easily added unit tests for this new functionlity added push and pop functionality to the description of the service API in the readme added setting autoIncrement to the configuration section of the readme
@ArlyMathiasen whitespace changes make the "add push and pop methods …" commit look like a complete rewrite... also would create merge conflicts with any PR that touches that file... |
@ArlyMathiasen In regards to the README update
Why? The intended purpose of that feature is so that, for example, during the time we have 1 outstanding request, the user will see the bar moving, indicating "something is happening". I believe otherwise it would sit at 1% until the request completes. |
@mattbrunetti |
@mattbrunetti |
@mattbrunetti |
@ArlyMathiasen This is also possible with the automatic triggering based on $http requests, so nothing specific about manual triggering, and that's the way it was before. I believe the default of having it enabled is generally preferred; It's not perfect but gives the clear impression that "something's happening" and should not appear funky most of the time. I would not advise against the default behavior. Also, maybe keep the description of the methods short and high-level; no need to go into such detail about implementation details. Less is more. e.g. "Signals the start of a request". Should still mention the optional argument(s). Also good to note when you would need it - "Use this if your request doesn't go through the $http service and thus can't be automatically detected." Looks good otherwise |
caught a typo in the configuration section change
@mattbrunetti
|
@faceleg
@mattbrunetti
This addresses the same problem as #49 in a more flexible way.
adds push and pop methods, to allow for manually simulating the initialization and completion of requests.
These functions were exposed on the service API, allowing developers using this package to set up custom triggers for setting the progress of the bar / completing the bar, using whatever 3rd party libraries they want.
I've updated the dev dependancies and made changes to code where those updates cause breaking changes.
please review