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

Refactor replication API #184

Merged
merged 29 commits into from
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
97a4915
Remove all before we put it back in again
adzialocha Jun 30, 2022
db7395b
Add replication_service dummy
adzialocha Jun 30, 2022
5de5468
Update params and fields for GraphQL client API
adzialocha Jun 30, 2022
373ea10
Attempt to write better GraphQL query descriptions
adzialocha Jun 30, 2022
9d22a68
WIP: Introduce scalars module
adzialocha Jun 30, 2022
f6e5396
Add some more scalars
adzialocha Jun 30, 2022
7e2b1da
Move u64 string representation into scalars
adzialocha Jun 30, 2022
5799bb9
Remove unnecessary serde attribute
adzialocha Jun 30, 2022
2cb58b8
Implement other replication API methods
adzialocha Jun 30, 2022
44e9cb7
Rename params and add descriptions
adzialocha Jun 30, 2022
263b6a1
Add test
adzialocha Jun 30, 2022
9d073a6
Add a test for entry_by_hash, return error when not found
adzialocha Jun 30, 2022
07423ef
Add a test for entry_by_log_id_and_seq_num, return error when not found
adzialocha Jun 30, 2022
a129845
Bring back replication client and service
adzialocha Jun 30, 2022
ece2cdb
Make clippy happy
adzialocha Jun 30, 2022
9649d27
Add entry to CHANGELOG.md
adzialocha Jun 30, 2022
774e988
Update dependencies
adzialocha Jun 30, 2022
d927aae
Fix all dependencies
adzialocha Jun 30, 2022
099f32c
Move structs implementing request traits into db module
adzialocha Jul 1, 2022
8e86020
Rename to pagination module
adzialocha Jul 1, 2022
0ecf442
Make fmt happy
adzialocha Jul 1, 2022
34fab9f
Add certificate_pool resolver and test for it
adzialocha Jul 1, 2022
bc926be
Roll back async-graphql to version 3.0.38
adzialocha Jul 1, 2022
22cdcd9
Use scalars for Client API as well
adzialocha Jul 1, 2022
28faa8e
Use rust version 1.61.0 to prevent async-graphql bug
adzialocha Jul 1, 2022
edb1680
Rename query to be consistent with naming
adzialocha Jul 1, 2022
24cbb26
Access the seq_num directly on StorageEntry
sandreae Jul 1, 2022
f6d1f2d
Remove unneeded import
adzialocha Jul 1, 2022
464716f
Add a note on fixed Rust version for CI
adzialocha Jul 1, 2022
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
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ env:
target
~/.cargo
cargo_manifest: aquadoggo/Cargo.toml
# There is an issue with `async-graphql` or Rust which randomly lets our
# tests fail. With this Rust version and async-graphql 3.0.38 it seems to
# work for now though.
# Related issue: https://github.com/p2panda/aquadoggo/issues/185
rust_version: 1.61.0

jobs:
rust-test-sqlite:
Expand All @@ -21,7 +26,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
override: true

- name: Restore from cargo cache
Expand Down Expand Up @@ -74,7 +79,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
override: true

- name: Restore from cargo cache
Expand Down Expand Up @@ -106,7 +111,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
override: true

- name: Restore from cargo cache
Expand All @@ -132,7 +137,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
components: rustfmt
override: true

Expand All @@ -159,7 +164,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
components: clippy
override: true

Expand All @@ -186,7 +191,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: ${{ env.rust_version }}
override: true

- name: Restore from cargo cache
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use `VerifiedOperation` [#158](https://github.com/p2panda/aquadoggo/pull/158)
- Refactor `test_db` helper method [#176](https://github.com/p2panda/aquadoggo/pull/176)
- Update `publishEntry` params and `nextEntryArgs` response fields [#181](https://github.com/p2panda/aquadoggo/pull/181)
- Refactor scalars and replication API, replace `graphql-client` with `gql_client` [#184](https://github.com/p2panda/aquadoggo/pull/184)

### Fixed

Expand Down
Loading