-
-
Notifications
You must be signed in to change notification settings - Fork 648
Add Candidate Claim Management Dashboard #5006
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
base: feature/bod-candidate-transparency
Are you sure you want to change the base?
Changes from 36 commits
b4f565b
731811c
1af6996
bd4a54a
e80f85e
a15bf82
ab08b9c
3d5f326
625db7b
867c94f
974318e
3d65c52
88af465
b5e6c6d
497af6c
00ae269
79d1a7c
bb605c7
93a7d07
6370b08
4157b4e
f0112e9
d68477c
7b56553
6fe2194
c6ea05b
fd34abb
6fbd993
8f4fe72
640208f
55466a9
b502f9b
ee4005b
bcc61fa
2a42bce
13cd0f5
fa24121
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,13 @@ def created_at(self, root: BoardCandidateClaim) -> datetime: | |
| """Resolve claim creation date.""" | ||
| return root.nest_created_at | ||
|
|
||
| @strawberry_django.field | ||
| def has_evidence(self, root: BoardCandidateClaim) -> bool: | ||
| """Resolve whether the claim has any evidence.""" | ||
| if hasattr(root, "evidence_exists"): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a case for
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I only set it in
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated both queries to annotate. |
||
| return root.evidence_exists | ||
| return root.evidences.filter(is_removed=False).exists() | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| @strawberry_django.field | ||
| def status(self, root: BoardCandidateClaim) -> ClaimStatusEnum: | ||
| """Resolve claim status as GraphQL enum.""" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| export const authCookies = [ | ||
| { | ||
| name: 'csrftoken', | ||
| value: 'abc123', | ||
| domain: 'localhost', | ||
| path: '/', | ||
| }, | ||
| { | ||
| name: 'nest.session-id', | ||
| value: 'test-session-id', | ||
| domain: 'localhost', | ||
| path: '/', | ||
| }, | ||
| { | ||
| name: 'next-auth.csrf-token', | ||
| value: 'test-csrf-token', | ||
| domain: 'localhost', | ||
| path: '/', | ||
| }, | ||
| { | ||
| name: 'next-auth.callback-url', | ||
| value: '/', | ||
| domain: 'localhost', | ||
| path: '/', | ||
| }, | ||
| { | ||
| name: 'next-auth.session-token', | ||
| value: 'test-session-token', | ||
| domain: 'localhost', | ||
| path: '/', | ||
| }, | ||
| ] |
Uh oh!
There was an error while loading. Please reload this page.