Giacomo Leidi
056e0217aa
Release v0.3.6.
2023-07-16 15:33:26 +02:00
Giacomo Leidi
acce3a83fe
Enable publishing events by UUID. ( #187 )
2023-07-16 15:09:08 +02:00
Giacomo Leidi
775fb89cf6
telegram: Add support for topics. ( #184 )
2023-07-16 13:27:00 +02:00
Giacomo Leidi
bf3170cb6f
Decouple DB instantiation from logger instantion. ( #188 )
2023-07-11 22:24:56 +02:00
Giacomo Leidi
c40a7aca35
Release v0.3.5.
2023-06-10 23:27:34 +02:00
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
Giacomo Leidi
cf9ffd2149
query: Add get_event_publications.
2022-10-26 00:43:25 +02:00
Simone Robutti
44340fde8f
Introduced FastAPI and Postgres support ( #173 )
...
* added poc
* added check for sqlite db
* added events test
* draft docker-compose-test.yml
* improved docker-compose
* added support for postgres migrations
* add documentation
* added some qol to migrations
* added migration generation script
* removed settings.toml
* waiting for postgress in script
* commented script
* added sample web config
* fixed tests
* mock memory db
* reviewed PR
2022-10-14 22:11:27 +02: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
Simone Robutti
9d71ef36b9
add dry run ( #169 )
...
* 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
2022-07-12 07:39:56 +02:00
Giacomo Leidi
cf2fabefb4
Release v0.3.2.
2022-06-05 19:12:08 +02:00
Giacomo Leidi
b66c94c8a2
Add publish command. ( #167 )
...
* Add publish command.
* publish: Add tests.
* Add list-platforms and test-configuration.
* Update Guix dependencies.
* Move publishing of events and publications to retry.
2022-05-17 23:14:52 +02:00
Giacomo Leidi
7f3ce9a55a
Release v0.3.1.
2022-04-19 21:53:02 +02:00
Simone Robutti
94c85d8b48
introduce locale ( #165 )
...
* introduced locale option
* added tests
2022-04-11 18:13:35 +02:00
Giacomo Leidi
5f51d68c82
Release v0.3.0.
2022-04-04 11:35:24 +02:00
Giacomo Leidi
981fcf0486
Fix recap ( #161 )
...
* Drop dependency on python-telegram-bot, as it's not used.
* Align default templates.
This patch tries to bring some consistency to the default templates and
fixes some small bug in the output of some formatters.
2022-03-26 22:46:33 +01:00
Giacomo Leidi
002399161d
Pull publish ( #157 )
...
* Add pull command.
* Add publish command.
* Enforce start's old semantics.
* Add pull test cases:
- Pull with no events anywhere
- Pull with one event on mobilizon and none on the db
- Pull with one event on mobilizon and another on the db
- Pull with one event on mobilizon and the same event on the db
* Add pull tests:
- Sequence: pull->start
- Sequence: start->pull
- Sequence: pull->new event on mobilizon -> pull
* manifest.scm: Add cloc.
* query: read: Prefer return list to generators.
* tests: pull: Actually test that models are written to the DB.
2022-03-22 21:16:34 +01:00
Simone Robutti
3e7b9097a4
Update twitter.tmpl.j2 ( #160 )
...
* Update twitter.tmpl.j2
* Update twitter_recap.tmpl.j2
2022-03-15 21:52:14 +01:00
Giacomo Leidi
e558034194
Release v0.2.3.
2022-03-07 10:20:13 +01:00
Simone Robutti
1217b17326
fix event retry ( #152 )
...
* added twitter error handling
* added facebook tests
* added header format test
* added multiple newlines check
* added test list command
* fixed commands structure
* fixed event retry
* fixed publication retry
* added publication tests
* removed unused option
* fixed list begin/end window
* added test retry failures
* linting
* refactored sender
* added timezone freeze
* fixed facebook-sdk and beatifulsoup errors
2022-03-06 10:41:02 +01:00
Simone Robutti
f04942eefe
test commands ( #151 )
...
* added twitter error handling
* added facebook tests
* added header format test
* added multiple newlines check
* added test list command
* fixed commands structure
2022-03-02 08:59:57 +01:00
Simone Robutti
420f823dd4
platform tests ( #150 )
...
* added twitter error handling
* added facebook tests
* added header format test
* added multiple newlines check
2022-03-02 08:59:49 +01:00
Giacomo Leidi
db659e9cdc
Release v0.2.2.
2022-02-24 00:06:54 +01:00
Giacomo Leidi
5afbcd2192
Release v0.2.1.
2022-02-23 23:10:38 +01: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
bda4b8ee0d
fix timezone in test ( #145 )
...
* added timezone fixture
* Make output dependent on local timezone.
* Fix non deterministic behavior in html to text conversion.
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2022-02-22 11:28:16 +01:00
Simone Robutti
11de1e1213
fixed facebook format ( #142 )
2022-02-16 13:51:00 +01:00
Giacomo Leidi
e96ee55b48
Release v0.2.0.
2022-02-14 21:12:31 +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
Simone Robutti
ade3204c54
added default ( #138 )
2022-02-14 21:10:14 +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
Giacomo Leidi
ad8647704d
Add event name to notifications. ( #136 )
2022-02-05 18:46:48 +01:00
Simone Robutti
8c16812ed0
added scheduling ( #133 )
2022-01-27 20:54:14 +01:00
Giacomo Leidi
1f1ff2e5c2
Debug image ( #131 )
...
* config: get_settings_files_paths: Return first existing path.
* tests: Set SETTINGS_FOR_DYNACONF at import time.
* config: get_settings_files_paths: Log config path.
* manifest.scm: Add docker-compose.
* build_docker_image.sh: Allow building debug image.
* storage: db: Use the same configuration for Tortoise and Aerich.
* Distribuite migration queries.
* storage: implement_db_changes: Use pkg_resources.
2022-01-26 10:11:16 +01:00
Simone Robutti
5804b55dd8
Fix markdown cropping ( #128 )
...
* fixed error log
* changed telegram publisher to use HTML format
* fixed dataclass update issue
* docker: Add python-telegram-bot.
* docker: mobilizon-reshare: Reenable non deterministic tests.
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2022-01-18 01:39:00 +01:00
Simone Robutti
a0a1d43fa0
rework config ( #121 )
...
* simplified config behavior
* temp
* removed redundant tests
* removed publication window
* removed settings_file cli option
* add pre_test code, in order to set environment variables
* Revert "add pre_test code, in order to set environment variables"
This reverts commit 0d25f9313a
.
Co-authored-by: magowiz <magowiz@gmail.com>
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2022-01-08 00:54:27 +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
magowiz
86e698271c
add intermediate variable since aerich doesn't play nice with functions as configuration entrypoint
2021-12-18 12:54:09 +01:00
Simone Robutti
31da51b69b
Merge pull request #110 from magowiz/feature/aerich
...
Feature/aerich
2021-12-14 22:54:50 +01:00
magowiz
e836e51ee4
fixed exit on migration exception
2021-12-14 22:37:49 +01:00
Simone Robutti
58580e6f27
fixed cli
2021-12-14 20:30:08 +01:00
Simone Robutti
94904a8917
Merge pull request #109 from Tech-Workers-Coalition-Italia/inspect
...
cli: inspect: Refactor command.
2021-12-11 11:17:59 +01:00
Giacomo Leidi
f273873f67
docker: mobilizon-reshare: Upstream dynaconf. ( #115 )
2021-12-08 21:11:41 +01:00
Giacomo Leidi
a5737d91a8
cli: Move settings option to subcommands.
2021-12-08 13:32:45 +01:00
Simone Robutti
2c0b0fb46d
Merge pull request #113 from Tech-Workers-Coalition-Italia/telegram_log_error
...
telegram log error
2021-12-08 12:29:04 +01:00
magowiz
c27a18cc17
completed chain, handling exception
2021-12-07 16:58:12 +01:00