Commit Graph
100 Commits
Author SHA1 Message Date
arttu 536907dd2a divide types into different directories 2024-12-08 15:36:13 +02:00
arttu cb6455e1e1 delete shared folder from root 2024-12-08 15:16:05 +02:00
arttu 9a2543bec6 move validators to shared 2024-12-08 15:10:56 +02:00
arttu a56703ce43 move backendTypes.ts to src/shared/types 2024-12-08 14:58:17 +02:00
arttuandAaro Koivukangas 7624df40cc Fix bigint issue in DatabaseHandler: select returned bigint which caused issue on debug log of oldValue, and could possibly cause issues in future.
Not 100% sure of how good the solution is, so keep an eye on it.
2024-09-11 14:48:45 +03:00
arttu e3716b2b90 Handle allowedColumns in DatabaseHandler instead and in every necessary part 2024-09-04 00:12:59 +03:00
arttu f44c5a7bdd Add time bound creation test, fix some types & other tests 2024-09-03 23:48:41 +03:00
arttu c69fa525aa Fix anon reset script 2024-09-03 23:27:04 +03:00
arttu 7cc6faa085 Re-add column title row to combined export 2024-09-03 22:59:47 +03:00
arttu 34e6d69643 Add span around button to get rid of error when button gets disabled 2024-09-03 18:11:13 +03:00
arttu 6f91227a2c Remove deprecated export columns file 2024-09-03 18:10:40 +03:00
arttu 6763d22485 Move writeOperations directory under write 2024-09-03 18:09:13 +03:00
arttu f6bc383838 Remove unnecessary argument 2024-09-03 18:03:12 +03:00
arttu d2ff3888a2 Merge branch 'stream-export' 2024-09-03 18:02:25 +03:00
arttu cf564dbd10 Stream the export from db to backend 2024-09-03 18:02:10 +03:00
ShootingStar91 93060b5f72 Fix anon-db restore script 2024-09-03 12:41:15 +03:00
ShootingStar91 f33456a89c Update anon-dump to include test users & draft localities without having to add them in code. 2024-09-02 22:09:01 +03:00
ShootingStar91 eb6f043ccf Add instructions to make a db-dump 2024-09-02 21:58:43 +03:00
ShootingStar91 086ff2ee36 Update documentation: large contributing.md & small frontend.md fix 2024-09-02 14:43:23 +03:00
ShootingStar91 43d14fb77e Add initial time unit api-test things 2024-09-02 14:05:44 +03:00
ShootingStar91 0ae083ac3a Add time unit create test & fix some types 2024-09-01 17:58:11 +03:00
ShootingStar91 58a9d2ce07 Add species update tests, fix some types 2024-09-01 17:13:36 +03:00
ShootingStar91 d536d4bb41 Make expected log rows have string values instead of numbers 2024-09-01 15:54:09 +03:00
ShootingStar91 1a3dd84e02 Add delete routes & services for rest of data types. 2024-09-01 15:25:39 +03:00
ShootingStar91 cf59d7cd4c Refactor tests & add create & delete tests for species 2024-09-01 11:56:32 +03:00
ShootingStar91 a05bf58260 Add species delete route & service 2024-09-01 11:55:52 +03:00
ShootingStar91 2553893740 Fix species route to work with comment & references 2024-09-01 10:55:35 +03:00
ShootingStar91 8b3c9b7d3c Don't log empty values on add operations 2024-09-01 00:06:45 +03:00
ShootingStar91 d7bec6dc67 Fix e2e workflow 2024-08-31 23:09:54 +03:00
ShootingStar91 75b900456e Add locality delete test 2024-08-31 23:01:18 +03:00
ShootingStar91 aff94ae7ac Try to fix lint workflow 2024-08-31 18:15:42 +03:00
ShootingStar91 95859c24f7 Fix tests 2024-08-31 18:13:45 +03:00
ShootingStar91 8d05a6c38d Don't log deletion of rows that did not have any value at time of deletion 2024-08-31 18:13:39 +03:00
ShootingStar91 930d5e1526 Add api test workflow 2024-08-31 13:59:50 +03:00
ShootingStar91 3a46f14f52 Fix species write route 2024-08-31 13:09:11 +03:00
ShootingStar91 29484a85ed Add delete route & fix update logging so that root update entry is not created on delete 2024-08-31 12:25:33 +03:00
ShootingStar91 40ef04bb53 Generate time unit id from display name if creating new 2024-08-30 14:49:02 +03:00
ShootingStar91 8a9c3e8fcf Fix time bound id adding in write 2024-08-30 14:48:46 +03:00
ShootingStar91 b6adaa576a Fix time bound new mode crashing due to lack of bounds 2024-08-30 14:48:06 +03:00
ShootingStar91 00bf1e4183 Locality: Get hominin skeletal remains value via function on write, refactor it in frontend 2024-08-30 14:47:28 +03:00
ShootingStar91 957d5d6a76 Refactor tests to separate files & make log row checking reusable 2024-08-29 22:42:15 +03:00
ShootingStar91 7df77af86f Fix com_species changes shown in now_loc update 2024-08-29 22:41:46 +03:00
ShootingStar91 5e0f54a0da Remove console.log from send 2024-08-29 20:43:51 +03:00
ShootingStar91 cd97d2256b Refactor test utils to their own file 2024-08-29 01:09:55 +03:00
ShootingStar91 958a9d62c8 Locality write: Fix adding completely new species in locality-species 2024-08-28 23:57:35 +03:00
ShootingStar91 3a0fdba063 Add initial test for creating a new locality 2024-08-28 23:00:58 +03:00
ShootingStar91 e0ac9e8c7d Finish tests for locality write logs 2024-08-28 22:29:03 +03:00
ShootingStar91 6a8c176c39 Add script for resetting both anon dbs 2024-08-28 22:28:52 +03:00
ShootingStar91 f82dae5318 Rename test file; add more test about update and logs 2024-08-28 21:42:19 +03:00
ShootingStar91 66f39ab322 Refactor app/index separately, tune response handling in tests, add trigger route for creating test users 2024-08-28 17:11:16 +03:00
ShootingStar91 10eec97616 Initial api tests 2024-08-28 13:46:51 +03:00
ShootingStar91 27d76efd45 Fix no-changes being incorrectly checked 2024-08-28 13:46:35 +03:00
ShootingStar91 790d0d6a9f Add try-catch to write services to rollback and end on fail 2024-08-28 12:54:34 +03:00
ShootingStar91 499a26bae8 Change coordinator in anon env to test initials 2024-08-28 12:49:35 +03:00
ShootingStar91 5be3b299e1 Fix frontend vite not exposing port after dev script change 2024-08-28 10:33:18 +03:00
ShootingStar91 d78181cce3 Add role requirements to new write routes 2024-08-26 23:05:05 +03:00
ShootingStar91 3d5e48c2f7 Fix type errors and issues with merge 2024-08-26 22:47:18 +03:00
ShootingStar91 d1ab72f5c4 Fix merge stuff and improve write routes 2024-08-26 22:11:32 +03:00
ShootingStar91 957673ddb6 Merge rewrite of write operations 2024-08-26 18:32:03 +03:00
ShootingStar91 7e2df148af Refactor update & log writes to separate files 2024-08-26 18:19:36 +03:00
ShootingStar91 1aa761224f Remove debug logs 2024-08-26 17:40:16 +03:00
ShootingStar91 7d871e3c45 Add time unit and bound writes; fix date, improve other things 2024-08-26 01:04:35 +03:00
ShootingStar91 8c797ad7c1 Fix date in log and update entries 2024-08-25 22:47:05 +03:00
ShootingStar91 a59d619f6e Refactor, delete old unused write code 2024-08-25 22:37:00 +03:00
ShootingStar91 26a1c40d3e Refactor updatelogger; fix list item deletion 2024-08-25 22:32:13 +03:00
ShootingStar91 fd7a53c0aa Fix com_taxa_synonym: when id's were created for a relation table, they were not added to writeList 2024-08-25 19:14:18 +03:00
ShootingStar91 418e0a3256 write WIP of logging: works using the old logging logic 2024-08-25 18:50:33 +03:00
ShootingStar91 d58512e540 Fix booleans and other loc relation writes, except project for now 2024-08-25 18:13:23 +03:00
ShootingStar91 35f12d3082 Add verifying columns are allowed in order to prevent SQL injection 2024-08-25 16:54:21 +03:00
ShootingStar91 f32d78071c Add new methods to writeHandler, modify dbHandler, locality write works, now_ls works 2024-08-25 15:50:53 +03:00
ShootingStar91 1c70a3df65 WIP, edit writeHandler and write locality species stuff 2024-08-24 17:56:22 +03:00
ShootingStar91 061971aea4 Make references filter work better 2024-08-24 15:54:29 +03:00
ShootingStar91 5a3421c103 Fix formatting 2024-08-24 15:54:29 +03:00
ShootingStar91 7de6d7b287 Make export tooltip font larger 2024-08-24 15:54:29 +03:00
ShootingStar91 d1a92c97ee Locality > Taphonomy: Make adding collection method work 2024-08-24 15:54:29 +03:00
ShootingStar91 4a995c9bbd Fix time bound write route 2024-08-24 15:54:29 +03:00
ShootingStar91 3d672da172 Adjust update tab detail styles 2024-08-24 15:54:29 +03:00
ShootingStar91 3d0ba476a5 Add creating synonym to species 2024-08-24 15:54:29 +03:00
ShootingStar91 3e26a92d62 Write: Log also newly created id's 2024-08-24 15:54:29 +03:00
ShootingStar91 ec1e3fdf41 Write: Skip logging if nothing was written 2024-08-24 15:54:29 +03:00
ShootingStar91 8e93960801 Write: Add id column for sed_struct 2024-08-24 15:54:29 +03:00
ShootingStar91 994ad6755f Remove possibility to add new museum while editing locality 2024-08-24 15:54:29 +03:00
ShootingStar91 a313fc6248 Add WIP delete route & service for locality 2024-08-24 15:54:29 +03:00
ShootingStar91 bb08fc8905 Time bound > Time unit tab: Fix lower/upper bound column and make table SimpleTable 2024-08-24 15:54:29 +03:00
ShootingStar91 b82d8f81ec Added frontend delete button and api call 2024-08-24 15:54:29 +03:00
ShootingStar91 0f9ca24673 Frontend dev dockerfile: Check if node_modules exist and install if not on startup 2024-08-24 15:54:04 +03:00
ShootingStar91 ca7f16a619 Add write handler and some locality writing 2024-08-24 00:07:04 +03:00
ShootingStar91 c925c6fbcc db handler wip 2024-08-23 18:52:59 +03:00
ShootingStar91 5498fbce61 Change some type names 2024-08-23 15:38:08 +03:00
ShootingStar91 2c08ad5322 Make references filter work better 2024-08-23 11:42:54 +03:00
ShootingStar91 d1a8384546 Fix formatting 2024-08-23 11:09:14 +03:00
ShootingStar91 b51faa93b6 Make export tooltip font larger 2024-08-23 10:52:21 +03:00
ShootingStar91 bd9da2caba Locality > Taphonomy: Make adding collection method work 2024-08-23 10:34:50 +03:00
ShootingStar91 7a80632ae0 Fix time bound write route 2024-08-23 10:34:19 +03:00
ShootingStar91 64479469f2 Adjust update tab detail styles 2024-08-23 10:07:52 +03:00
ShootingStar91 2001131358 Add creating synonym to species 2024-08-23 09:56:23 +03:00
ShootingStar91 cad7701bff Write: Log also newly created id's 2024-08-23 09:55:50 +03:00
ShootingStar91 d73fc8a048 Write: Skip logging if nothing was written 2024-08-22 22:00:38 +03:00
ShootingStar91 30e8e0cbd2 Write: Add id column for sed_struct 2024-08-22 21:43:05 +03:00
ShootingStar91 24ce54001b Remove possibility to add new museum while editing locality 2024-08-22 21:40:30 +03:00