Commit graph

3,683 commits

Author SHA1 Message Date
Goffi
aa4e6004e8 doc (components): base documentation for AP Gateway:
fix: 362
2021-09-26 16:41:58 +02:00
Goffi
76c98da073 comp AP Gateway: ActivityPub Component first draft:
this implement the base component, it is for the moment usable only through a developer
API.

rel: 362
2021-09-26 16:41:55 +02:00
Goffi
d7d40a6d50 merge bookmark @ 2021-09-26 16:41:49 +02:00
Goffi
3dd4a1e04f plugin XEP-0277: import SatXMPPEntity from core_types 2021-09-26 16:38:40 +02:00
Goffi
8eddf8c271 core (core_types): add jid to SatXMPPEntity 2021-09-26 16:38:34 +02:00
Goffi
8c9af32d56 doc: components documentation:
rel 362
2021-09-26 16:38:00 +02:00
Goffi
31985ed0fc component (file-sharing): use file-sharing instead of file_sharing:
a dash is used instead of underscore for entry-point and config section., as it is best
practice to use dash on command-line.
2021-09-26 16:35:56 +02:00
Goffi
3433657ccf jp (common): add neovim (nvim) default arguments 2021-09-26 16:35:49 +02:00
Goffi
041e877e48 merge bookmark @ 2021-09-08 18:00:02 +02:00
Goffi
33d452e0cc tests (e2e/CLI): tests for Pubsub Cache Search
fix 361
2021-09-08 17:58:48 +02:00
Goffi
4ca6c043ac core (memory/sqla): fix fileUpdate 2021-09-08 17:58:48 +02:00
Goffi
f40dbe8604 plugin XEP-0384: fix calls outside of main thread:
`callFromThread` is used instead of `callLater` with a 0 delay, as the later is not made
to be called outside of main thread (which was resulting in huge and random delays during
calls).

fix `OmemoStorage._callMainThread` which was returning wrong Deferred due a late lambda
evaluation.
2021-09-08 17:58:48 +02:00
Goffi
7c79ef4d94 docker (e2e): add pytest-twisted to image 2021-09-08 17:58:48 +02:00
Goffi
60526e6849 doc (cli/pubsub_cache): search command documentation:
rel 361
2021-09-08 17:58:48 +02:00
Goffi
65f8701648 doc (cli/pubsub_cache): add a warning for reset 2021-09-08 17:58:48 +02:00
Goffi
7a211da470 CLI (pubsub/cache): search implementation
rel 361
2021-09-08 17:58:48 +02:00
Goffi
44a54978b9 CLI: move format_time to common + add timezone 2021-09-08 17:58:48 +02:00
Goffi
d2ae4a124a plugin pubsub cache: implement psCacheSearch
rel 361
2021-09-08 17:58:48 +02:00
Goffi
247a5f1ea8 core (memory/slqa): implement getProfileById
rel 361
2021-09-08 17:58:48 +02:00
Goffi
6c400f14c6 memory (sqla): implement searchPubsubItems:
`searchPubsubItems` is a high level method to handle Full-Text Search queries on Pubsub
cache.

