From 8e92be6e1e9396f4920c0f947337e1be643e1994 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 May 2018 14:03:37 -0700 Subject: edit lists, refs, contribs --- rust/src/api_server.rs | 6 ++++++ rust/src/database_models.rs | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'rust/src') diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index 8364ec8c..a2e133fe 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -305,6 +305,8 @@ impl Server { issue: rev.issue, container_id: rev.container_ident_id.map(|u| u.to_string()), work_id: rev.work_ident_id.to_string(), + refs: None, + contribs: None, state: Some(ident.state().unwrap().shortname()), ident: Some(ident.id.to_string()), revision: ident.rev_id, @@ -341,6 +343,8 @@ impl Server { issue: rev.issue, container_id: rev.container_ident_id.map(|u| u.to_string()), work_id: rev.work_ident_id.to_string(), + refs: None, + contribs: None, state: Some(ident.state().unwrap().shortname()), ident: Some(ident.id.to_string()), revision: ident.rev_id, @@ -360,6 +364,7 @@ impl Server { id: Some(row.id), editor_id: row.editor_id, description: row.description, + edits: None, extra: row.extra_json, }; Ok(Some(eg)) @@ -716,6 +721,7 @@ impl Api for Server { id: Some(row.id), editor_id: row.editor_id, description: row.description, + edits: None, extra: row.extra_json, }; Box::new(futures::done(Ok( diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index aaf21ce0..5e4e9710 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -167,7 +167,6 @@ pub struct ReleaseRefRow { stub: Option, } -/* #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "file_release"] pub struct FileReleaseRow { @@ -175,7 +174,6 @@ pub struct FileReleaseRow { file_rev: i64, target_release_ident_id: Uuid, } -*/ #[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)] #[table_name = "editgroup"] -- cgit v1.2.3