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

feat(api): added ban record #739

Merged
merged 25 commits into from
Dec 3, 2024
Merged

feat(api): added ban record #739

merged 25 commits into from
Dec 3, 2024

Conversation

lucianHymer
Copy link
Collaborator

@lucianHymer lucianHymer marked this pull request as ready for review November 26, 2024 19:00
last_run_revoke_matching = models.DateTimeField(
null=True, blank=True, help_text="Last time revoke_matching_credentials was run"
)

Copy link
Collaborator

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)

Copy link
Collaborator Author

@lucianHymer lucianHymer Dec 2, 2024

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!

description = models.TextField(default="", null=True, blank=True)
csv_file = models.FileField(
max_length=1024, null=False, blank=False, upload_to="revocation_list"
)
Copy link
Collaborator

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"
)
Copy link
Collaborator

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)
Copy link
Collaborator

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

@larisa17 larisa17 merged commit 2032d17 into main Dec 3, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Revocation and Ban Lists for Sybil Detection
3 participants