Skip to content
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

compliance consolidation updates #527

Merged
merged 2 commits into from
May 23, 2017
Merged

compliance consolidation updates #527

merged 2 commits into from
May 23, 2017

Conversation

theseyi
Copy link
Contributor

@theseyi theseyi commented May 23, 2017

  • removes obsolete confidential feature component sources
  • fixes issue with tracking current user immediately after login: moves user tracking to index from application. adds session invalidation when retrieving the current user fails. slightly refactors logout

theseyi added 2 commits May 22, 2017 16:58
… user tracking to index from application. adds session invalidation when retrieving the current user fails. slightly refactors logout
@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 918ce4a on theseyi:linkedin into 3befcb5 on linkedin:linkedin.

@@ -1,7 +1,22 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
import fetch from 'ember-network/fetch';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi, looks like ember-fetch is replacing ember-network .
Based on conversations in miragejs/ember-cli-mirage#983, tomdale/ember-network#17 and mostly ember-cli/ember-fetch#21

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Ember.$.get('/logout').then(() => {
this.get('session').invalidate();
});
fetch('/logout').then(() => get(this, 'session').invalidate());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this call ever fail? do we need a catch ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the logout fails, at this point the user will remain on the page and will probably re-attempt to logout.

@theseyi theseyi merged commit cdb7df9 into datahub-project:linkedin May 23, 2017
@theseyi theseyi deleted the linkedin branch May 23, 2017 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants