Commit Graph

177 Commits

Author SHA1 Message Date
262a70dbf3 refactor(api): rename /upload endpoint
Ensures consistency with the other dataset-based endpoints and follows the REST-API rules more cleanly.
2026-03-09 20:55:12 +00:00
ca444e9cb0 refactor: move connectors to backend dir
They will now be more used in the backend.
2026-03-09 20:53:13 +00:00
a154b25415 fix(db): missing rollback on execute_batch method
Arguably more important on a batch function to have rollback.
2026-03-05 10:09:14 +00:00
f5835b5a97 feat(frontend): add frontend option to change name 2026-03-04 22:17:31 +00:00
64e3f9eea8 feat: implement PATCH dataset route
At the moment only allows for the updating of the name. Which seems to be the only editable part of dataset metadata.
2026-03-04 21:38:06 +00:00
4f01bf0419 fix(db): incorrect SQL condition when deleting dataset content 2026-03-04 21:35:10 +00:00
6948891677 Merge remote-tracking branch 'origin/main' into feat/editable-datasets 2026-03-04 21:30:13 +00:00
f1f33e2fe4 feat: implement delete dataset route 2026-03-04 21:29:01 +00:00
e20d0689e8 fix(celery): adjust try-catch logic to improve error handling
Capturing the instantiation of the database and dataset manager objects inside the try-catch will cause errors if something else fails.

If an exception occurs and the dataset_manager is not initialised, the code inside the catch block will fail.
2026-03-04 21:18:59 +00:00
4e99b77492 fix(db): missing post ID in db schema
Caused surprisingly little errors. It only broke the interaction graph.
2026-03-04 20:05:20 +00:00
3fe08b9c67 fix(backend): buggy reply_time_by_emotion metric
This metric was never stastically significant and held no real value. It also so happened to hold accidental NaN values in the dataframe which broke the frontend.

Happy to remove.
2026-03-04 18:37:11 +00:00
e2ac4495fd chore(frontend): add extra types to frontend 2026-03-03 20:13:13 +00:00
207c4b67da feat(frontend): add dataset name requirements to the upload page 2026-03-03 17:28:46 +00:00
772205d3df feat(api): add ability to fetch all datasets by a user 2026-03-03 17:25:00 +00:00
5310568631 feat: add React layout and a topbar allowing for easy logins 2026-03-03 17:17:57 +00:00
9d1e8960fc perf: update cultural analysis to use regex instead of Counter 2026-03-03 14:25:25 +00:00
eb4187c559 feat(api): add status returns for NLP processing 2026-03-03 13:46:37 +00:00
63cd465189 feat(db): add status and constraints to the schema 2026-03-03 13:46:06 +00:00
f93e45b827 fix(dataset): silent erros if dataset did not exist 2026-03-03 13:13:40 +00:00
075e1fba85 fix: typo in exception naming 2026-03-03 13:12:28 +00:00
a4c527ce5b fix(db): execute not committing if fetch flag was set 2026-03-03 13:10:50 +00:00
3772f83d11 fix: add title column to db
This was accidentally removed in a previous merge
2026-03-03 12:41:02 +00:00
3a58705635 feat: add celery & redis for background data processing 2026-03-03 12:27:14 +00:00
6248b32ce2 refactor: move app.py into main server dir 2026-03-03 11:14:51 +00:00
87bdc0245a refactor: move core files into separate dirs 2026-03-03 11:13:33 +00:00
8b8462fd58 chore: add non-existent database error check 2026-03-03 11:11:10 +00:00
36bede42d9 style: clean up imports 2026-03-03 11:08:56 +00:00
4bec0dd32c refactor: extract dataset functionality out of db class 2026-03-02 19:18:05 +00:00
4961ddc349 refactor: move db dir into server 2026-03-02 19:05:56 +00:00
c9151da643 feat: add custom error for non-existent dataset 2026-03-02 18:59:31 +00:00
18c8539646 fix: server error when attmepting to access non-existant dataset 2026-03-02 18:55:27 +00:00
6d8f2fa4e0 feat: add custom exceptions file 2026-03-02 18:54:11 +00:00
5ea71023b5 refactor: move query parameter extraction function out of flask app 2026-03-02 18:29:09 +00:00
37cb2c9ff4 feat(querying): make filters stateless
Stateless filters are required as the server cannot store them in the StatGen object
2026-03-02 16:18:02 +00:00
82a98f84bd refactor: combine query results into one endpoint 2026-03-01 19:06:49 +00:00
8b4adf4a63 refactor: update filtering method names 2026-03-01 18:44:46 +00:00
a6adea5a7d fix: broken stat_gen filter methods 2026-03-01 18:28:08 +00:00
7ddd625bf8 fix: database schema missing type column 2026-03-01 16:40:00 +00:00
07ab7529a9 refactor: update analysis classes to accept DataFrame as parameter instead of instance variable 2026-03-01 16:25:39 +00:00
d20790ed4b fix: incorrect dataset authorisation check 2026-03-01 16:10:42 +00:00
d3c4d883be Merge branch 'auth-test' of gitea:dylan/crosspost into auth-test 2026-03-01 16:01:48 +00:00
5fb7710dc2 feat: dataset now persists to database 2026-03-01 16:01:15 +00:00
0be9ff4896 feat: add dataset processor class 2026-03-01 15:01:34 +00:00
d73f4f1c45 Merge branch 'main' into auth-test 2026-02-25 08:59:32 +00:00
fb99d4ae15 feat(api): add average emotion per user into per user analysis 2026-02-24 18:57:00 +00:00
6695d3d272 refactor: improve API wording & cleanup code 2026-02-24 15:55:56 +00:00
ce0aa6bc43 feat(nlp): remove surprise & neutral emotions from NLP processing
These emotions often dominate due to the writing style of online users and don't provide an accurate picture of the sentiment.
2026-02-24 15:28:30 +00:00
e82ac8d73b feat(api): add stance markers & avg emotion per entity 2026-02-24 15:12:17 +00:00
ccba6a5262 feat(api): add cultural analysis endpoint with identity markers 2026-02-24 14:25:53 +00:00
be6ab1f929 feat: add profile endpoint to view user details 2026-02-23 22:43:55 +00:00