-
-
Notifications
You must be signed in to change notification settings - Fork 661
Board Candidate Transparency Improvements #5384
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
Open
rudransh-shrivastava
wants to merge
20
commits into
OWASP:feature/bod-candidate-transparency
Choose a base branch
from
rudransh-shrivastava:feature/bod-candidate-transparency-improvements-all
base: feature/bod-candidate-transparency
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
04bfb79
do not scale/zoom card on hover
rudransh-shrivastava c378e38
introduce fat methods approving claims
rudransh-shrivastava 82e6975
simplify code by making BoardcandidateClaim.board a mandatory field
rudransh-shrivastava 05463a5
rename BoardOfDirectors.reviewers to claim_reviewers
rudransh-shrivastava dc12dde
update bod.dump
rudransh-shrivastava 8ff5fc8
address exif metadata stripping related review comments
rudransh-shrivastava be4f8c6
do not shink candidate card on click
rudransh-shrivastava f7c7208
add pydantic input validation for graphql mutations
rudransh-shrivastava 65f409a
Merge branch 'feature/bod-candidate-transparency' into feature/bod-ca…
rudransh-shrivastava 01b8d21
generate graphql types post merge
rudransh-shrivastava cefd1e6
fix source_url bug
rudransh-shrivastava c658f48
address bot comments
rudransh-shrivastava 099fae5
run prettier
rudransh-shrivastava 5bfb5be
fix frontend tests
rudransh-shrivastava 189c0c1
add s3 bucket for django media storage for production and staging
rudransh-shrivastava 9f54b73
set custom_domain in storage options
rudransh-shrivastava d3c1385
apply bot comments
rudransh-shrivastava e99b6bf
update code
rudransh-shrivastava fcc41cd
publicly show Submitted claims
rudransh-shrivastava c36300c
update code
rudransh-shrivastava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
backend/src/apps/owasp/migrations/0081_alter_boardcandidateclaim_board_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # Generated by Django 6.0.6 on 2026-08-08 15:32 | ||
|
|
||
| import django.core.validators | ||
| import django.db.models.deletion | ||
| from django.db import migrations, models | ||
|
|
||
| import apps.owasp.models.board_candidate_claim_evidence | ||
| import apps.owasp.validators | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("owasp", "0080_boardcandidateclaimreview_boardofdirectors_reviewers_and_more"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="boardcandidateclaim", | ||
|
rudransh-shrivastava marked this conversation as resolved.
|
||
| name="board", | ||
| field=models.ForeignKey( | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| related_name="claims", | ||
| to="owasp.boardofdirectors", | ||
| ), | ||
| ), | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| migrations.AlterField( | ||
| model_name="boardcandidateclaimevidence", | ||
| name="file", | ||
| field=models.FileField( | ||
| blank=True, | ||
| null=True, | ||
| upload_to=apps.owasp.models.board_candidate_claim_evidence.uuid_upload_to, | ||
| validators=[ | ||
| django.core.validators.FileExtensionValidator( | ||
| allowed_extensions=["jpeg", "jpg", "pdf", "png", "webp"] | ||
| ), | ||
| apps.owasp.validators.validate_evidence_file_size, | ||
| ], | ||
| verbose_name="File", | ||
| ), | ||
| ), | ||
| ] | ||
29 changes: 29 additions & 0 deletions
29
backend/src/apps/owasp/migrations/0082_remove_boardofdirectors_reviewers_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Generated by Django 6.0.6 on 2026-08-08 15:51 | ||
|
|
||
| from django.conf import settings | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
| dependencies = [ | ||
| ("owasp", "0081_alter_boardcandidateclaim_board_and_more"), | ||
| migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.RemoveField( | ||
| model_name="boardofdirectors", | ||
| name="reviewers", | ||
| ), | ||
| migrations.AddField( | ||
| model_name="boardofdirectors", | ||
| name="claim_reviewers", | ||
| field=models.ManyToManyField( | ||
| blank=True, | ||
| help_text="Reviewers for this year's board election claims.", | ||
| related_name="+", | ||
| to=settings.AUTH_USER_MODEL, | ||
| verbose_name="Claim reviewers", | ||
| ), | ||
| ), | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.