Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Separate invites and users #277

Merged
merged 1 commit into from Sep 26, 2016
Merged

Conversation

kevinansfield
Copy link
Collaborator

@kevinansfield kevinansfield commented Sep 20, 2016

issue TryGhost/Ghost#7420, requires TryGhost/Ghost#7422

  • adds a new Invite model with associated serializer and test setup
  • updates team screen to use invites rather than existing users with the "invited" property
  • updates signup process to work with new invite model
  • updates setup process to create invites instead of users
  • swaps usage of gh-select-native for one-way-select in the invite modal so that attributes can be set on the select element
  • updates resend invite process to account for server returning a new model
  • rewrites the invite management tests and fixes mirage mocks for invite endpoints
  • sorts invites by email address to avoid jumping invites when re-sending

TODO:

  • re-instate invite validation when accessing signup page
  • add tests for resend + revoke actions
  • add tests for role display
  • add tests for authors accessing team page (mirage needs to return 401 if author accesses invites endpoint)
  • 馃悰 resend doesn't account for getting a new ID back from the server

@kevinansfield kevinansfield changed the title Move to a separate Invite model [HOLD] Move to a separate Invite model Sep 20, 2016
@kevinansfield kevinansfield changed the title [HOLD] Move to a separate Invite model [HOLD] Separate invites and users Sep 21, 2016
@kevinansfield kevinansfield force-pushed the invite-model branch 2 times, most recently from feee8a2 to c3566a4 Compare September 22, 2016 09:58
@kevinansfield kevinansfield changed the title [HOLD] Separate invites and users [WIP] Separate invites and users Sep 22, 2016
@kevinansfield kevinansfield force-pushed the invite-model branch 3 times, most recently from 476cdf8 to 4327433 Compare September 23, 2016 13:41
@kevinansfield kevinansfield changed the title [WIP] Separate invites and users Separate invites and users Sep 23, 2016
@kevinansfield
Copy link
Collaborator Author

ready for review 馃槑

issue TryGhost/Ghost#7420, requires TryGhost/Ghost#7422
- adds a new `Invite` model with associated serializer and test setup
- updates team screen to use invites rather than existing users with the "invited" property
- updates signup process to work with new invite model
- updates setup process to create invites instead of users
- swaps usage of `gh-select-native` for `one-way-select` in the invite modal so that attributes can be set on the `select` element
- updates resend invite process to account for server returning a new model
- rewrites the invite management tests and fixes mirage mocks for invite endpoints
- sorts invites by email address to avoid jumping invites when re-sending
@ErisDS
Copy link
Member

ErisDS commented Sep 25, 2016

Have tested this and all the behaviour seems to be working as far as I can tell.

@kirrg001 kirrg001 merged commit 5913827 into TryGhost:master Sep 26, 2016
@kevinansfield kevinansfield deleted the invite-model branch February 4, 2017 10:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants