Commit Graph
214 Commits
Author SHA1 Message Date
fa6dc11fee Update backend services, user right tests and user right documentation (#1217)
* update some backend tests slightly, and update user right docs

* improve locality updating tests

* refactor species merge tests, and add more user rights tests to merging

* fix locality user right issue with users being able to bypass project membership requirements by adding new projects when updating a project, and add tests

* fix small, copilot suggested issues

* change bigint value back to number, and fix hanging test

* add error content checks and  get request test for regions

* add error content checks and reorder tests in time bound/time unit

* add person get tests, update delete tests, and update user right docs

* update museum tests

* update testing docs

* add tests for all user groups in project delete tests

* add more user right tests to project/ and projects/

* Fix pid test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Rename project get test describe block

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-20 15:01:14 +03:00
karilint 0c023331f2 Add entity documentation for people and museums 2026-05-21 11:34:42 +03:00
karilint 57b77ee2ed Add full Darwin Core export progress 2026-05-18 15:55:00 +03:00
karilint 4b99fe6c6b Add DwC-DP event occurrence export 2026-05-13 11:54:16 +03:00
karilint 51fca00a5e Add DwC occurrence export 2026-04-28 17:56:47 +03:00
karilint ec4edd4699 Adjust locality DwC export fields 2026-04-28 13:42:35 +03:00
karilint 101fac67b7 DwC-A localities: export climate/ecometrics/archaeology facts 2026-04-27 17:37:17 +03:00
Kari Lintulaakso 9459dc8058 DwC-A localities: only concat requested fields 2026-04-27 15:41:24 +03:00
karilint 75579122a6 DwC-A localities: expand MeasurementOrFact + parents 2026-04-27 15:26:50 +03:00
karilint 0df9384714 DwC-A localities: add continent/higherGeography/elevation 2026-04-27 14:30:42 +03:00
karilint 41ce6e7b07 Add admin-only DwC-A locality export 2026-04-27 13:57:18 +03:00
karilint 464a4d1a2f DwC-A: parentMeasurementID + crown type rows 2026-04-24 14:15:37 +03:00
karilint 41240747f5 Prefix taxonID and refine taxonRank heuristics 2026-04-24 13:22:56 +03:00
karilint 2632ff0dda Adjust DwC scientificName and drop taxonConceptID 2026-04-23 17:53:03 +03:00
karilint 6e8ebc940f Expand measurement export and drop remarks 2026-04-23 16:10:02 +03:00
karilint 00277b3bee Update DwC taxon mapping 2026-04-23 15:49:01 +03:00
karilint 8f83461518 Add verbatimMeasurementType and methods 2026-04-23 14:53:07 +03:00
karilint 00a28a26d7 Admin-only DwC-A export for species 2026-04-23 12:42:52 +03:00
karilint 7dd0bfcd79 feat: optional GA4 page view tracking 2026-04-23 10:45:20 +03:00
karilint ffc6b5da1e Make documentation index entries clickable 2026-04-22 15:09:04 +03:00
karilint 1a5974c166 Restructure documentation and add index 2026-04-22 13:39:42 +03:00
karilint 75104f0976 Docs: add Project/Region/Occurrence entity docs 2026-04-21 11:38:54 +03:00
karilint 30e8ead988 Docs: table column visibility 2026-04-16 11:53:57 +03:00
karilint 77b6784e24 Document in-app changelog 2026-04-15 17:39:26 +03:00
karilint 08cfb1bd7b Improve species merge UX and docs 2026-04-14 15:11:05 +03:00
karilint e57d9ea39b Clarify EditUnrestricted wording 2026-04-09 11:40:50 +03:00
karilint 53370ac973 Clarify project selection for EditRestricted 2026-04-09 11:37:20 +03:00
karilint 1251e8bb16 Allow EditRestricted writes for museum/reference 2026-04-08 18:28:17 +03:00
karilint 26b01e624a Update Codex prompt docs 2026-04-01 16:07:56 +03:00
karilint 604efab655 Optimize Cypress E2E test performance
Major performance improvements to reduce test execution time:

Database Reset Optimizations:
- Remove redundant cy.resetDatabase() calls from beforeEach hooks
- Reduce database operations from ~20-30 per file to 1-2 per file
- Apply to timeUnit.cy.js, locality.cy.js, and other large test files

Login Session Caching:
- Implement cy.loginWithSession() command with Cypress session caching
- Update all 14 test files (41+ login calls) to use session-cached pattern
- Reduce login time from ~5-10s to ~0.5s after first login per spec

Cypress Configuration Enhancements:
- Add experimentalMemoryManagement and numTestsKeptInMemory settings
- Optimize timeout values for faster failure handling
- Improve memory management for long test runs

Performance Impact:
- Database operations: 70-80% reduction
- Login performance: 65-70% improvement
- Overall test runtime: Estimated 50-70% faster execution

Files updated: 17 test files + cypress.config.js + support/commands.js
Documentation: Added cypress-performance-optimization.md guide
2026-03-31 13:26:24 +03:00
karilint ce05873119 Jest fixes 58 2026-03-20 13:57:09 +02:00
karilint c6cd6df23d Jest fixes 46 2026-03-19 15:19:34 +02:00
karilint b871845079 Jest fixes 26 2026-03-18 16:40:25 +02:00
karilint 51b02b15cf Jest fixes 24 2026-03-18 15:53:18 +02:00
Kari Lintulaakso f266609809 docs: define time-unit invalid bound error contract 2026-03-17 13:57:07 +02:00
Kari Lintulaakso cbb23ebc33 docs: add implementation plan for invalid time bound handling 2026-03-12 15:29:00 +02:00
Kari Lintulaakso 42723e8056 Document Locality Species row-action fix and regression test 2026-03-12 14:58:33 +02:00
Kari Lintulaakso 10b38321fd Add estimate_temp range validation and docs note 2026-03-11 10:49:04 +02:00
Kari Lintulaakso 7d23834a0c Document occurrence terminology rollout and validation notes 2026-02-19 15:12:50 +02:00
Kari Lintulaakso f3a2dc7c66 docs: add tab-table rollout checklist and read-only regression test 2026-02-17 16:39:55 +02:00
Kari Lintulaakso da61ce10cc docs: audit detail tab table implementations 2026-02-17 13:48:22 +02:00
Kari Lintulaakso e00ec08255 docs(release): note locality age method draft persistence 2026-02-16 17:41:31 +02:00
Kari Lintulaakso 0ac4ce2d8b Document MW score list-display behavior in changelog 2026-02-10 17:58:12 +02:00
Kari Lintulaakso 962df268ba Clarify frontend page vs component structure in docs 2025-12-17 16:39:08 +02:00
Kari Lintulaakso bc11fc4ae1 Clarify reference validation label mapping 2025-12-15 17:57:59 +02:00
Kari Lintulaakso 039dbe43a4 Add notes on reference validation message sources 2025-12-15 16:46:18 +02:00
Kari LintulaaksoandGitHub 2460e9b591 Add goal section for feature planning
Added a new goal section to outline the task expectations.
2025-12-09 14:34:35 +02:00
Kari Lintulaakso df90c03650 Document species synonym creation flow 2025-12-03 12:03:44 +02:00
Kari Lintulaakso 311a490391 Document write guard environment variables 2025-12-01 15:02:31 +02:00
Kari Lintulaakso 6f12e49266 Document project deletion write guard 2025-12-01 15:02:24 +02:00