-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Update and Delete Ingestion Command Handlers
Introduced two new command handlers for updating and deleting ingestion processes. These handlers are defined but not yet implemented. Additionally, a print statement was added to log ingestion confirmation in the log_ingestion module.
- Loading branch information
Showing
8 changed files
with
121 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::CommandHandler; | ||
use clap::Parser; | ||
use sea_orm::DatabaseConnection; | ||
|
||
#[derive(Parser, Debug)] | ||
#[command(version, about = "Update ingestion", long_about)] | ||
pub struct DeleteIngestion {} | ||
|
||
impl CommandHandler for DeleteIngestion | ||
{ | ||
fn handle(&self, database_connection: &DatabaseConnection) -> Result<(), String> { todo!() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::CommandHandler; | ||
use clap::Parser; | ||
use sea_orm::DatabaseConnection; | ||
|
||
#[derive(Parser, Debug)] | ||
#[command(version, about = "Update ingestion", long_about)] | ||
pub struct UpdateIngestion {} | ||
|
||
impl CommandHandler for UpdateIngestion | ||
{ | ||
fn handle(&self, database_connection: &DatabaseConnection) -> Result<(), String> { todo!() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,20 @@ | ||
There is a lot to be contained in documentation but I think application should be developed from it's own core which is storing user's ingestion - so let's start from this purpose. | ||
<h1 align="center">🧬</h1> | ||
<h2 align="center">Neuronek</h2> | ||
|
||
``` | ||
. | ||
|-- README.md | ||
|-- architecture | ||
| |-- containers | ||
| | |-- API\ Gateway.md | ||
| | |-- Database.md | ||
| | `-- Web\ Application.md | ||
| |-- context-diagram.d2 | ||
| |-- decisions | ||
| | |-- 01-Technology-Stack.md | ||
| | |-- 02-API-Framework.md | ||
| | |-- 03-API-Deployment.md | ||
| | `-- 04-Unit-Testing.md | ||
| |-- package-architecture.d2 | ||
| `-- system-design.d2 | ||
|-- domain | ||
| |-- aggregates | ||
| | |-- <aggregate_name> | ||
| | | |-- <entity_name>.md | ||
| | | |-- <aggregate_name>.md | ||
| |-- personas | ||
| | |-- 10-john.md | ||
| | |-- 20-sarah.md | ||
| | |-- 30-lisa.md | ||
| | |-- 40-mark.md | ||
| | |-- 50-emily.md | ||
| | `-- 60-max.md | ||
| `-- stories | ||
| |-- 1-dosage-tracking.md | ||
| |-- 2-dosage-reminders.md | ||
| |-- 3-stack-planning.md | ||
| |-- 4-possesion-tracking.md | ||
| |-- 5-mood-tracking.md | ||
| `-- 6-substance-information.md | ||
`-- reference | ||
``` | ||
<p align="center"> | ||
<b>Build journal of your neurochemisty</b> | ||
<br><br> | ||
<a href="https://codecov.io/gh/keinsell/neuronek" > | ||
<img src="https://codecov.io/gh/keinsell/neuronek/branch/main/graph/badge.svg?token=RCgwN04Ije"/> | ||
</a> | ||
<a href="https://wakatime.com/badge/user/13a02f4d-34c9-45f7-95ee-bf9d66b139fb/project/69d00351-b8a4-4431-a21e-798846120e57"><img src="https://wakatime.com/badge/user/13a02f4d-34c9-45f7-95ee-bf9d66b139fb/project/69d00351-b8a4-4431-a21e-798846120e57.svg" alt="wakatime"></a> | ||
</p> | ||
|
||
``` | ||
my-monorepo/ (System Context) | ||
├── README.md (System description) | ||
├── web-app/ (Container) | ||
│ ├── README.md (Container description) | ||
│ ├── authentication/ (Component) | ||
│ │ ├── README.md (Component description) | ||
│ │ ├── login.js | ||
│ │ └── signup.js | ||
│ ├── product-catalog/ (Component) | ||
│ │ └── ... | ||
│ └── shopping-cart/ (Component) | ||
│ └── ... | ||
├── api-gateway/ (Container) | ||
│ └── ... | ||
├── database/ (Container) | ||
│ └── ... | ||
└── shared-library/ (Container) | ||
└── ... | ||
``` | ||
<br> | ||
|
||
<p align="center"> | ||
Neuronek is an application that provides essential tools for people who want to use psychoactive | ||
substances in a safe and healthy way, regardless of their personal goals or usage patterns. The app offers personalized | ||
dosing recommendations, insights into usage patterns, a comprehensive database of substances, and a community of users | ||
who are also interested in promoting responsible usage of these substances. | ||
</p> |