Commit graph

13 commits

Author SHA1 Message Date
c681c65c68
refactor(taskfiles): extract lint+format logic into script, trim taskfile 2023-12-18 00:02:04 -05:00
89186e5c30
refactor(taskfiles): extract build logic out of taskfile, remove migration deadcode 2023-12-18 00:02:00 -05:00
0582f9877e
refactor(taskfiles): extract start logic out of taskfile 2023-12-18 00:01:26 -05:00
0242b2d5ff
refactor: FastAPI -> Django migration (#41)
* build(backend): set up Django 4.2 scaffolding

* feat: porting files API

feat: file ownership basics

feat: gaps in test compatibility

* test: port files API tests

* fix(tests): test database port 5432>5431 to avoid conflict with application database

* feat(auth): LoginView, middleware to handle JWT bearer tokens

* refactor: clean up old FastAPI logic, temporary utils

* refactor: resolve LoginView linting

* feat: user creation + test coverage

* test: session creation coverage

* refactor: hoist secrets, replace placeholders

* chore: clear linting errors+warns
2023-11-26 21:34:09 -05:00
a737e954aa
build(deps): refactor dependency metadata to live in pyproject.toml (#40)
* build(deps): refactor dependency metadata to live in pyproject.toml

* build(test): wait once after successful status to ensure DB is ready
2023-11-16 00:36:58 -05:00
992bf1e5e1
build(backend): ensure that migrate settings set host properly (#34) 2023-08-26 05:31:22 +00:00
a7d6a6a96d
build(backend): handle test db setup healthcheck and test failures more clearly (#35)
build(backend): better healthcheck and failure handling in test script
2023-08-26 01:20:55 -04:00
52cef95493
build(backend): ensure that test scripting returns an error code if s… (#28)
* build(backend): ensure that test scripting returns an error code if steps fail

* build(backend): wait for database to be ready before running migrations

* build(backend): extra sleep after successful healthcheck

* fix(backend): ensure that ci environment expects same DB port as test

* build(backend): better error handling in test script

* build(backend): remove arbitrary sleep
2023-08-19 12:08:24 -04:00
fbba07cbdc
build: tooling clean-up (#14)
* build(backend): requirements-locks to use venv directly to avoid needing to activate

* build(backend): taskfile cleaning, no more sourcing

* build(frontend): remove unneeded syntax, cmds>cmd for one-liners

* docs: instructors on local setup

* ci: hoisted default working directory settings
2023-08-12 16:32:07 -04:00
da2bf786d5
feat(backend): handle settings by environment (#13)
* build(backend): db provisioning tooling

* feat(backend): split application configuration by env

* docs(backend): update mention of local db setup
2023-08-12 15:56:52 -04:00
ee9a9d8dc3
test(backend): list+details tests (#12)
* build(backend): more verbosity on test + error handling

* fix(backend): raise HTTPException, not return on details fetch

* fix(backend): get inserted ID instead of row tuple

* test(backend): add tests for list + details routes
2023-08-12 13:24:25 -04:00
a341b462c7
build(backend): add db-aware testing tooling (#9)
* fix(backend): centralized settings, fix refs

* build(backend): pytest configuration points at the right path

* build(backend): test tooling script

* ci(backend): use taskfile to trigger tests in ci

* test(backend): stub db-test

* ci(backend): use Task for backend steps, remove redundant bootstrap
2023-08-12 11:45:51 -04:00
bf7431f747
feat(backend): sub fetch endpoints (#2)
* feat(backend): sub fetch endpoints

* ci: skip frontend/backend if no frontend change

* ci: backend formatting

* build: tooling and commands

* build: psycopg2

* build: dependency locking tooling

* build: pylint

* feat: migration handling

* feat: rudimentary upload flow

* feat: basic file create/read interactions

* docs: stubs

* build: migration command
2023-08-08 23:49:54 -04:00