Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Deprecated $http success/error promise methods #1508

Merged

Conversation

mleanos
Copy link
Member

@mleanos mleanos commented Sep 15, 2016

Replaces the $http service calls with promise based methods of the client-side UsersService for the following:
Users Change Password
Users Manage Social Accounts
Users Password Forgot
Users Password Reset
Users Signup
Users Signin

Modifies tests to reflect changes.

Closes #1479

Replaces the $http service calls with promise based methods
of the client-side UsersService for the following:
  Users Change Password
  Users Manage Social Accounts
  Users Password Forgot
  Users Password Reset
  Users Signup
  Users Signin

Modifies tests to reflect changes.

Closes meanjs#1479
@mleanos
Copy link
Member Author

mleanos commented Sep 15, 2016

I would like to point out that the UsersService methods that I added make calls to the api/auth.. should really go into the Authentication service, or a new service, since they don't really interact with the same base URL api/users.

However, doing so would require a major refactoring of the Authentication service, which could probably wait for now. It's a little ambiguous of where these should go on the back-end as well since our api/auth routes are handled by User server-controllers.

@coveralls
Copy link

coveralls commented Sep 15, 2016

Coverage Status

Coverage increased (+0.2%) to 73.246% when pulling af709db on mleanos:fix/angular-http-success-error-deprecated into 8b54669 on meanjs:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 73.246% when pulling af709db on mleanos:fix/angular-http-success-error-deprecated into 8b54669 on meanjs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 73.246% when pulling af709db on mleanos:fix/angular-http-success-error-deprecated into 8b54669 on meanjs:master.

@codydaig
Copy link
Member

@mleanos Is this ready for review?

@mleanos
Copy link
Member Author

mleanos commented Sep 15, 2016

Yes :)

@lirantal
Copy link
Member

@mleanos I'm fine with the change if you guys want to push in. Let's make sure we don't forget about this as I'd really want to kick 0.5.0 out the door already.
@hyperreality maybe you can help too with reviewing this.

@codydaig
Copy link
Member

Haven't tested, but LGTM from the code perspective. Glad to see this updated!

@mleanos mleanos merged commit fa13804 into meanjs:master Sep 17, 2016
@mleanos mleanos deleted the fix/angular-http-success-error-deprecated branch September 17, 2016 19:05
hyperreality pushed a commit to hyperreality/mean that referenced this pull request Sep 17, 2016
Replaces the $http service calls with promise based methods
of the client-side UsersService for the following:
  Users Change Password
  Users Manage Social Accounts
  Users Password Forgot
  Users Password Reset
  Users Signup
  Users Signin

Modifies tests to reflect changes.

Closes meanjs#1479
Wuntenn pushed a commit to Wuntenn/mean that referenced this pull request Sep 20, 2016
Replaces the $http service calls with promise based methods
of the client-side UsersService for the following:
  Users Change Password
  Users Manage Social Accounts
  Users Password Forgot
  Users Password Reset
  Users Signup
  Users Signin

Modifies tests to reflect changes.

Closes meanjs#1479
mleanos pushed a commit that referenced this pull request Oct 5, 2016
* Added configuration for owasp. Synchronize client owap configs with the server configs.
Also added a time indicator on failed login attempts to give the user feedback on subsequent failed login attempts.

* switched to handlebar template for passing the server's owasp config down to the client.

reverted some of the other changes (regarding the http request).

* Removed debug code.

* Changed variable name to owaspConfig

* Fixed minor type-o's and set owasp.config() rather than the underlying configs.

* chore(tidy): tidying up minor lint and layout issues

* fix(lint): CSS alphabetize warnings (#1498)

Fixes css lintings warnings of properties not alphabetized.

* fix(authentication) Stops error on signin/signup (#1495)

Uses the passport info object to simplify login and remove the need to
temporarily cache the redirect within the session.

* Moved owasp config into default and reverted other config files.

Modified config to be "shared". This will allow future configurations to be easily passed to the client.

* fixed 403 redirect if not signed in (#1496)

* Update form-article.client.view.html

For New Article, delete function no required

* UI changes for mobile; autofocus

* fixed broken password popover balloon

* add e2e test for autofocus

* Remove test, fix delete social login button

* feat(core): Move template to .github folder

* Deprecated $http success/error promise methods (#1508)

Replaces the $http service calls with promise based methods
of the client-side UsersService for the following:
  Users Change Password
  Users Manage Social Accounts
  Users Password Forgot
  Users Password Reset
  Users Signup
  Users Signin

Modifies tests to reflect changes.

Closes #1479

* rebase
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.

4 participants