Codebase Refactors #230

Open
opened 2026-05-04 21:30:03 +00:00 by ryansquared · 0 comments
ryansquared commented 2026-05-04 21:30:03 +00:00 (Migrated from codeberg.org)

The codebase is very spaghetti and needs to be less spaghetti. Things to apply to every function:

  • sqlx needs to be moved into a db interactions only crate, and make use of transactions better
  • Procfile parsing needs to be moved into its own crate
    • create a migration pattern for HCL
  • Error types need to be added
  • Large format strings need to be moved into their own files and include_str'd
  • Types making use of serde_json::Value should make use of newtypes instead
The codebase is very spaghetti and needs to be less spaghetti. Things to apply to every function: - [ ] `sqlx` needs to be moved into a db interactions only crate, and make use of transactions better - [ ] `Procfile` parsing needs to be moved into its own crate - [x] create a migration pattern for HCL - [ ] Error types need to be added - [ ] Large format strings need to be moved into their own files and include_str'd - [ ] Types making use of serde_json::Value should make use of newtypes instead
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
public/platform#230
No description provided.