From 5868714f4176c9cb70245d5164cc9196c2314a75 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 May 2019 15:26:08 -0700 Subject: include edit_extra on single-entity creates --- CHANGELOG.md | 8 +++++++- rust/src/entity_crud.rs | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 183a7304..3260e8b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,12 @@ See also: ## [Unreleased] +### Fixed + +- `edit_extra` on individual entity create was not being written to database + +### Added + - added `retraction` as an allowable `release_type`, for a publication. When used, the `release_type` should also be `retraction`. @@ -43,7 +49,7 @@ See also: ## [0.2.1] - 2019-04-09 No API or SQL schema changes in this release. Macaroon generation and -verification way broken; all non-CLI-generated tokens will need to be +verification was broken; all non-CLI-generated tokens will need to be regenerated (eg, log-out, log-in). ### Fixed diff --git a/rust/src/entity_crud.rs b/rust/src/entity_crud.rs index b72ccd37..dc8a3e82 100644 --- a/rust/src/entity_crud.rs +++ b/rust/src/entity_crud.rs @@ -346,6 +346,7 @@ macro_rules! generic_db_create { $edit_table::editgroup_id.eq(edit_context.editgroup_id.to_uuid()), $edit_table::rev_id.eq(&rev_id), $edit_table::ident_id.eq(&ident), + $edit_table::extra_json.eq(self.edit_extra.clone()), )) .get_result(conn)?; Ok(edit) -- cgit v1.2.3