Uh oh!
There was an error while loading. Please reload this page.
[PAY-3614] Add entity manager support for emails - #10521
Conversation
|
raymondjacobson
left a comment
There was a problem hiding this comment.
nice this looks super solid!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| Validates delegated access data | ||
| Raises IndexingValidationError if validation fails | ||
| """ | ||
| if len(delegated_user_ids) != len(delegated_keys): |
There was a problem hiding this comment.
do we need to add any check here to validate who the delegated access is to?
There was a problem hiding this comment.
like to see if they exist?
There was a problem hiding this comment.
yeah... maybe we don't care, just a thought
Uh oh!
There was an error while loading. Please reload this page.
| ) | ||
| if params.action not in [Action.ADD_EMAIL, Action.UPDATE_EMAIL]: | ||
| raise IndexingValidationError( | ||
| "email.py | Expected action to be AddEmail or UpdateEmail" |
There was a problem hiding this comment.
we typically include this filename in a log msg, but i dont think it makes sense for error copy
also our structured logging adds that now anyway, so it's not really necessary in logs too. https://github.com/AudiusProject/audius-protocol/blob/ab5c06b879800120a9479b7155536b703bb562dc/packages/discovery-provider/src/utils/structured_logger.py#L85
[e498a37] [PROTO-1989] Rudimentary core health check, fix rollup page bug (#10542) Danny [3f8ae11] Add proper reporting in EUR to relevant territories (#10530) Raymond Jacobson [458afb0] [TRIVIAL] Add underscores and rename (#10538) Farid Salau [f708b1e] rm logs and run indexer once every 3 seconds (#10536) alecsavvy [d32ca5e] [PAY-3614] Add entity manager support for emails (#10521) Farid Salau [01cc92c] Handle duplicate comment thread records (#10535) Isaac Solo
Description
This PR adds entity manager support for uploading emails.
It does not handle the encryption of the emails, that will be done in a follow up PR.
How Has This Been Tested?
Locally by running the below code in
ProfilePage.tsxand checking the local db for the content