-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #772 from digirati-co-uk/feature/FAC-preparation
v2.2.0
- Loading branch information
Showing
478 changed files
with
11,623 additions
and
2,305 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 |
---|---|---|
|
@@ -36,7 +36,7 @@ SMTP_USER=project.1 | |
SMTP_PASSWORD=secret.1 | ||
|
||
MAIL_FROM_USER="Madoc local <[email protected]>" | ||
MADOC_INSTALLATION_CODE='$2b$14$eofdZp3nY.HyK68a9zCfoOs3fuphxHRAR/KhckFm.8Qi8sEmgMcCK' | ||
MADOC_INSTALLATION_CODE='$2b$14$9qnqDtpUMt7PQ0bs300y8el116vUbm4nF8Bf5vltCx78ZzuAWBu/K' | ||
|
||
# HTTPS | ||
# LOCAL PORT FOR HTTPS, CAN BE CHANGED | ||
|
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
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
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
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
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
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
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
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,12 @@ | ||
import { createLink } from '../../src/frontend/shared/utility/create-link'; | ||
|
||
describe('createLink', () => { | ||
test('it can create /reviews/{taskId} link', () => { | ||
const link = createLink({ | ||
subRoute: 'reviews', | ||
taskId: '1234', | ||
}); | ||
|
||
expect(link).toEqual('/reviews/1234'); | ||
}); | ||
}); |
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
21 changes: 21 additions & 0 deletions
21
services/madoc-ts/migrations/2023-07-17T13-42.term-configurations.sql
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,21 @@ | ||
--term-configurations (up) | ||
|
||
create table term_configurations ( | ||
id uuid primary key, | ||
url_pattern text not null, | ||
results_path text not null, | ||
label_path text not null, | ||
uri_path text not null, | ||
resource_class_path text, | ||
description_path text, | ||
language_path text, | ||
term_label text not null, | ||
term_description text, | ||
attribution text, | ||
site_id integer not null, | ||
creator integer not null, | ||
created_at timestamp not null | ||
); | ||
|
||
create index term_configurations_site_id on term_configurations (site_id); | ||
|
41 changes: 41 additions & 0 deletions
41
services/madoc-ts/migrations/2023-07-18T11-55.user-extensions.sql
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,41 @@ | ||
--user-extensions (up) | ||
|
||
alter table "user" add column user_info jsonb; | ||
alter table "user" add column user_preferences jsonb; | ||
|
||
create table site_terms | ||
( | ||
id uuid primary key, | ||
site_id integer references site (id), | ||
created_at timestamp not null default CURRENT_TIMESTAMP, | ||
terms_markdown text not null, | ||
terms_text text not null | ||
); | ||
|
||
alter table "user" add column terms_accepted uuid[]; | ||
|
||
create table badge | ||
( | ||
id uuid primary key, | ||
site_id integer references site (id), | ||
label jsonb not null, | ||
description jsonb, | ||
svg_code text, | ||
tier_colors text[], | ||
trigger_name text, | ||
created_at timestamp, | ||
updated_at timestamp | ||
); | ||
|
||
create table badge_award | ||
( | ||
id uuid primary key, | ||
site_id integer references site (id) not null, | ||
user_id integer references "user" (id) not null, | ||
project_id integer references iiif_project (id), | ||
badge_id uuid references badge (id), | ||
awarded_by integer references "user" (id), | ||
reason text, | ||
tier int, | ||
awarded_at timestamp not null default CURRENT_TIMESTAMP | ||
); |
38 changes: 38 additions & 0 deletions
38
services/madoc-ts/migrations/2023-07-27T11-04.project-extensions.sql
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,38 @@ | ||
--project-extensions (up) | ||
|
||
alter table iiif_derived_resource add column placeholder_image text default null; | ||
alter table iiif_resource add column placeholder_image text default null; | ||
|
||
alter table iiif_project add column due_date date default null; | ||
alter table iiif_project add column start_date date default null; | ||
alter table iiif_project add column members_only bool default false; | ||
|
||
alter table project_notes add column created timestamp not null default now(); | ||
alter table project_notes add column updated timestamp not null default now(); | ||
|
||
create table project_feedback ( | ||
id serial primary key, | ||
project_id integer not null references iiif_project(id) on delete cascade, | ||
user_id integer not null references "user"(id), | ||
created timestamp not null default now(), | ||
feedback text not null | ||
); | ||
|
||
create table project_updates ( | ||
id serial primary key, | ||
project_id integer not null references iiif_project(id) on delete cascade, | ||
user_id integer not null references "user"(id), | ||
created timestamp not null default now(), | ||
update text not null, | ||
snapshot json | ||
); | ||
|
||
create table project_members ( | ||
id serial primary key, | ||
project_id integer not null references iiif_project(id) on delete cascade, | ||
user_id integer not null references "user"(id), | ||
created timestamp not null default now(), | ||
role text, | ||
role_label text, | ||
role_color text | ||
); |
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,16 @@ | ||
--add-ids (up) | ||
|
||
-- Make the Id field on plugin_token a primary key | ||
alter table plugin_token add primary key (id); | ||
|
||
alter table site_page_slots add primary key (page_id, slot_id); | ||
|
||
alter table site_slot_blocks add primary key (block_id, slot_id); | ||
|
||
alter table webhook_call add primary key (id); | ||
|
||
-- remove constraint valid_invitation from invitation | ||
alter table user_invitations drop constraint valid_invitation; | ||
|
||
-- Remove index iiif_metadata_uq | ||
drop index iiif_metadata_uq; |
4 changes: 4 additions & 0 deletions
4
services/madoc-ts/migrations/down/2023-07-17T13-42.term-configurations.sql
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,4 @@ | ||
--term-configurations (down) | ||
|
||
drop table if exists term_configurations; | ||
drop index if exists term_configurations_site_id; |
8 changes: 8 additions & 0 deletions
8
services/madoc-ts/migrations/down/2023-07-18T11-55.user-extensions.sql
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,8 @@ | ||
--user-extensions (down) | ||
|
||
drop table if exists badge_award; | ||
drop table if exists badge; | ||
drop table if exists site_terms; | ||
alter table "user" drop column terms_accepted; | ||
alter table "user" drop column user_preferences; | ||
alter table "user" drop column user_info; |
13 changes: 13 additions & 0 deletions
13
services/madoc-ts/migrations/down/2023-07-27T11-04.project-extensions.sql
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,13 @@ | ||
--project-extensions (down) | ||
|
||
|
||
alter table iiif_derived_resource drop column if exists placeholder_image; | ||
alter table iiif_resource drop column if exists placeholder_image; | ||
|
||
alter table iiif_project drop column if exists due_date; | ||
alter table iiif_project drop column if exists start_date; | ||
alter table iiif_project drop column if exists members_only; | ||
|
||
drop table if exists project_feedback; | ||
drop table if exists project_updates; | ||
drop table if exists project_members; |
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 @@ | ||
--add-ids (down) |
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
Oops, something went wrong.