summaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 14:03:47 -0700
commit8e92be6e1e9396f4920c0f947337e1be643e1994 (patch)
tree2891a0ed7b6c780d1e86a81462b4c10dd13fa79a /rust/src
parent495a1367510be66a9409d7b56a4b632a64aeefef (diff)
downloadfatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.tar.gz
fatcat-8e92be6e1e9396f4920c0f947337e1be643e1994.zip
edit lists, refs, contribs
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/api_server.rs6
-rw-r--r--rust/src/database_models.rs2
2 files changed, 6 insertions, 2 deletions
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<String>,
}
-/*
#[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"]