From cc437b5d86bc9734db8d9c54887db4ecacdfbfdf Mon Sep 17 00:00:00 2001 From: Brendan O'Connell Date: Thu, 3 Oct 2024 10:19:56 +0200 Subject: [PATCH] Fix changelog --- CHANGELOG.md | 3 ++- thoth-api/src/model/location/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df6a1e6f..4995f9ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed + - [324](https://github.com/thoth-pub/thoth/issues/324) - Make Locations editable, including the ability to change the Canonical Location for a Publication ## [[0.12.10]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.10) - 2024-10-01 ### Added @@ -19,7 +21,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - [565](https://github.com/thoth-pub/thoth/issues/565) - Don't generate Crossref metadata output if no DOIs (work or chapter) are present - - [324](https://github.com/thoth-pub/thoth/issues/324) - Make Locations editable, including the ability to change the Canonical Location for a Publication - [632](https://github.com/thoth-pub/thoth/pull/632) - Add second order by clause (work\_id) to work queries for consistent ordering when multiple works share the same user-ordered field, such as publication date ## [[0.12.9]](https://github.com/thoth-pub/thoth/releases/tag/v0.12.9) - 2024-09-06 diff --git a/thoth-api/src/model/location/mod.rs b/thoth-api/src/model/location/mod.rs index 6aaa0af1..fba42a0a 100644 --- a/thoth-api/src/model/location/mod.rs +++ b/thoth-api/src/model/location/mod.rs @@ -259,7 +259,7 @@ impl From for PatchLocation { fn test_location_to_patch_location() { let location = Location { location_id: Uuid::parse_str("00000000-0000-0000-AAAA-000000000001").unwrap(), - publication_id: Uuid::new_v4(), + publication_id: Uuid::parse_str("00000000-0000-0000-AAAA-000000000002").unwrap(), landing_page: Some("https://www.book.com/pb_landing".to_string()), full_text_url: Some("https://example.com/full_text.pdf".to_string()), location_platform: LocationPlatform::PublisherWebsite,