Commit graph

3,635 commits

Author SHA1 Message Date
Goffi
fe502fc0fc merge branche "@" 2021-08-28 15:32:58 +02:00
Goffi
547eb9feba bridge: bridge can now be set using environment variable:
The `LIBERVIA_BRIDGE_NAME` environment variable can now be used to specify the bridge to
use. If set and different from empty string, the environment has precedence over config
file value.

For `pb` bridge, the following environment variable can also be used:

- LIBERVIA_BRIDGE_PB_CONNECTION_TYPE
- LIBERVIA_BRIDGE_PB_HOST
- LIBERVIA_BRIDGE_PB_PORT
2021-08-28 15:26:02 +02:00
Goffi
ca76ef0708 install (setup): modified sat_tmp version specifier to also match 0.9.dev0 2021-08-27 15:27:14 +02:00
Goffi
404a2820cf doc: minor typo 2021-08-27 14:59:47 +02:00
Goffi
436696f28c merge branche "@" 2021-08-27 14:51:40 +02:00
Goffi
a6bf268df0 tests (run_e2e): update tmp dir prefix following name change 2021-08-27 14:48:39 +02:00
Goffi
506368275a tools (common/date_utils): parse now alone (when used without relative delta) 2021-08-27 14:48:38 +02:00
Goffi
165cd02ead doc (configuration): add public_url in config sample 2021-08-27 14:48:29 +02:00
Goffi
29dd678af9 doc (overview): comment mentions of web app (not relevant anymore, for now) + web frontend name change 2021-08-27 14:46:56 +02:00
Goffi
c8572b8f21 CLI: fix section used for config following name change 2021-08-27 14:46:52 +02:00
Goffi
92f81a1d16 install (setup): update sat_tmp version 2021-08-27 08:49:45 +02:00
Goffi
465d836127 tests: pubsub cache tests 2021-08-02 21:52:17 +02:00
Goffi
e89b5f6e79 tests: unit tests preparation with some fixtures 2021-08-02 21:52:17 +02:00
Goffi
405a819487 misc: add a dev-requirements.txt file 2021-08-02 21:52:17 +02:00
Goffi
cb0223b5ab core (memory/sqla): minor docstring line lenght fix 2021-08-02 21:52:17 +02:00
Goffi
972e96bf04 plugin text syntaxes: remove side effect on init:
When text syntaxes was initialised, `syntaxes` dict was filled, but it was a class
attribute. As a result, re-initialising it (which may happen for tests, and maybe in the
future dynamically), was not starting with an empty dict, but with an already-filled one,
resulting in conflicts.

This patch fixes it by moving `syntaxes` to an instance attribute.
2021-08-02 21:52:17 +02:00
Goffi
6fa6f7a1f8 plugin pubsub cache: use asDeferred with match_cb 2021-08-02 21:52:17 +02:00
Goffi
1d6cead380 jp (pubsub/cache/purge): fix conflict with subtype short option 2021-08-02 21:52:17 +02:00
Goffi
e6e77c7770 plugin XEP-0059: don't show warning message when <last> is missing if there is not message 2021-08-02 21:52:17 +02:00
Goffi
da5876c292 misc: update VERSION 2021-08-02 21:51:55 +02:00
Goffi
52f3532917 merge branch "@" 2021-08-02 21:49:51 +02:00
Goffi
cf5213d4fe plugin XEP-0346: fix deprecated import 2021-08-02 21:47:22 +02:00
Goffi
4348af32f2 docker: fix Dockerfile following repositories redirections 2021-08-02 21:47:16 +02:00
Goffi
bd25717a7d doc (cli/pubsub): document pubsub cache management commands 2021-07-29 22:51:01 +02:00
Goffi
57478c869f doc (cli/pubsub/delete): update doc following notification option change 2021-07-29 22:51:01 +02:00
Goffi
907277e422 doc (cli/pubsub/get): fix option in example:
`-M` (legacy max items) must be used here to retrieve **last** items
2021-07-29 22:51:01 +02:00
Goffi
bdfa48220d doc (cli/common): time pattern 2021-07-29 22:51:01 +02:00
Goffi
7f3e7635a9 doc (cli/common): explain the new -C, --no-cache option 2021-07-29 22:51:01 +02:00
Goffi
b689b9fa10 doc (configuration): add pubsub_cache_strategy option 2021-07-29 22:51:01 +02:00
Goffi
c3b36a4245 doc: developer documentation explaining storage and pubsub cache 2021-07-29 22:51:01 +02:00
Goffi
198d103896 doc: activate autodoc extension + extension to adapt Libervia docstring style to autodoc 2021-07-29 22:51:01 +02:00
Goffi
0caebd3803 frontends (tools/misc): FlagsHandler.__getitems__ now returns attribute 2021-07-29 22:51:01 +02:00
Goffi
60fe49f883 tools (common/async_process): remove useless encoding + use full path for command:
- arguments don't need to be encoded anymore, `spawnProcess` handles str directly now
- use full path even for first argument: even if first argument should be only executable
  name, it appears that using full path only in `command` is not enough (seen with Python
  where system installation is used instead of the VirtualEnv one when full path is not
  used as first argument).
2021-07-29 22:51:01 +02:00
Goffi
47968678a6 jp (pubsub): new cache subcommand with commands to get, sync, purge and reset pubsub cache 2021-07-29 22:51:01 +02:00
Goffi
02727e26d9 jp (pubsub/delete): make notification the default, --notify option is replaced by --no-notification 2021-07-29 22:51:01 +02:00
Goffi
d10ce3ad7a jp (base): add flag for use_pubsub to add cache skipping option 2021-07-29 22:51:01 +02:00
Goffi
aab8a38836 tools (common/date_utils): accept more units (shortcuts) + fix timezone when date with relative delta is used 2021-07-29 22:51:01 +02:00
Goffi
35bfb8b8b7 plugin XEP-0277: pubsub cache analyser implementation 2021-07-29 22:51:01 +02:00
Goffi
92c0c09eb2 plugin pubsub cache: Pubsub Caching implementation 2021-07-29 22:51:01 +02:00
Goffi
53a77a4c71 core (memory/sqla): generic methods to add and delete ORM objects directly 2021-07-29 22:51:01 +02:00
Goffi
85ea69c3c3 core (memory/sqla): methods to manipulate pubsub tables 2021-07-29 22:51:01 +02:00
Goffi
fdc44cdd49 migration: script to create pubsub caching tables 2021-07-29 22:50:57 +02:00
Goffi
4fb32ced31 core (memory/sqla_mapping): mapping for PubsubNode and PubsubItem (will be used for caching) 2021-07-29 21:38:37 +02:00
Goffi
577a81c936 plugin XEP-0059: new getNextRequest method to generate request to retrieve next page 2021-07-29 21:30:32 +02:00
Goffi
a7bae11831 plugin XEP-0277: ignore max_items if rsm_request is set 2021-07-29 21:28:48 +02:00
Goffi
91faf66b36 plugin XEP-0060: fix notification handling in retractItems 2021-07-29 17:28:02 +02:00
Goffi
5dcbd8eeef plugin XEP-0060: add trigger points 2021-07-29 17:26:59 +02:00
Goffi
9ef1f7a1f8 plugin XEP-0060: events callbacks can now be sync or async 2021-07-29 17:10:36 +02:00
Goffi
42979a7140 plugin XEP-0060: handle purge notifications 2021-07-29 15:54:54 +02:00
Goffi
f2a06bbcbf plugin XEP-0060: getItems extra is now serialised dict 2021-07-28 23:01:15 +02:00