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

Improved configuration API with TOML file #519

Merged
merged 67 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
13d39fa
Add announce message type
adzialocha Aug 20, 2023
eaf8534
Add announcement state to peer table
adzialocha Aug 20, 2023
4455216
Refactor schema provider as the list of schemas is already filtered
adzialocha Aug 20, 2023
467193c
Remove broken test, code will change anyhow soon
adzialocha Aug 20, 2023
4c3b3c3
Fix test after changing message types
adzialocha Aug 20, 2023
902771c
Filter schema ids directly in provider
adzialocha Aug 20, 2023
2456937
Make distinction clearer between whitelisting and supporting schema ids
adzialocha Aug 20, 2023
da37007
Make clippy happy
adzialocha Aug 20, 2023
99ad83a
Generate new announcement state on first run and when provider updates
adzialocha Aug 20, 2023
9cd83e8
Move Announcement struct into separate file
adzialocha Aug 20, 2023
db44c98
Our own target set should always be valid
adzialocha Aug 20, 2023
d631d00
Introduce a peer message type for messages outside of replication
adzialocha Aug 20, 2023
713892d
Update doc string
adzialocha Aug 20, 2023
95174b7
Struct and serde for announce messages
adzialocha Aug 20, 2023
2ec3b95
It's actually okay to send an empty target set
adzialocha Aug 20, 2023
4ca4a83
Check if sync request message has a non empty target set
adzialocha Aug 20, 2023
db001ca
Add a test for checking against empty target sets
adzialocha Aug 20, 2023
63456ee
Send announcement state to all peers which are not informed yet
adzialocha Aug 20, 2023
d33582c
Update peer status on incoming announcement
adzialocha Aug 20, 2023
ee5b901
Rename variable
adzialocha Aug 20, 2023
e988033
Calculate intersection between target sets of two peers
adzialocha Aug 20, 2023
1bcb122
Add entry to CHANGELOG.md
adzialocha Aug 20, 2023
3b123f3
Announcements contain the replication protocol version
adzialocha Aug 20, 2023
c2975a3
Silently ignore peers with unsupported protocol version
adzialocha Aug 20, 2023
6da5127
Test serde for announcement messages
adzialocha Aug 20, 2023
c25fdcc
Update routine which gets executed on every established new connectio…
adzialocha Aug 20, 2023
4865adf
Update timestamp when sending announcement to peer
adzialocha Aug 20, 2023
55673cd
Correctly check if remote target set is valid in sync request
adzialocha Aug 20, 2023
dace66d
Temporary fix to account for different message types
adzialocha Aug 20, 2023
331f9c1
Fix validating target sets
adzialocha Aug 20, 2023
24af91a
Update test
adzialocha Aug 20, 2023
40a21a2
Also test receiving external announcement
adzialocha Aug 20, 2023
5799686
Improve panic message, fix another test
adzialocha Aug 20, 2023
1e6a86c
Better CHANGELOG.md entry
adzialocha Aug 21, 2023
4f8eb16
Give announce messages a type as well so serde can distinct the variants
adzialocha Aug 22, 2023
5dda823
Update tests
adzialocha Aug 22, 2023
0b8bea2
Remove data dir, rename fields, introduce schema id enum in config
adzialocha Aug 22, 2023
2b8c6ea
Introduce new config.toml file
adzialocha Aug 22, 2023
3c52f61
Better config field names, rename struct to WildcardOption
adzialocha Aug 22, 2023
6b65fc3
New command line arguments, find config file automatically
adzialocha Aug 22, 2023
f90765a
Fix tests
adzialocha Aug 22, 2023
47b3545
Pandada
adzialocha Aug 22, 2023
3938a6c
Fix naming of allow lists and database url
adzialocha Aug 23, 2023
075ee51
Rename to im_a_relay
adzialocha Aug 23, 2023
3f5cc8a
Make relay singular
adzialocha Aug 23, 2023
d51304f
Add some todos
adzialocha Aug 23, 2023
595bada
Rename to direct_node_addresses
adzialocha Aug 24, 2023
56da144
Update config.toml after renaming field
adzialocha Aug 24, 2023
92d9c1c
Allow wildcard strings in config.toml, fix issue with clap overriding…
adzialocha Aug 24, 2023
8b86a78
Add a doc string
adzialocha Aug 24, 2023
ac00d92
Remove unnecessary serde code for AllowList
adzialocha Aug 24, 2023
f48d5be
We already generate a path for keys
adzialocha Aug 24, 2023
5296668
Always show absolute path of config file, whatever comes
adzialocha Aug 24, 2023
eeb91ef
Show basic config and all addresses on startup
adzialocha Aug 24, 2023
f92595e
Correct print config when empty array
adzialocha Aug 24, 2023
c3e18e6
Allow --mdns and --relay-flag args to be used without bool value
adzialocha Aug 25, 2023
acda725
Allow use of wildcard strings in --supported-schema-ids argument
adzialocha Aug 25, 2023
41822dd
Rename to allow-schema-ids config
adzialocha Aug 25, 2023
341b0da
Make sure to not print doc string in about section
adzialocha Aug 25, 2023
5604862
Improve texts
adzialocha Aug 25, 2023
0fe626b
Empty string should lead to empty array
adzialocha Aug 25, 2023
d7c8149
Show warnings to user for some configs
adzialocha Aug 25, 2023
b537329
Minor nice change
adzialocha Aug 25, 2023
b1ca15e
Remove usage section for now in README.md
adzialocha Aug 25, 2023
626277c
Add entry to CHANGELOG.md
adzialocha Aug 25, 2023
4e0a167
Merge branch 'main' into config-galore
adzialocha Aug 25, 2023
c2804b9
Fix merge
adzialocha Aug 25, 2023
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
target/
debug/

# Config files
config.toml
!aquadoggo_cli/config.toml

# IDE
.vscode
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Only replicate and materialize configured "supported schema" [#569](https://github.com/p2panda/aquadoggo/pull/469)
- Parse supported schema ids from `config.toml` [#473](https://github.com/p2panda/aquadoggo/pull/473)
- Fix relayed connections, add DCUtR Holepunching and reduce CLI args [#502](https://github.com/p2panda/aquadoggo/pull/502)
- Announce supported schema ids in network before replication [#515](https://github.com/p2panda/aquadoggo/pull/515)

### Changed

Expand Down
Loading