Skip to content

Commit

Permalink
Merge branch 'release/v0.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Jul 28, 2021
2 parents aa4ee1b + e3e82bf commit ed504f2
Show file tree
Hide file tree
Showing 23 changed files with 1,412 additions and 96 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create Release

on:
push:
tags:
- "*.*.*"

jobs:
build:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
body: ${{ steps.extract-release-notes.outputs.release_notes }}
17 changes: 16 additions & 1 deletion .github/workflows/docker_build_and_push_to_dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ jobs:
build_and_push_docker_image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
openbookpublishers/thoth
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
Expand All @@ -22,7 +36,8 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: openbookpublishers/thoth:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
THOTH_GRAPHQL_API=https://api.thoth.pub
THOTH_EXPORT_API=https://export.thoth.pub
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to thoth will be documented in this file.
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).

## [[0.4.3]](https://github.com/thoth-pub/thoth/releases/tag/v0.4.3) - 2021-07-28
### Added
- [#48](https://github.com/thoth-pub/thoth/issues/48) - Implement OAPEN ONIX 3.0 specification

### Fixed
- [#254](https://github.com/thoth-pub/thoth/issues/254) - Ensure order of fields in create work match those in edit work

## [[0.4.2]](https://github.com/thoth-pub/thoth/releases/tag/v0.4.2) - 2021-07-05
### Added
- [#125](https://github.com/thoth-pub/thoth/issues/125) - Implement `ISBN` type to standardise parsing
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -16,11 +16,11 @@ maintenance = { status = "actively-developed" }
members = ["thoth-api", "thoth-api-server", "thoth-app", "thoth-app-server", "thoth-client", "thoth-errors", "thoth-export-server"]

[dependencies]
thoth-api = { version = "0.4.2", path = "thoth-api", features = ["backend"] }
thoth-api-server = { version = "0.4.2", path = "thoth-api-server" }
thoth-app-server = { version = "0.4.2", path = "thoth-app-server" }
thoth-errors = { version = "0.4.2", path = "thoth-errors" }
thoth-export-server = { version = "0.4.2", path = "thoth-export-server" }
thoth-api = { version = "0.4.3", path = "thoth-api", features = ["backend"] }
thoth-api-server = { version = "0.4.3", path = "thoth-api-server" }
thoth-app-server = { version = "0.4.3", path = "thoth-app-server" }
thoth-errors = { version = "0.4.3", path = "thoth-errors" }
thoth-export-server = { version = "0.4.3", path = "thoth-export-server" }
clap = "2.33.3"
dialoguer = "0.7.1"
dotenv = "0.9.0"
Expand Down
6 changes: 3 additions & 3 deletions thoth-api-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-api-server"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth"
readme = "README.md"

[dependencies]
thoth-api = { version = "0.4.2", path = "../thoth-api", features = ["backend"] }
thoth-errors = { version = "0.4.2", path = "../thoth-errors" }
thoth-api = { version = "0.4.3", path = "../thoth-api", features = ["backend"] }
thoth-errors = { version = "0.4.3", path = "../thoth-errors" }
actix-web = "3.3.2"
actix-cors = "0.5.4"
actix-identity = "0.3.1"
Expand Down
4 changes: 2 additions & 2 deletions thoth-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-api"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" }
backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web"]

[dependencies]
thoth-errors = { version = "0.4.2", path = "../thoth-errors" }
thoth-errors = { version = "0.4.3", path = "../thoth-errors" }
actix-web = { version = "3.3.2", optional = true }
argon2rs = "0.2.5"
isbn2 = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion thoth-app-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-app-server"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
6 changes: 3 additions & 3 deletions thoth-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-app"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down Expand Up @@ -33,5 +33,5 @@ serde = { version = "1.0.115", features = ["derive"] }
serde_json = "1.0"
url = "2.1.1"
uuid = { version = "0.7", features = ["serde", "v4"] }
thoth-api = { version = "0.4.2", path = "../thoth-api" }
thoth-errors = { version = "0.4.2", path = "../thoth-errors" }
thoth-api = { version = "0.4.3", path = "../thoth-api" }
thoth-errors = { version = "0.4.3", path = "../thoth-errors" }
2 changes: 1 addition & 1 deletion thoth-app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start_url": "/?homescreen=1",
"background_color": "#ffffff",
"theme_color": "#ffdd57",
"version": "0.4.2",
"version": "0.4.3",
"icons": [
{
"src": "\/android-icon-36x36.png",
Expand Down
10 changes: 5 additions & 5 deletions thoth-app/src/component/new_work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,17 +716,17 @@ impl Component for NewWorkComponent {
/>
</div>
</div>
<FormTextInput
label = "License"
value=self.work.license.clone()
oninput=self.link.callback(|e: InputData| Msg::ChangeLicense(e.value))
/>
<FormTextInput
label = "Copyright Holder"
value=self.work.copyright_holder.clone()
oninput=self.link.callback(|e: InputData| Msg::ChangeCopyright(e.value))
required = true
/>
<FormTextInput
label = "License"
value=self.work.license.clone()
oninput=self.link.callback(|e: InputData| Msg::ChangeLicense(e.value))
/>
<FormUrlInput
label = "Landing Page"
value=self.work.landing_page.clone()
Expand Down
22 changes: 18 additions & 4 deletions thoth-app/src/models/work/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ impl MetadataTable for WorkWithRelations {
}

pub trait DisplayWork {
fn onix_endpoint(&self) -> String;
fn onix_projectmuse_endpoint(&self) -> String;
fn onix_oapen_endpoint(&self) -> String;
fn csv_endpoint(&self) -> String;
fn cover_alt_text(&self) -> String;
fn license_icons(&self) -> Html;
Expand All @@ -112,13 +113,20 @@ pub trait DisplayWork {
}

impl DisplayWork for WorkWithRelations {
fn onix_endpoint(&self) -> String {
fn onix_projectmuse_endpoint(&self) -> String {
format!(
"{}/specifications/onix_3.0::project_muse/work/{}",
THOTH_EXPORT_API, &self.work_id
)
}

fn onix_oapen_endpoint(&self) -> String {
format!(
"{}/specifications/onix_3.0::oapen/work/{}",
THOTH_EXPORT_API, &self.work_id
)
}

fn csv_endpoint(&self) -> String {
format!(
"{}/specifications/csv::thoth/work/{}",
Expand Down Expand Up @@ -308,10 +316,16 @@ impl DisplayWork for WorkWithRelations {
<div class="dropdown-menu" id="dropdown-menu" role="menu">
<div class="dropdown-content">
<a
href={self.onix_endpoint()}
href={self.onix_projectmuse_endpoint()}
class="dropdown-item"
>
{"ONIX (Project Muse)"}
</a>
<a
href={self.onix_oapen_endpoint()}
class="dropdown-item"
>
{"ONIX"}
{"ONIX (OAPEN)"}
</a>
<a
href={self.csv_endpoint()}
Expand Down
6 changes: 3 additions & 3 deletions thoth-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-client"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth"
readme = "README.md"

[dependencies]
thoth-api = {version = "0.4.2", path = "../thoth-api" }
thoth-errors = {version = "0.4.2", path = "../thoth-errors" }
thoth-api = {version = "0.4.3", path = "../thoth-api" }
thoth-errors = {version = "0.4.3", path = "../thoth-errors" }
graphql_client = "0.9.0"
chrono = { version = "0.4", features = ["serde"] }
reqwest = { version = "0.10", features = ["json"] }
Expand Down
1 change: 1 addition & 0 deletions thoth-client/assets/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fragment Work on Work {
mainContribution
biography
institution
contributionOrdinal
contributor {
orcid
}
Expand Down
16 changes: 16 additions & 0 deletions thoth-client/assets/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5632,6 +5632,22 @@
}
}
},
{
"args": [],
"deprecationReason": null,
"description": null,
"isDeprecated": false,
"name": "contributionOrdinal",
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
}
},
{
"args": [],
"deprecationReason": null,
Expand Down
2 changes: 1 addition & 1 deletion thoth-errors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-errors"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions thoth-export-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "thoth-export-server"
version = "0.4.2"
version = "0.4.3"
authors = ["Javier Arias <javi@openbookpublishers.com>", "Ross Higman <ross@openbookpublishers.com>"]
edition = "2018"
license = "Apache-2.0"
Expand All @@ -9,9 +9,9 @@ repository = "https://github.com/thoth-pub/thoth"
readme = "README.md"

[dependencies]
thoth-api = { version = "0.4.2", path = "../thoth-api" }
thoth-errors = { version = "0.4.2", path = "../thoth-errors" }
thoth-client = { version = "0.4.2", path = "../thoth-client" }
thoth-api = { version = "0.4.3", path = "../thoth-api" }
thoth-errors = { version = "0.4.3", path = "../thoth-errors" }
thoth-client = { version = "0.4.3", path = "../thoth-client" }
actix-web = "3.3.2"
actix-cors = "0.5.4"
chrono = { version = "0.4", features = ["serde"] }
Expand Down
Loading

0 comments on commit ed504f2

Please sign in to comment.