Skip to content

Commit ff1dceb

Browse files
committed
Merge branch 'release/v0.9.16'
2 parents 09d70e7 + 51834f5 commit ff1dceb

68 files changed

Lines changed: 7831 additions & 6899 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [[0.9.16]](https://github.com/thoth-pub/thoth/releases/tag/v0.9.16) - 2023-03-24
10+
### Added
11+
- [#480](https://github.com/thoth-pub/thoth/pull/480) Add field to work table to track when the work or any of its relations was last updated
12+
13+
### Changed
14+
- Removed manual character checks and derivable defaults to comply with [`rustc 1.68.0`](https://github.com/rust-lang/rust/releases/tag/1.68.0)
15+
- [484](https://github.com/thoth-pub/thoth/pull/484) GraphQL queries: support filtering on multiple enum variants for work status and language relation, and add filtering for works last updated before/after a specified timestamp
16+
817
## [[0.9.15]](https://github.com/thoth-pub/thoth/releases/tag/v0.9.15) - 2023-03-01
918
### Fixed
1019
- Issue adding institutions in previous release

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thoth"
3-
version = "0.9.15"
3+
version = "0.9.16"
44
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -16,11 +16,11 @@ maintenance = { status = "actively-developed" }
1616
members = ["thoth-api", "thoth-api-server", "thoth-app", "thoth-app-server", "thoth-client", "thoth-errors", "thoth-export-server"]
1717

1818
[dependencies]
19-
thoth-api = { version = "0.9.15", path = "thoth-api", features = ["backend"] }
20-
thoth-api-server = { version = "0.9.15", path = "thoth-api-server" }
21-
thoth-app-server = { version = "0.9.15", path = "thoth-app-server" }
22-
thoth-errors = { version = "0.9.15", path = "thoth-errors" }
23-
thoth-export-server = { version = "0.9.15", path = "thoth-export-server" }
19+
thoth-api = { version = "0.9.16", path = "thoth-api", features = ["backend"] }
20+
thoth-api-server = { version = "0.9.16", path = "thoth-api-server" }
21+
thoth-app-server = { version = "0.9.16", path = "thoth-app-server" }
22+
thoth-errors = { version = "0.9.16", path = "thoth-errors" }
23+
thoth-export-server = { version = "0.9.16", path = "thoth-export-server" }
2424
clap = "2.33.3"
2525
dialoguer = "0.7.1"
2626
dotenv = "0.15.0"

thoth-api-server/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thoth-api-server"
3-
version = "0.9.15"
3+
version = "0.9.16"
44
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth"
99
readme = "README.md"
1010

1111
[dependencies]
12-
thoth-api = { version = "0.9.15", path = "../thoth-api", features = ["backend"] }
13-
thoth-errors = { version = "0.9.15", path = "../thoth-errors" }
12+
thoth-api = { version = "0.9.16", path = "../thoth-api", features = ["backend"] }
13+
thoth-errors = { version = "0.9.16", path = "../thoth-errors" }
1414
actix-web = "4.3.0"
1515
actix-cors = "0.6.4"
1616
actix-identity = "0.4.0"

thoth-api-server/src/graphiql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn graphiql_source(graphql_endpoint_url: &str) -> String {
2020
# An example Thoth GraphQL query might look like:
2121
#
2222
# {
23-
# books(workStatus: ACTIVE) {
23+
# books(workStatuses: [ACTIVE]) {
2424
# fullTitle
2525
# doi
2626
# }

thoth-api/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thoth-api"
3-
version = "0.9.15"
3+
version = "0.9.16"
44
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
55
edition = "2018"
66
license = "Apache-2.0"
@@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" }
1616
backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web"]
1717

1818
[dependencies]
19-
thoth-errors = { version = "0.9.15", path = "../thoth-errors" }
19+
thoth-errors = { version = "0.9.16", path = "../thoth-errors" }
2020
actix-web = { version = "4.3.0", optional = true }
2121
argon2rs = "0.2.5"
2222
isbn2 = "0.4.0"

thoth-api/migrations/0.8.0/down.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ ALTER TABLE publication
6161
DROP COLUMN height_in,
6262
DROP COLUMN depth_mm,
6363
DROP COLUMN depth_in;
64+
65+
DROP FUNCTION IF EXISTS publication_chapter_no_dimensions();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
DROP TRIGGER publication_location_canonical_urls_check ON publication;
2+
3+
DROP FUNCTION IF EXISTS publication_location_canonical_urls();
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON contribution;
2+
3+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON funding;
4+
5+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON issue;
6+
7+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON language;
8+
9+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON publication;
10+
11+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON reference;
12+
13+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON subject;
14+
15+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON work_relation;
16+
17+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON affiliation;
18+
19+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON location;
20+
21+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON price;
22+
23+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON contributor;
24+
25+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON institution;
26+
27+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON publisher;
28+
29+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON series;
30+
31+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON work;
32+
33+
DROP TRIGGER IF EXISTS set_work_updated_at_with_relations ON imprint;
34+
35+
DROP FUNCTION IF EXISTS work_updated_at_with_relations();
36+
37+
DROP FUNCTION IF EXISTS work_relation_work_updated_at_with_relations();
38+
39+
DROP FUNCTION IF EXISTS affiliation_work_updated_at_with_relations();
40+
41+
DROP FUNCTION IF EXISTS location_work_updated_at_with_relations();
42+
43+
DROP FUNCTION IF EXISTS price_work_updated_at_with_relations();
44+
45+
DROP FUNCTION IF EXISTS contributor_work_updated_at_with_relations();
46+
47+
DROP FUNCTION IF EXISTS institution_work_updated_at_with_relations();
48+
49+
DROP FUNCTION IF EXISTS publisher_work_updated_at_with_relations();
50+
51+
DROP FUNCTION IF EXISTS series_work_updated_at_with_relations();
52+
53+
DROP FUNCTION IF EXISTS work_work_updated_at_with_relations();
54+
55+
DROP FUNCTION IF EXISTS imprint_work_updated_at_with_relations();
56+
57+
ALTER TABLE work
58+
DROP COLUMN updated_at_with_relations;
59+
60+
DROP TRIGGER IF EXISTS set_updated_at ON work;
61+
62+
DROP FUNCTION IF EXISTS work_set_updated_at();
63+
64+
SELECT diesel_manage_updated_at('work');

0 commit comments

Comments
 (0)