-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
4,141 additions
and
1,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for Thoth | ||
title: '' | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth" | ||
version = "0.4.7" | ||
version = "0.5.0" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -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.7", path = "thoth-api", features = ["backend"] } | ||
thoth-api-server = { version = "0.4.7", path = "thoth-api-server" } | ||
thoth-app-server = { version = "0.4.7", path = "thoth-app-server" } | ||
thoth-errors = { version = "0.4.7", path = "thoth-errors" } | ||
thoth-export-server = { version = "0.4.7", path = "thoth-export-server" } | ||
thoth-api = { version = "0.5.0", path = "thoth-api", features = ["backend"] } | ||
thoth-api-server = { version = "0.5.0", path = "thoth-api-server" } | ||
thoth-app-server = { version = "0.5.0", path = "thoth-app-server" } | ||
thoth-errors = { version = "0.5.0", path = "thoth-errors" } | ||
thoth-export-server = { version = "0.5.0", path = "thoth-export-server" } | ||
clap = "2.33.3" | ||
dialoguer = "0.7.1" | ||
dotenv = "0.9.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG RUST_IMAGE=rust:1.51.0 | ||
ARG RUST_IMAGE=rust:1.56.0 | ||
ARG MUSL_IMAGE=ekidd/rust-musl-builder:1.51.0 | ||
|
||
FROM ${RUST_IMAGE} as wasm | ||
|
@@ -16,7 +16,7 @@ RUN npm install -g [email protected] | |
RUN npm install -g [email protected] | ||
RUN n 12.19.0 | ||
RUN npm install -g [email protected] | ||
RUN cargo install wasm-pack | ||
RUN cargo install wasm-pack --version 0.9.1 | ||
|
||
# Get source | ||
COPY . . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth-api-server" | ||
version = "0.4.7" | ||
version = "0.5.0" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -9,8 +9,8 @@ repository = "https://github.com/thoth-pub/thoth" | |
readme = "README.md" | ||
|
||
[dependencies] | ||
thoth-api = { version = "0.4.7", path = "../thoth-api", features = ["backend"] } | ||
thoth-errors = { version = "0.4.7", path = "../thoth-errors" } | ||
thoth-api = { version = "0.5.0", path = "../thoth-api", features = ["backend"] } | ||
thoth-errors = { version = "0.5.0", path = "../thoth-errors" } | ||
actix-web = "3.3.2" | ||
actix-cors = "0.5.4" | ||
actix-identity = "0.3.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "thoth-api" | ||
version = "0.4.7" | ||
version = "0.5.0" | ||
authors = ["Javier Arias <[email protected]>", "Ross Higman <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -16,7 +16,7 @@ maintenance = { status = "actively-developed" } | |
backend = ["diesel", "diesel-derive-enum", "diesel_migrations", "futures", "actix-web"] | ||
|
||
[dependencies] | ||
thoth-errors = { version = "0.4.7", path = "../thoth-errors" } | ||
thoth-errors = { version = "0.5.0", path = "../thoth-errors" } | ||
actix-web = { version = "3.3.2", optional = true } | ||
argon2rs = "0.2.5" | ||
isbn2 = "0.4.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ALTER TABLE publication | ||
DROP CONSTRAINT publication_publication_type_work_id_uniq, | ||
ADD COLUMN publication_url TEXT CHECK (publication_url ~* '^[^:]*:\/\/(?:[^\/:]*:[^\/@]*@)?(?:[^\/:.]*\.)+([^:\/]+)'); | ||
|
||
-- Migrate location URLs back into publication table as far as possible before dropping location table: | ||
-- set the landing_page or full_text_url of the canonical location as the main publication_url, | ||
-- then create duplicate publications to store all other location URLs (landing page/full text). | ||
-- Note this will create multiple identical publications if the same URL is re-used across location fields. | ||
UPDATE publication | ||
SET publication_url = location.landing_page | ||
FROM location | ||
WHERE publication.publication_id = location.publication_id | ||
AND location.canonical | ||
AND location.landing_page IS NOT NULL; | ||
UPDATE publication | ||
SET publication_url = location.full_text_url | ||
FROM location | ||
WHERE publication.publication_id = location.publication_id | ||
AND location.canonical | ||
AND location.full_text_url IS NOT NULL | ||
AND location.landing_page IS NULL; | ||
INSERT INTO publication(publication_type, work_id, publication_url) | ||
SELECT publication.publication_type, publication.work_id, location.landing_page FROM publication, location | ||
WHERE publication.publication_id = location.publication_id | ||
AND location.landing_page IS NOT NULL | ||
AND NOT location.canonical; | ||
INSERT INTO publication(publication_type, work_id, publication_url) | ||
SELECT publication.publication_type, publication.work_id, location.full_text_url FROM publication, location | ||
WHERE publication.publication_id = location.publication_id | ||
AND location.full_text_url IS NOT NULL | ||
AND ( | ||
NOT location.canonical | ||
OR (location.canonical AND location.landing_page IS NOT NULL) | ||
); | ||
|
||
DROP TABLE location_history; | ||
DROP TRIGGER set_updated_at ON location; | ||
DROP TABLE location; | ||
DROP TYPE IF EXISTS location_platform; |
Oops, something went wrong.