chore(devex): make code more consistent #29

Closed
opened 2025-07-28 12:54:01 +00:00 by chartgerink · 3 comments
Owner

Lots of bits and bobs are inconsistent throughout the codebase. Before a stable release, it is good to make them more consistent.

  • Migrations
  • Tests --> #31
  • check where routes can be upgraded to idempotent PUT instead of POST (most often in case of updating a record)
  • ensure consistency in route setups (use web::scope icw .route)
  • separate out integration tests further for granular feedback without logging -> #48
  • check unit tests across the board -> #48
  • create consistent nesting for models, handlers, etc. now it's all over the place

Other suggestions welcome :)

Lots of bits and bobs are inconsistent throughout the codebase. Before a stable release, it is good to make them more consistent. - [x] Migrations - [x] Tests --> #31 - [x] check where routes can be upgraded to idempotent `PUT` instead of `POST` (most often in case of updating a record) - [x] ensure consistency in route setups (use `web::scope` icw `.route`) - [ ] separate out integration tests further for granular feedback without logging -> #48 - [ ] check unit tests across the board -> #48 - [ ] ~~create consistent nesting for models, handlers, etc. now it's all over the place~~ Other suggestions welcome :)
Author
Owner
  • Reduce logging noise in tests
- [x] Reduce logging noise in tests
Author
Owner
  • add integration tests for OIDC -> #47
- [ ] add integration tests for OIDC -> #47
Author
Owner
  • ensure continuous and singular imports of relevant paths (no duplicate import paths like crate::{1} and crate::{2} - this should be combined into crate::{1,2})
  • use common functions consistently in tests
- [x] ensure continuous and singular imports of relevant paths (no duplicate import paths like crate::{1} and crate::{2} - this should be combined into `crate::{1,2}`) - [x] use common functions consistently in tests
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libscie/researchequals-api#29
No description provided.