Giacomo Leidi
6bd2d606df
Store notifications. ( #180 )
2023-05-22 13:00:37 +02:00
Giacomo Leidi
3874acf247
Failures ( #183 )
...
* Update beautifulsoup4 to 4.11.
* Update docker image.
* Add type annotations.
* Publish where you can and notify errors.
* Add tests for partial publishing.
2023-05-22 12:53:32 +02:00
Simone Robutti
370e00d187
decouple dataclasses from models ( #181 )
...
* fixed parsing bug
* implemented events and publications endpoints
split endpoints by entity
removed credentials
* add pagination (#179 )
* added pagination
* integrated pagination with tortoise
* added test for publications
* removed converter file
* moved publications to dataclasses module
* implemented import pattern on dataclasses to prevent circular imports
* removed redundant fetch
* removed unused query
* split build_publications
* split failed_publications
* removed redundant query functions
* split publication retrieve
* split all read functions
* removed redundant write function
* fixed lock
2022-12-11 14:15:04 +01:00
Simone Robutti
ddc706e201
Add publication crud ( #178 )
...
* fixed parsing bug
* implemented events and publications endpoints
split endpoints by entity
removed credentials
* add pagination (#179 )
* added pagination
* integrated pagination with tortoise
* added test for publications
* removed converter file
* updated dependencies
2022-12-07 21:46:57 +01:00
Simone Robutti
63a30bb483
refactor coordinators ( #171 )
...
* introduced CommandConfig object
* added dry_run for start command
* added test to start_dry_run
* added dry_run recap
* fixed import
* improved printing
* fixed zulip debug info
* improved recap dry-run print
* moved coordinator classes into dedicated package
* removed unused init
* divided event coordinators from recap coordinators
* added some docstrings
2022-09-24 16:46:03 +02:00
Giacomo Leidi
4ce6c7b171
Update dependencies. ( #170 )
...
* Update Guix commit.
* Update dependencies
* Drop CONNECTION_NAME hack.
2022-07-26 22:23:47 +02:00
Giacomo Leidi
529f83825e
Pave the way for using only EventPublications outside of storage module. ( #149 )
...
* Move `EventPublication.from_orm` to `storage.query.converter`.
Co-authored-by: Simone Robutti <simone.robutti@protonmail.com>
2022-02-23 17:26:13 +01:00
Simone Robutti
f0a7449336
rework maintenance cli ( #140 )
...
* added default
* moved object before verb
* added event retry
* added publication_retry
* renamed inspect to list
* fixed retry publication
* fixed retry event and structure
2022-02-14 21:10:27 +01:00
magowiz
45802ecbdd
Feature/optimizing download ( #118 )
...
* add column last_update_time
* save last_update_time in event db record
* use id + updatedAt for comparison instead of mobilizon_id, this will treat updated events like new ones
* rework event selection/comparison to include unpublished with updates to ones need to be saved
* added update for unpublished events
* tests: test_update: Add create_unpublished_events tests.
* Move `MobilizonEvent.to_model` to `storage.query`
* Move `MobilizonEvent.from_model` to `storage.query`
* Move `MobilizonEvent.compute_status` to `storage.query`
* Move `publishers.exception.EventNotFound` to `storage.query.exceptions`
2022-02-09 00:54:56 +01:00
Simone Robutti
5bce70b4a1
retry command ( #119 )
...
* added failed publication retrieval
* completed retry command
* added more error handling
* added atomic to query
2022-01-04 21:35:43 +01:00
Giacomo Leidi
1efa191771
Query refactoring ( #102 )
...
* Rename query modules.
* storage: save_publication_report: Create publications.
* Remove placeholder PublicationStatus.UNSAVED
* Minor fixes.
2021-11-24 23:58:06 +01:00