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

ref(control_silo): Move UserEmail model to users module #76134

Merged

Conversation

Christinarlong
Copy link
Contributor

Part of moving control silo user related resources into the users module. Includes adding any missing types for the model.

Apart of (#73856)

Part of moving control silo user related resources into the users module. Includes adding of types for functions.

Apart of (#73856)
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 13, 2024
Comment on lines +95 to +98
def hash_is_valid(self) -> bool:
return bool(
self.validation_hash and self.date_hash_added > timezone.now() - timedelta(hours=48)
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

coerced into bool to get return type to be only bool instead of bool | str

@Christinarlong Christinarlong marked this pull request as ready for review August 14, 2024 16:52
@Christinarlong Christinarlong requested review from a team as code owners August 14, 2024 16:52
@Christinarlong Christinarlong merged commit 02abec0 into master Aug 14, 2024
49 checks passed
@Christinarlong Christinarlong deleted the christinarlong/consolidate-users-models-useremail branch August 14, 2024 22:05
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants