Commits (82)
-
James Kirk authored
feat: added docker-compose setup, inc run-compose and .env to handle vars for locally running refactor: changed rmq to fail when it can't connect, allowing stuff to wait until the MQ is available refactor: moved from assuming pipenv to just pip refactor: mounted volumes, so changed interactions with clients.json to match
d6b2e404 -
James Kirk authorede5a6395c
-
James Kirk authored3c1c7c3d
-
Dan Jones authored2189e2f0
-
James Kirk authored
refactor: MQ_HOST default in run-compose script
89401ce8 -
James Kirk authored
fix: added shebang to run-compose refactor: DATA_DIR used in container as well as external to it
4b3816ce -
James Kirk authored2271e3f1
-
James Kirk authoredc4cc874a
-
James Kirk authored
Resolve "Create a docker-compose to run RMQ, the bus and the API" Closes #17 and #13 See merge request !7
61d88a37 -
Dan Jones authored
- done - client and token model - client and token api endpoints - send api endpoint - todo - notify api endpoint - receive api endpoint
be57512a -
Dan Jones authored
+ fix to max_messages query string handling
5d6f2899 -
Dan Jones authored113597e5
-
Dan Jones authored010ce68e
-
Dan Jones authored8dcae84f
-
Dan Jones authored655bff35
-
Dan Jones authoredcaf957c9
-
Dan Jones authorede66069b0
-
James Kirk authored813d3b0e
-
James Kirk authored
feat: added in test compose and changed compose script to allow more options
4b284540 -
James Kirk authoredffb56980
-
James Kirk authored7bb2668f
-
James Kirk authored
feat: suppressing pycache generation
57a89c55 -
James Kirk authored7764747b
-
James Kirk authored701eb771
-
James Kirk authoredba48921b
-
James Kirk authoredf6501eca
-
James Kirk authoreddb23a5af
-
Dan Jones authored
+ change the org name in the licence
0a4f14a6 -
James Kirk authored
Gitlab-ci Closes #20 See merge request !8
57b20daa -
Dan Jones authored11e93903
-
Dan Jones authored
Start and stop threads when clients are created or removed Watchdog watches for changes to the ./data/clients.json When a change is detected it compares the list of running clients to the content of clients.json and starts or stops client processing threads as required
101a3c20 -
Dan Jones authoredcbf53e93
-
Dan Jones authoreda1f453eb
-
Dan Jones authored2d7d0ac3
-
Dan Jones authored109689e1
-
Dan Jones authored1441bafd
-
Dan Jones authored26f8bc29
-
Dan Jones authored
The code was catching a FileNotFoundError and trying to create the empty file but wasn't creating the data directory before trying to save into it. Rather than starting with 0 clients it now creates a default "admin" client so that when you start the app you always have something. We need to think about how to provide these credentials back to the user. Normally you save the response from the post to /client. You can just read the file. The admin client is set to receive all messages. It may be better to set it to receive nothing so that if the default client is not implemented the queues don't fill up.
800066c0 -
Dan Jones authored
+ blacken changed files + add client_create.py to readme + don't create admin client automatically Creating a default client the user hasn't asked for could create problems with unused clients building up big queues
e9c47524 -
Dan Jones authored
Default settings are applied if the config file is not present. The default settings assume running a local dev env. Config should always be in place for production.
35f239e0 -
Dan Jones authoreddab26204
-
Dan Jones authoredc17e6778
-
James Kirk authored
refactor: better err msgs for invalid JSON
42c71fa8 -
James Kirk authored9f6bfd59
-
James Kirk authored0a48aa56
-
James Kirk authored
fix: correct error code resp Closes #32 and #34 See merge request !17
c6a34801 -
Dan Jones authored
Log an event when messages are: - written to queues - read from queues - forwarded - published - broadcast
cf728490 -
Dan Jones authored
LOG_LEVEL is passed into docker-compose with default DEBUG For production it defaults to INFO if not set
46d2604f -
Dan Jones authored
Set global log config for bus and api Add TRACE level Log actions for DEBUG Log full messages for TRACE
59ad8f48 -
Dan Jones authored
Log failed authentication Log failed token grants
d583e960 -
Dan Jones authored98aa4a50
-
Dan Jones authoredbd529d1d
-
Dan Jones authored
- set log format - remove or replace prints with log writes - change log levels for some messages
af5bbfed -
Dan Jones authored3631ccdb
-
Dan Jones authoredd414e991
-
Dan Jones authored218fd4fd
-
Dan Jones authored56bfce42
-
Dan Jones authored097e1670
-
Dan Jones authored3959f6dd
-
Dan Jones authored
Each client starts 2 threads for the publish and broadcast flow. In addition there are 2 threads for the publisher and config watcher.
c64ca37a -
Dan Jones authored
We will need to test how this scales with added clients
204bb35a -
James Kirk authored79f67997
-
James Kirk authored98c215db
-
James Kirk authored7d999d4a
-
James Kirk authored9ba6eee3
-
James Kirk authored3b2d9c96
-
James Kirk authored9fc80edb
-
James Kirk authoredab187640
-
James Kirk authored
Gitlab ci testing See merge request !22
266acc14 -
Dan Jones authored
+ add silent option to return parseable json response + add api arg to allow response to be used as-is
435b8690 -
Dan Jones authored88eafa7f
Showing
.env
0 → 100644
.gitlab-ci.yml
0 → 100644
Pipfile
deleted
100644 → 0
Pipfile.lock
deleted
100644 → 0
This diff is collapsed.
__init__.py
deleted
100644 → 0
client_create.py
0 → 100644
conftest.py
0 → 100644
docker/Dev.Dockerfile
0 → 100644
docker/Dockerfile
0 → 100644
docker/docker-compose.yaml
0 → 100644
endpoints/client.py
0 → 100644