Skip to content

Conversation

@sreynen
Copy link
Contributor

@sreynen sreynen commented Aug 3, 2017

For https://github.com/MoveOnOrg/Spoke/issues/86, this adds a hash column to the invite schema, populates it with UUID, and uses that instead of ID, so invite links are less guessable.

@@ -1,3 +1,4 @@
import { log } from '../../lib'
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we importing log here? Are we using it/planning to use it in this file?

@shakalee14
Copy link
Contributor

I think we need to wrap the inviteInput in an array because of knex psql? Not sure if this is the same issue, but in order to do an insert statement and return the inserted id for knex and (specifically) psql, what you want to return needs to be wrapped in an array. But this comment could be completely un related.

Copy link
Contributor

@shakalee14 shakalee14 left a comment

Choose a reason for hiding this comment

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

When testing on production, I'm getting a GraphQL error when trying to create an organization. After you created an invite connected to a hash, were you able to create an organization?

@sreynen
Copy link
Contributor Author

sreynen commented Aug 4, 2017

Org creation should be fixed now. In my testing, the org I created doesn't get attached to my account, but I confirmed the org was created in the database, and I believe that also happens in master, so assuming it's not related to invite changes.

@sreynen sreynen merged commit 694f799 into master Aug 4, 2017
@schuyler1d schuyler1d deleted the 86-invite-links branch September 14, 2017 18:56
lperson added a commit to lperson/Spoke that referenced this pull request Jun 10, 2019
…_texter_status

add suspended texter status
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.

3 participants