Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting ready for v0.1.0 #73

Merged
merged 76 commits into from
Aug 29, 2024
Merged

Getting ready for v0.1.0 #73

merged 76 commits into from
Aug 29, 2024

Conversation

ohuu
Copy link
Collaborator

@ohuu ohuu commented Aug 29, 2024

This is a big refactor of the project after @seal integrated Cardamon with the frontend. The refactor includes:

  • Replacing sqlx with sea_orm
  • Support for mysql & postgres
  • Removal of all Remote and Local DOA, replaced with a single DAO
  • Control database access and logging level through env vars
  • Release workflow (builds to linux, mac and windows and publishes to crates.io)
  • Merges the cardamon server with the cardamon binary so we have a single binary to release

seal and others added 30 commits July 2, 2024 11:49
- Added "run" table
- Added foreign key for "run_id" to cpu_metrics and scenario_iterations
  tables
- Added dao for run table
- Cleaned up some stuff
- Renamed scenario_iteration to just iteration
- Renamed cpu_metrics to just metrics
- Removed run from the database so there are only 2 tables in the database
- Added DatasetBuilder objects for building a dataset
- Started on creating routes
- Did state management for routes
Need to add ability to return count for pages.
 - Commands to dataset for
    - Fetching unique run id's
    - Fetching by scenario name *and run id*
    - Total unique scenarios ( unique by name, not run_id)
    - Paginated unique scenarios
 - Pagination for both endpoints
    - On all scenarios endpoint by *name*
    - On specific scenario by *run_id*
- Changed all times to UTC - ui's job
- Added run insertion to DB to remove foreign key failures
- Altereted unqiue scenarios to be div by 0 safe
- Made all scenario ep give last 5 average
- Made avg_cpu calculate properly
and local DB
Change migrations timestamps so run is first ( Postgres integration
won't allow for table to be created with run being made first )
Remove dependancies
@ohuu
Copy link
Collaborator Author

ohuu commented Aug 29, 2024

closes #67, #68

@ohuu ohuu merged commit 1419a80 into main Aug 29, 2024
3 of 4 checks passed
@ohuu ohuu deleted the release/0.1.0 branch August 29, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants