-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: kiwix library scraping, remove canvas seeder, make all hot relo…
…adable --------- Co-authored-by: calisio <calisio@wustl.edu> Co-authored-by: jtucholski <josh@unlockedlabs.org>
- Loading branch information
1 parent
7a06003
commit d5287a3
Showing
41 changed files
with
666 additions
and
3,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,33 @@ | ||
root = "." | ||
tmp_dir = "tmp" | ||
|
||
[build] | ||
cmd = "go build -o ./bin/provider-middleware ./provider-middleware/." | ||
bin = "bin/provider-middleware" | ||
include_dir = ["backend", "provider-middleware"] | ||
include_file = [] | ||
exclude_dir = ["frontend", "config", "backend/tasks"] | ||
exclude_regex = ["_test\\.go"] | ||
exclude_unchanged = true | ||
|
||
log = "logs/middleware.air.log" | ||
stop_on_error = true | ||
send_interrupt = true | ||
rerun_delay = 500 | ||
|
||
[log] | ||
time = false | ||
main_only = false | ||
|
||
[color] | ||
main = "magenta" | ||
watcher = "cyan" | ||
build = "yellow" | ||
runner = "green" | ||
|
||
[misc] | ||
clean_on_exit = true | ||
|
||
[screen] | ||
clear_on_rebuild = true | ||
keep_scroll = true |
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,33 @@ | ||
root = "." | ||
tmp_dir = "tmp" | ||
|
||
[build] | ||
cmd = "go build -o ./bin/cron_tasks ./backend/tasks/." | ||
bin = "bin/cron_tasks" | ||
include_dir = ["backend"] | ||
include_file = [] | ||
exclude_dir = ["frontend", "provider-middleware"] | ||
exclude_regex = ["_test\\.go"] | ||
exclude_unchanged = true | ||
|
||
log = "logs/tasks.air.log" | ||
stop_on_error = true | ||
send_interrupt = true | ||
rerun_delay = 500 | ||
|
||
[log] | ||
time = false | ||
main_only = false | ||
|
||
[color] | ||
main = "magenta" | ||
watcher = "cyan" | ||
build = "yellow" | ||
runner = "green" | ||
|
||
[misc] | ||
clean_on_exit = true | ||
|
||
[screen] | ||
clear_on_rebuild = true | ||
keep_scroll = true |
13 changes: 13 additions & 0 deletions
13
backend/migrations/00010_add_open_content_provider_id_to_tasks.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 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE public.runnable_tasks | ||
ALTER COLUMN provider_platform_id DROP NOT NULL, | ||
ADD COLUMN open_content_provider_id integer REFERENCES open_content_providers(id); | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
ALTER TABLE public.runnable_tasks | ||
ALTER COLUMN provider_platform_id SET NOT NULL, | ||
DROP COLUMN open_content_provider_id; | ||
-- +goose StatementEnd |
11 changes: 11 additions & 0 deletions
11
backend/migrations/00011_add_base_url_to_open_content_providers.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,11 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE public.open_content_providers RENAME COLUMN url TO base_url; | ||
ALTER TABLE public.libraries RENAME COLUMN url TO path; | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
ALTER TABLE public.open_content_providers RENAME COLUMN base_url TO url; | ||
ALTER TABLE public.libraries RENAME COLUMN path TO url; | ||
-- +goose StatementEnd |
9 changes: 9 additions & 0 deletions
9
backend/migrations/00012_increase_languages_length_libraries.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,9 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE public.libraries ALTER COLUMN language TYPE VARCHAR(512); | ||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
ALTER TABLE public.libraries ALTER COLUMN language TYPE VARCHAR(255); | ||
-- +goose StatementEnd |
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
Oops, something went wrong.