Skip to content

Commit

Permalink
feat: add search
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 4, 2024
1 parent 435c5bb commit 36440c1
Show file tree
Hide file tree
Showing 26 changed files with 551 additions and 49 deletions.
115 changes: 114 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"modules/graph",
"modules/importer",
"modules/ingestor",
"modules/search",
"modules/storage",
"entity",
"importer",
Expand Down Expand Up @@ -73,6 +74,7 @@ serde = "1.0.183"
serde_json = "1.0.114"
serde_yaml = "0.9"
sha2 = "0.10.8"
sikula = "0.4.4"
spdx-expression = "0.5.2"
spdx-rs = "0.5.3"
sqlx = "0.7"
Expand Down Expand Up @@ -105,6 +107,7 @@ trustify-entity = { path = "entity" }
trustify-module-graph = { path = "modules/graph" }
trustify-module-ingestor = { path = "modules/ingestor" }
trustify-module-importer = { path = "modules/importer" }
trustify-module-search = { path = "modules/search" }
trustify-module-storage = { path = "modules/storage" }
trustify-infrastructure = { path = "common/infrastructure" }

Expand Down
7 changes: 4 additions & 3 deletions entity/src/advisory.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use sea_orm::entity::prelude::*;
use time::OffsetDateTime;

#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "advisory")]
Expand All @@ -8,9 +9,9 @@ pub struct Model {
pub identifier: String,
pub location: String,
pub sha256: String,
pub published: Option<DateTimeUtc>,
pub modified: Option<DateTimeUtc>,
pub withdrawn: Option<DateTimeUtc>,
pub published: Option<OffsetDateTime>,
pub modified: Option<OffsetDateTime>,
pub withdrawn: Option<OffsetDateTime>,
pub title: Option<String>,
}

Expand Down
1 change: 1 addition & 0 deletions modules/graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spdx-expression = { workspace = true }
spdx-rs = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
time = { workspace = true }
tokio = { workspace = true, features = ["full"] }
utoipa = { workspace = true, features = ["actix_extras"] }

Expand Down
Loading

0 comments on commit 36440c1

Please sign in to comment.