rel 361
2021-09-08 17:58:48 +02:00
Goffi
39bdd34d60 db (schema): create virtual table for FTS + migration
rel 361
2021-09-08 17:58:48 +02:00
Goffi
9753dd5354 tests (e2e): print revision used in run_e2e 2021-09-08 17:57:28 +02:00
Goffi
50d7cb2a51 merge bookmark @ 2021-09-08 11:20:37 +02:00
Goffi
9293c7259d tests (e2e/cli): update JSON and XML outputs following changes in Libervia CLI 2021-09-08 11:18:01 +02:00
Goffi
29e76c1adb test (e2e/cli): use max_items instead of max when retrieving blog items:
RSM `max` alone will return first (oldest) items, while `max_items` will return latest
ones. As Libervia Pubsub as been fixed in this regard, tests are now fixed too.
2021-09-08 11:17:51 +02:00
Goffi
6b2e0649a3 tests (e2e/web): fix test files paths following global name change 2021-09-08 11:17:43 +02:00
Goffi
debbdba8eb tests (e2e): fix names in run_e2e script, following global name change. 2021-09-08 11:17:34 +02:00
Goffi
fb310c104c plugin misc file: fix getDestDir returning a Deferred in a coroutine 2021-09-08 11:17:19 +02:00
Goffi
47d258e841 plugin android: use callFromThread instead of callLater:
`callLater` is not made to be called outside of main thread, `callFromThread` is the
method to call in this case.
2021-09-08 11:17:13 +02:00
Goffi
5cf43b2e2e core (memory/persistent): implement __repr__ (via __str__) 2021-09-08 11:17:04 +02:00
Goffi
0c3910bafd plugin XEP-0353: fix jingle initiation on disco "Service Unavailable" error:
When requesting disco info on a bare jid which is not in our roster, server may return
"Service Unavailable" (to avoid leaking valid JIDs). In this case, the initiation was
failing, this is now fixed by using empty categories in this case.
2021-09-08 11:16:52 +02:00
Goffi
6bf40afe6a plugin XEP-0353: fix plugin modes 2021-09-08 11:16:48 +02:00
Goffi
12209c1bdc core (main): check plugin modes and skip pluggin/log an error if value is invalid 2021-09-08 11:16:35 +02:00
Goffi
f2988ea7be core (sat_main): fix the "Could not initialize backend" error logging 2021-09-08 11:16:29 +02:00
Goffi
f29a6bfa17 bridge (dbus/frontend): reintrospect signature in case of guess error:
When a "Unable to guess signature […]" `ValueError` is raised during a method call, the
signatures are re-introspected. This should fix this issue when a frontend is launched
just after to the backend (this happens notably with tests).
2021-09-08 11:16:21 +02:00
Goffi
22bc31ca4b docker: set DBUS_SESSION_BUS_ADDRESS so that it uses remote TCP with local fallback:
When connecting to Docker service, first the `backend` container will be tried with TCP,
then an Unix Socket will be used as fallback.
The Unix Socket is put in Libervia local dir which is a volume shared between containers.
This way D-Bus can be used with a remote backend, or the backend can be run locally
(notably during build when accounts creation or other settings must be done via Libervia
CLI).
2021-09-08 11:16:00 +02:00
Goffi
317cbb59e8 docker: fixes following global renaming 2021-09-08 11:15:54 +02:00
Goffi
88afb112d8 doc (contributing): typo 2021-09-08 11:15:41 +02:00
Goffi
33c2fb105b doc (contributing): fix docker-compose-e2e.yml spelling 2021-09-08 11:15:24 +02:00
Goffi
dae3308751 plugin XEP-0277: use common.uri to parse comment URIs 2021-09-08 11:14:53 +02:00
Goffi
adad4494c3 tools (common/uri): fix uri parsing for Python 3.9+ 2021-09-08 11:14:47 +02:00
Goffi
a446d91c93 docker: Libervia revision can now be specified:
Using the `DOCKER_LIBERVIA_REV` environment variable, backend (and related repos) revision
can now be specified. By default (variable empty or not set), the current `tip` version is
used, and `dev` is used for tagging. If the variable is set, the revision will be used and
used for tagging the image.
2021-09-08 11:14:17 +02:00
Goffi
2152d57887 CLI: use global constants for output names 2021-09-08 11:13:35 +02:00
Goffi
a6267ac1fa core (memory/sql_mapping): remove autoincrement:
SQLite specific behaviour with autoincrement (https://sqlite.org/autoinc.html) is actually
already handled by SQLAlchemy, and unsetting autoincrement cause troubles when storing new
objects.
2021-09-01 15:25:02 +02:00
Goffi
efcd128062 core (memory/sqla): fix key/value inversion in self.profiles 2021-09-01 15:24:59 +02:00
Goffi
33fc985410 merge branche "@" 2021-09-01 13:47:17 +02:00
Goffi
25a31896cb cli: call bridge.getReady() after bridge connection 2021-09-01 13:46:43 +02:00
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