Giacomo Leidi
fa6badcc01
Enable publishing events by UUID.
2023-07-16 13:22:47 +02:00
Giacomo Leidi
bf3170cb6f
Decouple DB instantiation from logger instantion. ( #188 )
2023-07-11 22:24:56 +02:00
Giacomo Leidi
ff7567dc1b
Update docker image.
2023-07-11 19:20:08 +02:00
Giacomo Leidi
f16cffa44e
Update Guix channel references.
2023-07-11 17:23:21 +02:00
Giacomo Leidi
7bcb374891
scripts/scheduler.py: Pass dry_run configuration.
2023-07-11 15:50:12 +02:00
Giacomo Leidi
b17dc556d7
Fix scheduler.
2023-07-11 15:23:40 +02:00
Giacomo Leidi
201e259d37
Update CI
2023-07-11 02:19:01 +02:00
Giacomo Leidi
9744f436ae
Update build_docker_image.sh.
2023-07-11 01:50:19 +02:00
Giacomo Leidi
34ebd8f982
Update release.yml
2023-06-11 00:07:35 +02:00
Giacomo Leidi
aaff82fe98
Update .envrc.
2023-06-10 23:34:12 +02:00
Giacomo Leidi
1c7e3c7ed5
Update docker-compose.yml
2023-06-10 23:31:04 +02:00
Giacomo Leidi
c40a7aca35
Release v0.3.5.
2023-06-10 23:27:34 +02:00
Giacomo Leidi
4757cc6ec8
Hotfix release script
2023-06-10 23:24:59 +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
Giacomo Leidi
6b72b2630f
Update tweepy to 4.13.
2023-04-18 01:16:16 +02:00
Giacomo Leidi
28446c3401
Update .envrc.
2023-01-03 18:55:50 +01:00
Giacomo Leidi
1d3e5047e8
Update development-environment-with-guix.md
2023-01-03 18:54:19 +01:00
Giacomo Leidi
1c9a95db84
Update development-environment-with-guix.md
2023-01-03 16:46:35 +01:00
Giacomo Leidi
1678e836c9
Update development-environment-with-guix.md
2023-01-03 16:42:19 +01:00
Giacomo Leidi
a445eedaea
Switch to TWC DockerHub account ( #182 )
2022-12-20 22:36:38 +01: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
081ca87857
Update dependencies. ( #177 )
2022-11-13 14:31:03 +01:00
Giacomo Leidi
cf9ffd2149
query: Add get_event_publications.
2022-10-26 00:43:25 +02:00
Giacomo Leidi
04f29e37e4
Drop Guix CI for master and PRs. ( #176 )
2022-10-20 19:16:57 +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
2d328a30bf
Update development-environment-with-guix.md
2022-08-16 01:04:51 +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
b6e203577e
add dry run ( #172 )
...
* 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-25 19:26: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
9810c9d5a5
Move Guix packages to a channel. ( #168 )
...
* Move Guix packages to a channel.
This patch moves the core Mobilizon Reshare package definition to
https://github.com/fishinthecalculator/mobilizon-reshare-guix .
2022-05-26 22:46:59 +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
Giacomo Leidi
a9b90be963
Hotfix release script.
2022-04-19 21:52:45 +02:00
Simone Robutti
94c85d8b48
introduce locale ( #165 )
...
* introduced locale option
* added tests
2022-04-11 18:13:35 +02:00
Giacomo Leidi
4e40a1979e
Add completion scripts. ( #166 )
2022-04-11 08:36:10 +02:00
Giacomo Leidi
5f51d68c82
Release v0.3.0.
2022-04-04 11:35:24 +02:00
Giacomo Leidi
05a8c9d5b0
Update docker-compose.yml
2022-03-30 21:21:31 +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
af45f2b5ea
Run CI for pull requests. ( #159 )
2022-03-13 21:51:25 +01:00
Giacomo Leidi
f8a614750c
Upstream python-tweepy. ( #155 )
...
* Upstream python-tweepy.
* Update requests to 2.26.
* Remove python-requests-2.25 as it's not needed.
* Add guide to update dependencies.
* Fix link.
2022-03-12 11:29:56 +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
8b81ceedd0
Merge pull request #154 from Tech-Workers-Coalition-Italia/set_timezone
...
set timezone
2022-03-04 10:57:01 +01:00
Simone Robutti
dae9dfd889
set timezone to CUT
2022-03-04 10:56:20 +01:00