Commit graph

21 commits

Author SHA1 Message Date
Aravinth Manivannan 9e153b22ca
fix: update sqlx and fix container build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
closes: #14
2023-02-14 17:25:27 +05:30
Aravinth Manivannan 0fa21911f0
feat: submit and store benchmark type 2023-02-01 18:18:50 +05:30
Aravinth Manivannan 21ff6741a0
feat: add timestamp to benchmark submissions 2023-02-01 15:26:58 +05:30
Aravinth Manivannan c576487333
fix: store and get submission ID
DESCRIPTION
    If the same survey_user submits the survey many times, their first
    submission ID was being used to record benchmarks from their future
    submissions. Which resulted in submissions with empty benchmarks.

    This patch gets the submission ID as the record is being created and
    records benches using that. Bug fix and one less query.
2023-01-26 20:55:23 +05:30
Aravinth Manivannan aa63783794
feat: list survey responses per campaign 2023-01-26 18:25:52 +05:30
Aravinth Manivannan 73cfe1b95d
chore: lint, use actix_web_codegen_const_routes and serde all routes 2023-01-24 19:02:29 +05:30
Aravinth Manivannan 7ff66c551d
feat & chore: update actix-web and deps and use actix-auth-middleware for guarding auth routes 2022-03-26 12:45:36 +05:30
Aravinth Manivannan eccb87fd99
fetch survey config 2021-10-14 22:35:38 +05:30
Aravinth Manivannan 35937134f2
- initialize survey user
- skip survey user registration if cookie is already present
2021-10-14 20:39:39 +05:30
Aravinth Manivannan 95dba20074
handle survey sessions with actix sessions 2021-10-14 18:53:06 +05:30
Aravinth Manivannan 8c977ca0af
scope survey routes to /survey/ 2021-10-14 14:43:22 +05:30
Aravinth Manivannan a8c6912c25
implement redirect to source on admin login HTML endpoint 2021-10-13 14:28:18 +05:30
Aravinth Manivannan 4491fbb6f2
implement redirect to source on admin login endpoint 2021-10-13 14:18:13 +05:30
Aravinth Manivannan 4158147f84
authentication middleware handles redirects 2021-10-12 21:56:16 +05:30
Aravinth Manivannan 377b825fe4
campaign workflow tests 2021-10-11 19:17:28 +05:30
Aravinth Manivannan 2c4d2e5358
fetch bench configuration 2021-10-11 18:28:45 +05:30
Aravinth Manivannan f1bc63d2c1
get admin functions into admin scope 2021-10-11 13:41:53 +05:30
Aravinth Manivannan d828a4a5d9
auth middleware: redirect to specified route 2021-10-11 10:09:51 +05:30
Aravinth Manivannan d2c4e9a06b
admin authentication 2021-10-11 09:56:15 +05:30
Aravinth Manivannan 71199aa9ce
register on first visit 2021-10-11 09:30:24 +05:30
Aravinth Manivannan c3c199a7c3
add submission 2021-10-10 19:23:48 +05:30