Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Serve current documents #32

Merged
merged 128 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
8aba36c
refact: library -> archive
dgreisen Jan 2, 2023
a102e04
feat(wip): work towards serving current documents
n-dusan Mar 9, 2023
aa3b773
feat(wip): Archive and Stele structs
dgreisen Jan 2, 2023
25e00ac
refact(wip): turn stele backreference into path
n-dusan Mar 9, 2023
9ec11d0
feat(wip): load dependencies using serde json
n-dusan Mar 20, 2023
dfd18ab
feat(wip): naive traversal
n-dusan Mar 23, 2023
47dbcf0
feat: recursively load dependencies.json from stele'
n-dusan Mar 27, 2023
d9fd153
chore: remove unused test suite
n-dusan Mar 27, 2023
3a55eaf
fix: optionally load from repositories.json
n-dusan Mar 28, 2023
11a7d07
feat(wip): progress towards dynamic routes and dynamic appdata
n-dusan Apr 3, 2023
f38242b
feat(wip): set up repository state to each route and scope
n-dusan Apr 5, 2023
ddc63f0
wip: progress towards serving blobs
n-dusan Apr 7, 2023
5cb8840
feat(wip): serve current blobs
n-dusan Apr 10, 2023
4b87242
feat: use custom serde deserializer to sort routes
n-dusan Apr 19, 2023
31a4919
feat(wip): add underscore routes to parent scope
n-dusan Apr 20, 2023
adc335b
wip: work on setting root stele
n-dusan Apr 20, 2023
f54a674
wip: rename variables
n-dusan Apr 26, 2023
7aedda4
wip: underscore routes
n-dusan Apr 26, 2023
1ea8123
refact: reuse `new` associated function for both root and individual …
n-dusan Apr 26, 2023
66e8bdb
feat: simplify getting the root stele
n-dusan Apr 27, 2023
22f7bee
wip: simplify pathing to stele
n-dusan May 2, 2023
e80be4e
wip: fallback
n-dusan May 15, 2023
82aa032
chore: formatting
n-dusan May 23, 2023
fa2c3bc
feat: add util function for extracting {org}/{name}
n-dusan May 23, 2023
9a80b8e
refact: move name to `Repository` struct
n-dusan May 23, 2023
27c4dc9
feat: retrieve fallback repository
n-dusan May 23, 2023
8cad7b9
wip: shared fallback repository is initialized
n-dusan May 23, 2023
c541033
fix: serve fallback
n-dusan May 25, 2023
327d53c
fix: rename dynamic segments and confirm that _ routing works
n-dusan May 25, 2023
f871424
chore: use .stelae instead of .stele in testing
n-dusan Jun 2, 2023
c6cb370
refact: update law-html bare repository
n-dusan Jun 9, 2023
f20b747
feat: add actix plumbing crates for testing framework
n-dusan Jun 9, 2023
1b0efa7
refact: move `App` into a seperate function
n-dusan Jun 9, 2023
eff14db
chore: better tracing and add inline comment
n-dusan Jun 12, 2023
42e8cce
refact: rename initialize to initialize_git
n-dusan Jun 12, 2023
64f8f56
feat(test): test basic routing to the law-html repository
n-dusan Jun 12, 2023
efc18f0
fix: minor reword
n-dusan Jun 12, 2023
a813384
chore: delete unused file
n-dusan Jun 12, 2023
b216a88
refact: unit test `get_name_parts`
n-dusan Jun 12, 2023
9022a5b
chore: remove unused files
n-dusan Jun 12, 2023
30f7ee0
fix: remove unused code
n-dusan Jul 20, 2023
eaa7503
fix(tests): set correct module for api tests
n-dusan Aug 23, 2023
af879ca
fix: fix lints
n-dusan Nov 16, 2023
4c37ce6
fix: set `text/plain` `content-type` for .rdf extensions
n-dusan Nov 17, 2023
be1bd78
refact(test): move basic tests into `fixtures/basic` directory
n-dusan Nov 22, 2023
3d7e9c3
wip: init archive
n-dusan Nov 22, 2023
4e131d8
refact: use `toml_edit` to initialize archive
n-dusan Nov 23, 2023
ba0d2e9
feat(test): initial work on loading in archive scripts
n-dusan Nov 27, 2023
c9b9246
docs: uppercase
n-dusan Nov 28, 2023
0199919
fix: resolve path issues on Windows
n-dusan Nov 28, 2023
65bc982
feat: add error handling during fixture script errors
n-dusan Nov 28, 2023
ae6aadb
feat: add `make-law-repo.sh` script
n-dusan Nov 29, 2023
ed20c74
refact(test): move `blob_to_string` to common
n-dusan Nov 29, 2023
2ecd145
feat(test): serve current documents basic actix integration tests
n-dusan Nov 29, 2023
dbcb43f
refact(test): remove unnecessary test modules
n-dusan Nov 29, 2023
60a6318
feat: use `git2` for initializing archive/stele
n-dusan Dec 1, 2023
f34681b
wip
n-dusan Dec 5, 2023
62dccf8
refact: remove functions that work with bash scripts
n-dusan Dec 8, 2023
9b8d380
refact: add option to commit entire git repo index
n-dusan Dec 8, 2023
533690b
refact: re-enable basic_archive tests, add todo
n-dusan Dec 8, 2023
7831143
feat: use `git2` to initialize archive states
n-dusan Dec 8, 2023
7854c85
refact: remove unused `lazy_static`
n-dusan Dec 11, 2023
9cf3d3b
feat(test): more routing test cases
n-dusan Dec 12, 2023
74e9941
feat(test): progress on bootstrapping data repositories in archive
n-dusan Dec 12, 2023
b38529a
refact: derive `Default` trait
n-dusan Dec 13, 2023
54ad453
refact: make filesystem paths in data repositories explicit
n-dusan Dec 13, 2023
c5fedd7
refact: simplify initialization of data repositories
n-dusan Dec 13, 2023
7bbd353
feat: work on initializing repositories.json
n-dusan Dec 13, 2023
7496481
refact: fix `repositories` deserialization
n-dusan Dec 14, 2023
a954fe3
feat: fix basic actix api tests in an archive
n-dusan Dec 14, 2023
21c3716
feat: add `.pdf` tests
n-dusan Dec 18, 2023
6cddbd0
docs: add module level docstring
n-dusan Dec 18, 2023
a4b9c40
fix: add another basic route
n-dusan Dec 18, 2023
d41a5c7
feat: initial work on root stele and dependent stele
n-dusan Dec 18, 2023
0abeab4
fix: remove unnecessary code
n-dusan Dec 19, 2023
dac1057
fix: make struct fields public
n-dusan Dec 19, 2023
72f14b1
feat(test): test routing without trailing slash
n-dusan Dec 19, 2023
6d1b91c
feat(test): support for initializing root and dependent stele
n-dusan Dec 19, 2023
2437064
feat(test): add tests for root and dependent stele
n-dusan Dec 19, 2023
d20de27
feat: add module docstring
n-dusan Dec 25, 2023
e75fbdb
feat: support for custom stelae header
n-dusan Dec 25, 2023
b3f8719
refact: bump `rust-version`
n-dusan Dec 25, 2023
496f0ff
feat: add support for serving guarded documents
n-dusan Dec 25, 2023
c01a782
fix(test): remove unnecessary arguments
n-dusan Dec 25, 2023
fc6b295
refact(test): re-use add dependency code
n-dusan Dec 26, 2023
c9913b1
feat(test): init multihost stele in archive
n-dusan Dec 26, 2023
8226736
feat(test): add initial multihost tests
n-dusan Dec 26, 2023
6d110fa
fix(test): set `git2` config `user.name` and `user.email`
n-dusan Dec 26, 2023
b9f1389
fix: parse `repositories.json` and `dependencies.json` from the latest
n-dusan Dec 28, 2023
b8e512b
refact: remove scripts
n-dusan Dec 28, 2023
2b1ab48
refact: reorganize testing modules, move non-public code to
n-dusan Dec 28, 2023
748dcb1
chore: remove unused code
n-dusan Dec 28, 2023
46ad21b
refact: rename to `mod.rs`
n-dusan Dec 28, 2023
0dc66e0
chore: fix linting issues
n-dusan Dec 28, 2023
106308c
chore: clippy
n-dusan Dec 28, 2023
b61a7f1
refact: rewrite without unwrap
n-dusan Dec 30, 2023
05bb27d
refact: rewrite function to return reference to repository
n-dusan Dec 30, 2023
9e0fc18
refact: fix clippy lints
n-dusan Dec 30, 2023
1b0abfe
refact: rewrite without using unwrap
n-dusan Dec 30, 2023
4a623c8
refact: clippy fixes, improve error handling
n-dusan Dec 30, 2023
496a0f8
fix: remove unused code
n-dusan Dec 30, 2023
1b51981
fix: clippy fixes
n-dusan Dec 30, 2023
30ca088
refact: use `actions/checkout@v4`
n-dusan Jan 1, 2024
6f4716b
refact: transition from deprecated `actions-rs/toolchain` to `dtolnay…
n-dusan Jan 1, 2024
9996284
refact: pin clippy version based on `rust-version`
n-dusan Jan 1, 2024
d5b716e
refact: move repo and fallback blob to `find_current_blob`, add
n-dusan Jan 1, 2024
be97f41
fix: update imports, not finding some paths is not an error
n-dusan Jan 1, 2024
80c41b2
refact: update docstring
n-dusan Jan 1, 2024
003d663
refact: move route initialization to separate functions and document
n-dusan Jan 1, 2024
c7f6c5b
refact: deduplicate and simplify registering routes
n-dusan Jan 1, 2024
e62886a
docs: update docstring
n-dusan Jan 1, 2024
9e30f5f
fix: delete unwanted .vscode settings, update .gitignore
n-dusan Jan 2, 2024
ab634da
fix: remove unwanted fixtures
n-dusan Jan 2, 2024
14ad04a
refact: use format string interpolation
n-dusan Jan 24, 2024
f6598b6
refact: use `into` instead of `to_owned` for Strings
n-dusan Jan 24, 2024
ee1656a
refact: separate json deserialization visitors into own functions
n-dusan Jan 24, 2024
be9303c
fixup: add docstrings
n-dusan Jan 24, 2024
42823ac
refact: use nextest for ci testing
n-dusan Jan 24, 2024
b70680a
chore: remove typo
n-dusan Jan 25, 2024
08cd60a
refact: add documentation test for json serialization
n-dusan Jan 25, 2024
a6ac3f8
refact: update nextest to also run doc tests
n-dusan Jan 25, 2024
3588b48
refact(test): convert default paths str into owned vec elements
n-dusan Jan 25, 2024
aa4168b
refact(test): avoid unnecessary lifetimes and cow
n-dusan Jan 25, 2024
1086f98
refact: rename parameter for `fix_unc_path` fn
n-dusan Jan 26, 2024
801ec43
refact(test): use `is_none` instead of if let None`
n-dusan Jan 26, 2024
88dc3c8
refact(test): use PathBuf for paths instead of Strings
n-dusan Jan 26, 2024
cf8cf6e
fix(test): untrack git logs and hooks, add gitignore
n-dusan Jan 26, 2024
fd3a3ed
fix(bench): fix git benchmark
n-dusan Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# production release
- uses: taiki-e/create-gh-release-action@v1
with:
Expand All @@ -37,7 +37,7 @@ jobs:
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Install NuShell
uses: hustcer/setup-nu@v3
env:
GITHUB_TOKEN: ${{ secrets.STELAE_GITHUB_TOKEN }}

- name: Install Just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.STELAE_GITHUB_TOKEN }}

- name: Run tests
run: just test
- uses: taiki-e/install-action@v1
with:
tool: nextest
- name: Run tests (nextest)
run: just nextest

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@1.70 # Pin based on current `rust-version` in Cargo.toml. IMPORTANT: Upgrade version when `rust-version` changes.
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy

- name: Install Just
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/target
# VS Code settings
.vscode/

!.vscode/settings.json
Loading
Loading