Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
546c4fc
wip
BelSequent May 9, 2025
21b9fb2
CastVote endpoint to filter by ballot id
BelSequent May 12, 2025
f081874
Update graphql - wip
BelSequent May 12, 2025
04e0fce
Update graphql
BelSequent May 12, 2025
54087b8
graphql fixes
BelSequent May 12, 2025
33e9b7b
test
BelSequent May 12, 2025
117734f
rename actions
BelSequent May 12, 2025
19da341
wip
BelSequent May 13, 2025
3a1bc44
fix
BelSequent May 13, 2025
b3c6795
wip
BelSequent May 13, 2025
185b89c
wip
BelSequent May 13, 2025
3801f4b
fix hash comparison
BelSequent May 14, 2025
5d4f134
fix
BelSequent May 14, 2025
748e689
TABS UI - wip
BelSequent May 14, 2025
adb1825
UI - wip
BelSequent May 14, 2025
6b8c505
Add table to the UI
BelSequent May 14, 2025
6b204c9
Date format, total number, translations...
BelSequent May 14, 2025
a58b7c7
Make search more responsive
BelSequent May 14, 2025
029ff74
wip
BelSequent May 15, 2025
1e6e6bd
wip
BelSequent May 15, 2025
3cc72e9
Fix custom css component
BelSequent May 15, 2025
96b6776
Add policy -wip
BelSequent May 15, 2025
5131460
Show cast vote logs policy
BelSequent May 15, 2025
3978cc7
Disable/enable TAB by policy and format
BelSequent May 15, 2025
93fe4ac
Check policy in back-end - wip
BelSequent May 15, 2025
8f01fc6
Fix build and warnings
BelSequent May 16, 2025
e0c15a6
Merge remote-tracking branch 'origin/main' into fix/meta-6684/main
BelSequent May 16, 2025
ac24db7
Make Back button visible from both TABS
BelSequent May 16, 2025
ef355f2
wip
BelSequent May 19, 2025
b24f4ff
format
BelSequent May 19, 2025
ae8147b
Use TablePagination
BelSequent May 19, 2025
41baa54
Fix batching and filtering
BelSequent May 19, 2025
ace6a83
format
BelSequent May 19, 2025
8336500
Fix offset, use BoardClient, etc
BelSequent May 20, 2025
cf1cb74
fix
BelSequent May 20, 2025
ffa9918
Inprove quick clicking behavior
BelSequent May 20, 2025
7e5c6e7
improvements
BelSequent May 20, 2025
5a804d8
Format
BelSequent May 20, 2025
a7d6f4c
Add indexes, fix ordering
BelSequent May 21, 2025
2943fa6
wip
BelSequent May 21, 2025
cc00d68
Update Borsh to fix Deserializing errors.
BelSequent May 22, 2025
93d36ec
mask username, indexation and constraint queries
BelSequent May 22, 2025
29b1b84
clean
BelSequent May 22, 2025
f17d3e3
fix
BelSequent May 22, 2025
10e3468
Fix
BelSequent May 22, 2025
a494287
Fix
BelSequent May 22, 2025
20a768c
Fixes
BelSequent May 23, 2025
f578c29
Inprovements
BelSequent May 23, 2025
8279565
format
BelSequent May 23, 2025
ca02bf1
Merge remote-tracking branch 'origin/main' into fix/meta-6684/main
BelSequent May 23, 2025
57457b5
Fix compilation error
BelSequent May 23, 2025
18ad409
Fix compilation error
BelSequent May 23, 2025
aaa47bb
Fix compilation error
BelSequent May 23, 2025
831a619
Creating ballot_id column - wip
BelSequent May 23, 2025
b39a1a4
fix
BelSequent May 26, 2025
fb4fd73
Edit indexes
BelSequent May 26, 2025
e3b16e0
Fix
BelSequent May 26, 2025
63fee70
Fixes
BelSequent May 26, 2025
0ea3c22
Fix
BelSequent May 26, 2025
a2e6d4e
Fix
BelSequent May 26, 2025
f7d50bc
Fix
BelSequent May 26, 2025
71a6fd3
Impl ordering by every column
BelSequent May 26, 2025
10d205a
Review err
BelSequent May 26, 2025
da2682c
Review translations
BelSequent May 26, 2025
ccdf363
Impl generate_export_data to use prepare_user_data_batch
BelSequent Jun 9, 2025
7853ed4
review
BelSequent Jun 9, 2025
8f85d37
Merge remote-tracking branch 'origin/main' into fix/meta-6684/main an…
BelSequent Jun 10, 2025
97ac635
Merge remote-tracking branch 'origin/main' into feat/meta-6753/main
BelSequent Jun 10, 2025
5d28ab9
Merge branch 'fix/meta-6684/main' into feat/meta-6753/main
BelSequent Jun 10, 2025
08d7e21
Migrating to queries in board_client - wip
BelSequent Jun 11, 2025
45b8cb6
wip
BelSequent Jun 11, 2025
c796a2a
wip
BelSequent Jun 12, 2025
6271556
wip
BelSequent Jun 12, 2025
9da57dc
Fix
BelSequent Jun 12, 2025
9da9678
Fix trace
BelSequent Jun 12, 2025
c014e02
Fix filter by username in LOGS TAB
BelSequent Jun 12, 2025
944eb94
Remove deprecated code
BelSequent Jun 12, 2025
df5c6fd
Fixing filters - wip
BelSequent Jun 12, 2025
0150630
fix
BelSequent Jun 12, 2025
8a253d2
Merge remote-tracking branch 'origin/main' into feat/meta-6753/main
BelSequent Jun 12, 2025
2364474
Move and reduce code in windmill
BelSequent Jun 13, 2025
7fe11b2
Fix
BelSequent Jun 13, 2025
d3cd908
Merge remote-tracking branch 'origin/main' into feat/meta-6753/main
BelSequent Jun 13, 2025
a75b157
Fixes
BelSequent Jun 13, 2025
39a4869
Fix
BelSequent Jun 13, 2025
bccb6ba
Fix and format
BelSequent Jun 16, 2025
b8e0ae3
Merge remote-tracking branch 'origin/main' into feat/meta-6753/main
BelSequent Jun 16, 2025
e646010
Fix
BelSequent Jun 16, 2025
2b08c61
Fix
BelSequent Jun 16, 2025
4d8a8f4
Fixes
BelSequent Jun 16, 2025
421092a
Fix and inprovements
BelSequent Jun 16, 2025
89ae55a
Fix
BelSequent Jun 16, 2025
e44b34d
comment
BelSequent Jun 16, 2025
26a4bde
Fix
BelSequent Jun 16, 2025
844d269
Fix
BelSequent Jun 17, 2025
516b84d
wip
BelSequent Jun 17, 2025
83f881a
Forcing index usage and reorder multicol indexes
BelSequent Jun 18, 2025
f618511
Counting in parallel
BelSequent Jun 18, 2025
772960d
Fix
BelSequent Jun 18, 2025
4d9ee18
Run list_cast_vote_messages and count in parallel.
BelSequent Jun 18, 2025
baf0fa8
Add new column for filtering user_id
BelSequent Jun 18, 2025
7ad0434
Trick Count to avoid full scan
BelSequent Jun 18, 2025
41b286c
Fix
BelSequent Jun 18, 2025
eb9382e
Reduce indexes
BelSequent Jun 19, 2025
8e001be
Fix insertion of multiple filters for the same column name
BelSequent Jun 19, 2025
48bad30
Format
BelSequent Jun 19, 2025
dec4ee7
Make filters in Logs TAB to scale
BelSequent Jun 20, 2025
93cd994
Fix build
BelSequent Jun 20, 2025
75f2927
Merge remote-tracking branch 'origin/main' into feat/meta-6753/main
BelSequent Jul 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 247 additions & 0 deletions graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,81 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "CastVoteEntry",
"description": null,
"fields": [
{
"name": "ballot_id",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "statement_kind",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "statement_timestamp",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "username",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "CastVotesByIp",
Expand Down Expand Up @@ -2296,6 +2371,16 @@
"ofType": null
},
"defaultValue": null
},
{
"name": "username",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
}
],
"interfaces": null,
Expand All @@ -2308,6 +2393,16 @@
"description": null,
"fields": null,
"inputFields": [
{
"name": "ballot_id",
"description": null,
"type": {
"kind": "ENUM",
"name": "OrderDirection",
"ofType": null
},
"defaultValue": null
},
{
"name": "created",
"description": null,
Expand Down Expand Up @@ -2357,6 +2452,16 @@
"ofType": null
},
"defaultValue": null
},
{
"name": "username",
"description": null,
"type": {
"kind": "ENUM",
"name": "OrderDirection",
"ofType": null
},
"defaultValue": null
}
],
"interfaces": null,
Expand Down Expand Up @@ -5518,6 +5623,53 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ListCastVoteMessagesOutput",
"description": null,
"fields": [
{
"name": "list",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "CastVoteEntry",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "total",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "ListKeysCeremonyOutput",
Expand Down Expand Up @@ -26488,6 +26640,101 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "list_cast_vote_messages",
"description": "List electoral log entries of statement_kind CastVote",
"args": [
{
"name": "ballot_id",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "election_event_id",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "election_id",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "limit",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "offset",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "order_by",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "ElectoralLogOrderBy",
"ofType": null
},
"defaultValue": null
},
{
"name": "tenant_id",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ListCastVoteMessagesOutput",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "list_keys_ceremony",
"description": null,
Expand Down
27 changes: 27 additions & 0 deletions hasura/metadata/actions.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,18 @@ type Mutation {
): LimitAccessByCountriesOutput
}

type Query {
list_cast_vote_messages(
tenant_id: String!
election_event_id: String!
election_id: String
ballot_id: String!
limit: Int
offset: Int
order_by: ElectoralLogOrderBy
): ListCastVoteMessagesOutput
}

type Query {
listElectoralLog(
limit: Int
Expand Down Expand Up @@ -652,6 +664,7 @@ input PgAuditOrderBy {
input ElectoralLogFilter {
id: String
user_id: String
username: String
created: String
statement_timestamp: String
statement_kind: String
Expand All @@ -663,6 +676,8 @@ input ElectoralLogOrderBy {
statement_timestamp: OrderDirection
statement_kind: OrderDirection
user_id: OrderDirection
username: OrderDirection
ballot_id: OrderDirection
}

input SampleInput {
Expand Down Expand Up @@ -1022,6 +1037,18 @@ type ElectoralLogRow {
user_id: String!
}

type CastVoteEntry {
statement_timestamp: Int!
statement_kind: String!
ballot_id: String!
username: String!
}

type ListCastVoteMessagesOutput {
list: [CastVoteEntry]!
total: Int!
}

type DataListElectoralLog {
items: [ElectoralLogRow]!
total: TotalAggregate!
Expand Down
16 changes: 16 additions & 0 deletions hasura/metadata/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,20 @@ actions:
permissions:
- role: cloudflare-write
- role: admin-user
- name: list_cast_vote_messages
definition:
kind: synchronous
handler: http://{{HARVEST_DOMAIN}}/voting-portal/immudb/list-cast-vote-messages
forward_client_headers: true
request_transform:
body:
action: transform
template: "{{$body.input}}"
template_engine: Kriti
version: 2
permissions:
- role: user
comment: List electoral log entries of statement_kind CastVote
- name: listElectoralLog
definition:
kind: ""
Expand Down Expand Up @@ -1347,6 +1361,8 @@ custom_types:
- name: DataListPgAudit
- name: TotalAggregate
- name: ElectoralLogRow
- name: CastVoteEntry
- name: ListCastVoteMessagesOutput
- name: DataListElectoralLog
- name: ScheduledEventOutput2
- name: ScheduledEventOutput3
Expand Down
Loading
Loading