Skip to content

Feature: SQLite-based Message Cache #31

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

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
86df08f
Feature : AlephDNS (#47)
1yam Aug 25, 2023
ba9f876
Problem: @app.on_event("startup") would not be triggered on uvicorn s…
MHHukiewitz Apr 19, 2023
d046703
simplify branching
MHHukiewitz Apr 19, 2023
b216d38
add peewee/sqlite-based message cache DB
MHHukiewitz May 21, 2023
2b65f74
implement cache
MHHukiewitz May 22, 2023
4551ab5
improve test and batch caching
MHHukiewitz May 22, 2023
7c1751a
add cache input stream
MHHukiewitz May 22, 2023
3377730
fix formatting
MHHukiewitz May 22, 2023
1f667ff
clean up imports
MHHukiewitz May 22, 2023
6630e55
add query method to cache
MHHukiewitz May 23, 2023
fd9cefa
change default cache DB to :memory:
MHHukiewitz May 23, 2023
056bb48
fix formatting
MHHukiewitz May 23, 2023
e2038b0
create interface from AlephClient and let MessageCache implement it
MHHukiewitz May 24, 2023
d33c2f0
fix mypy error
MHHukiewitz May 30, 2023
4ee541f
add node
MHHukiewitz May 30, 2023
40200bb
refactor interface; implement node methods; add download_file() metho…
MHHukiewitz May 30, 2023
a938d79
add peewee to testing requirements
MHHukiewitz Jun 6, 2023
6781bae
fix ProgramMessage parsing
MHHukiewitz Jun 6, 2023
08104c2
fix formatting
MHHukiewitz Jun 6, 2023
7be2eeb
implement suggestions: use JSONField, annotate types, rename interfac…
MHHukiewitz Jun 7, 2023
ad2af12
fix formatting and node.py
MHHukiewitz Jun 7, 2023
5b7a5fb
Update src/aleph/sdk/conf.py
MHHukiewitz Jun 6, 2023
6c686b5
allow iterables
MHHukiewitz Jun 7, 2023
d19175f
fix CACHE_DATABASE_PATH usage
MHHukiewitz Jun 7, 2023
2f30800
close DB connection when all Cache instances are deleted
MHHukiewitz Jun 21, 2023
02ff4d0
fix MessageCache.listen_to()
MHHukiewitz Aug 12, 2023
db33997
fix formatting
MHHukiewitz Aug 12, 2023
73f0bbe
fix formatting
MHHukiewitz Aug 12, 2023
207aaa1
fix cache and increase test coverage for cache.py and node.py
MHHukiewitz Aug 15, 2023
2f2e07d
increase test coverage, add CACHE_FILES_PATH to settings
MHHukiewitz Aug 15, 2023
634e927
move MessageCache to node.py for clearer naming and less ambiguity
MHHukiewitz Aug 15, 2023
6cd9aef
fix compatibility with python < v3.10
MHHukiewitz Aug 17, 2023
0a44e9d
add PostsResponse; harmonize get_messages and watch_messages paramete…
MHHukiewitz Aug 23, 2023
af810a2
fix code quality issues from previous PRs
MHHukiewitz Aug 28, 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 .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ exclude_lines =
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

# Don't complain about ineffective code:
pass
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ testing =
black
isort
flake8
aiodns
peewee
mqtt =
aiomqtt<=0.1.3
certifi
Expand All @@ -103,6 +105,8 @@ ledger =
ledgereth==0.9.0
docs =
sphinxcontrib-plantuml
cache =
peewee

[options.entry_points]
# Add here console scripts like:
Expand Down
Loading