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

Discovery indexing user verification #4035

Merged
merged 3 commits into from Oct 6, 2022
Merged

Conversation

jowlee
Copy link
Contributor

@jowlee jowlee commented Oct 5, 2022

Description

Add User verified action via entity manager

Tests

Wrote a test to validate that a valid tx updates the user verified and an invalid tx does not update the user model

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

@@ -133,3 +149,31 @@ def update_user(params: ManageEntityParameters):
params.add_user_record(user_id, user_record)

return user_record


def verify_user(params: ManageEntityParameters):
Copy link
Contributor

Choose a reason for hiding this comment

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

does the user signup flow cover send a verify user tx? i guess all create_user txs have is_verified false to start

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well the user signup flow covers associating instagram or twitter - which is done with identity service.
When that happens, we check in identity if the user is verified and identity sends the request

@jowlee jowlee changed the title Jowlee user verification Discovery indexing user verification Oct 6, 2022
@jowlee jowlee merged commit c1b6baf into master Oct 6, 2022
@jowlee jowlee deleted the jowlee-user-verification branch October 6, 2022 22:16
jowlee added a commit that referenced this pull request Oct 10, 2022
* Add veirfy user action

* lint

* Address comments
jowlee added a commit that referenced this pull request Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants