Closed apex-omontgomery closed 6 years ago
@wimo7083 - When I wrote this, I was thinking you'd be breaking it out into individual issues. Apologies for not making that clear.
Can you pls create the individual issues for this work?
Issues:
SlackUser
table and remove column from User
tableSlackUser
SlackUser
:create
and :update
endpointsafter_update
callback on user.email_changed?
, so let's get a placeholder issue to capture that potential workOnce the issues are created, we can scope out any other missing pieces, associate dependencies with one another, prioritize the tickets, and start banging out the work.
Closing this. Thanks for creating all the individual issues.
Feature
Why is this feature being added?
This feature is being added to reduce
User
table bloat and reduce manual CRUD operations. This modification will create a new table to store Operation Code Slack information and create an endpoint to control the update and secure access for this RESTful endpoint.Going to be using this issue as the epic for the entire feature, and will attempt to implement as I can.
What should your feature do?
slack_name
fromUser
tableSlackUser
tablecreate
andupdate
through BESlackUser Table
New User Flow
team_join
event triggers some action to the BE with the slack user informationUser
record and creates a newSlackUser
recordExisiting User updates
user_change
event triggers call to BE repo with informationSlackuser
withslack_id
, and makes change.SlackUser
found, creates newSlackUser
and associates withUser
with matching emailafter_update
callback onuser.email_changed?
BE Endpoints
POST
:create
-> New User a. success response b. request email update response c. some error statusPUT
:update
-> Existing User a. success response b. record created c. request email update response d. some error statusAPI Authentication