Simone Robutti
b0e88a9e1f
fixed missing whitespace ( #143 )
2022-02-16 15:54:10 +01:00
Simone Robutti
11de1e1213
fixed facebook format ( #142 )
2022-02-16 13:51:00 +01:00
Giacomo Leidi
9c44c8d730
Enforce the same dependencies in dev and prod. ( #141 )
...
This patch restores Guix' full sanity check, which runs the CLI
entrypoint to verify all required dependencies are present.
2022-02-16 12:23:31 +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
eeb9b04e3e
Update README.md
2022-02-06 22:29:39 +01:00
Giacomo Leidi
ad8647704d
Add event name to notifications. ( #136 )
2022-02-05 18:46:48 +01:00
Giacomo Leidi
3ef8b1f97b
Python scheduler docker image ( #134 )
...
* Move scheduler.py into scripts/ .
* docker: Python scheduler image.
* Update channels-lock.scm.
* Use tortoise 0.18.1 and aerich 0.6.2.
* Use fishinthecalculator/publish-docker-image-action@v0.1.10 .
* Make intervals configurable.
* Add platforms to README.md .
2022-02-05 18:46:02 +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
Giacomo Leidi
e109106af9
Use test script everywhere in the pipeline. ( #130 )
2022-01-24 22:34:52 +01:00
Simone Robutti
7aa1587b2b
moved run tests to script
2022-01-20 11:58:44 +01:00
Simone Robutti
994102c937
added timezone_sensitive marker ( #129 )
2022-01-20 11:30:11 +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
Giacomo Leidi
434438fd20
Add Docker Hub link to README.md. ( #127 )
2022-01-12 01:59:58 +01:00
Giacomo Leidi
3d704cc6b2
docker: Upstream python-markdownify. ( #126 )
2022-01-09 04:12:34 +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
Giacomo Leidi
352c49ca94
Rewrite README.md. ( #125 )
...
* Rewrite README.md.
This patch moves most information about the internals of
mobilizon-reshare to the manual to keep the README light and
easy to follow.
2022-01-07 23:49:36 +01:00
Giacomo Leidi
8569a903f1
Run CI tests for every push to master ( #123 )
...
* workflows: Separate release workflow from main.
2022-01-05 23:52:25 +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
43d653f37c
Update guix package definition after core-updates merge. ( #122 )
2022-01-03 20:14:31 +01:00
Simone Robutti
c63ff905e5
Merge pull request #117 from Tech-Workers-Coalition-Italia/fix/aerich
...
add intermediate variable since aerich doesn't play nice with functions as configuration entrypoint
2021-12-18 13:00:59 +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
6d84c26614
Revert "ignore pylintrc"
...
This reverts commit f8ace3fead
.
2021-12-14 22:47:51 +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
Simone Robutti
572821d24f
Merge pull request #111 from Tech-Workers-Coalition-Italia/test_new_event
...
added new test
2021-12-08 12:28:53 +01:00
magowiz
c27a18cc17
completed chain, handling exception
2021-12-07 16:58:12 +01:00
magowiz
f8ace3fead
ignore pylintrc
2021-12-07 16:54:17 +01:00
magowiz
42ffc25221
ignore test_run.sh
2021-12-07 12:10:44 +01:00
magowiz
e6f25178a5
handle aerich migrations not found
2021-12-07 12:10:32 +01:00
magowiz
681baed1d6
change first script name
2021-12-07 11:34:21 +01:00
magowiz
fa431c3775
remove test file
2021-12-05 18:43:28 +01:00
magowiz
87e0d8d77b
Merge branch 'feature/prova' into feature/aerich
2021-12-05 18:40:12 +01:00
magowiz
14bd3afa5b
move aerich conf to storage.db
2021-12-05 18:37:35 +01:00
Simone Robutti
5d9d556803
improved escape characters for telegram
2021-12-05 17:29:30 +01:00
magowiz
9080f26e1c
prova.txt
2021-12-05 17:28:47 +01:00
Simone Robutti
b26270eb9a
added log
2021-12-05 17:21:43 +01:00
magowiz
6cb1f3eedd
changed name of __implement_db_changes__ to _implement_db_changes and using logging facility for printing starting update database
2021-12-05 17:11:24 +01:00
Simone Robutti
7c39d94b48
added new test
2021-12-05 16:50:37 +01:00
magowiz
6538abcb1b
re-init
2021-12-04 20:26:16 +01:00
magowiz
f77e11fd9e
add aenrich with migration initialized and auto-upgrade on start
2021-12-04 19:34:00 +01:00
magowiz
b04b0ba923
add initial configuration, replace get_configuration with toml.load to avoid validation error on aerich init
2021-12-04 18:24:09 +01:00