-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat(api): added ban record #739
Conversation
last_run_revoke_matching = models.DateTimeField( | ||
null=True, blank=True, help_text="Last time revoke_matching_credentials was run" | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would include a type
field, of type BanType
.
That would be much clearer for people to understand, and query for particular ban types (I'm also thinking about analytics, not just eng)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to restrict it to specific "types" (i.e. field combinations) at the UI level to keep the code simple. But I'm cool with whatever!
…ucing type field in Ban model
…ions is not successful
description = models.TextField(default="", null=True, blank=True) | ||
csv_file = models.FileField( | ||
max_length=1024, null=False, blank=False, upload_to="revocation_list" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add help text, what columns are expected?
description = models.TextField(default="", null=True, blank=True) | ||
csv_file = models.FileField( | ||
max_length=1024, null=False, blank=False, upload_to="ban_list" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add help_text, what column sare expected
revocation_list=obj, | ||
) | ||
revocation_item_list.append(db_revocation_item) | ||
ceramic_cache_list.append(ceramic_cache) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ceramic_cache_list variable
fixes passportxyz/passport#3051