D. Berge
e576e1662c
Add library function returning event changes after given epoch
2023-10-17 11:13:58 +02:00
D. Berge
7b6b81dbc5
Add more debugging statements
2023-10-04 14:50:12 +02:00
D. Berge
2e11c574c2
Throw rather than return.
...
Otherwise the finally {} block won't run.
2023-10-04 14:49:35 +02:00
D. Berge
d07565807c
Do not retry immediately
2023-10-04 14:49:09 +02:00
D. Berge
6eccbf215a
There should be no need to await.
...
That is because the queue handler will, in theory, only ever
process one event at a time.
2023-09-30 21:29:15 +02:00
D. Berge
8abc05f04e
Remove dead code
2023-09-30 21:29:15 +02:00
D. Berge
8f587467f9
Add comment
2023-09-30 21:29:15 +02:00
D. Berge
3d7a91c7ff
Rewrite ReportLineChangeTime
2023-09-30 21:29:15 +02:00
D. Berge
3fd408074c
Support passing array in opts.sequences to event.list()
2023-09-30 21:29:15 +02:00
D. Berge
f71cbd8f51
Add unique utility function
2023-09-30 21:29:15 +02:00
D. Berge
915df8ac16
Add handler for creation of line change time events
2023-09-30 21:29:15 +02:00
D. Berge
180590b411
Mark events as being automatically generated
2023-09-30 01:42:27 +02:00
D. Berge
4ec37539bf
Add utils to work with Postgres ranges
2023-09-30 01:41:45 +02:00
D. Berge
8755fe01b6
Refactor events.list.
...
The SQL has been simplified and the following changes made:
- The `sequence` argument now can only take one individual
sequence, not a list of sequences.
- A new `sequences` argument is recognised. It takes a list
of sequences (as a string).
- A new `label` argument is recognised. It takes a label
name and returns events containing that label.
- A new `jpq` argument is recognised. It takes a JSONPath
string which is applied to `meta` with jsonb_path_exists(),
returning any events for which the JSON path expression
matches.
2023-09-30 01:37:22 +02:00
D. Berge
0bfe54e0c2
Include the meta attribute when posting events
2023-09-30 01:36:18 +02:00
D. Berge
29bc689b84
Merge branch '276-add-soft-start-event-detection' into 'devel'
...
Resolve "Add soft start event detection"
Closes #276
See merge request wgp/dougal/software!44
2023-09-29 15:02:57 +00:00
D. Berge
65682febc7
Add soft start and full volume events detection
2023-09-29 17:02:03 +02:00
D. Berge
d408665d62
Write meta info to automatic events
2023-09-29 16:49:27 +02:00
D. Berge
ab58e578c9
Use DEBUG library throughout
2023-09-29 16:16:33 +02:00
D. Berge
0e58b8fa5b
Refactor code to identify candidate schemas.
...
As part of the refactoring, we took into account a slight payload
format change (project configuration details are under the `data`
attribute).
2023-09-29 16:13:35 +02:00
D. Berge
99ac082f00
Use common naming convention both online and offline
2023-09-29 16:11:44 +02:00
D. Berge
42456439a9
Remove ad-hoc notifier
2023-09-29 15:59:12 +02:00
D. Berge
ee0c0e7308
Replace ad-hoc notifier with pg-listen based version
2023-09-29 15:59:12 +02:00
D. Berge
0829ea3ea1
Save a copy of the headers not the original.
...
Otherwise ExpressJS will complain about trying to modify
headers that have already been sent.
2023-09-24 12:17:16 +02:00
D. Berge
2069d9c3d7
Remove dead code
2023-09-24 12:15:06 +02:00
D. Berge
8a2d526c50
Ignore schema attribute in PATCH payload.
...
Fixes #273 .
2023-09-24 12:14:20 +02:00
D. Berge
8ad96d6f73
Ensure that requiredFields is always defined.
...
Otherwise, `Object.entries(requiredFields)` may fail.
2023-09-24 11:59:26 +02:00
D. Berge
835384b730
Apply path conversion to QC definition files
2023-09-23 22:50:09 +02:00
D. Berge
c5b93794f4
Move path conversion to general utilities
2023-09-23 13:44:53 +02:00
D. Berge
056cd32f0e
Merge branch '271-qc-results-not-being-refreshed' into 'devel'
...
Resolve "QC results not being refreshed"
Closes #271
See merge request wgp/dougal/software!41
2023-09-18 10:08:35 +00:00
D. Berge
ceccc42050
Don't cache response ETags for QC endpoints
2023-09-18 12:06:38 +02:00
D. Berge
aa3379e1c6
Adapt RTI save function to refactored project configuration in DB
2023-09-18 11:58:55 +02:00
D. Berge
85d8fc8cc0
Update required database version
2023-09-15 14:22:22 +02:00
D. Berge
0fe40b1839
Add missing require
2023-09-15 14:22:02 +02:00
D. Berge
a1779ef488
Do not cache /navdata endpoint responses
2023-09-14 13:20:16 +02:00
D. Berge
5239dece1e
Do not cache GIS endpoint responses
2023-09-14 13:19:57 +02:00
D. Berge
a7d7837816
Allow only admins to patch project configurations
2023-09-14 13:19:16 +02:00
D. Berge
ebcfc7df47
Allow everyone to access project configuration.
...
This is necessary as it is requested by various parts of the
frontend.
Consider more granular access control.
2023-09-14 13:17:28 +02:00
D. Berge
dc4b9002fe
Adapt QC endpoints to new configuration APIs
2023-09-14 13:15:59 +02:00
D. Berge
33618b6b82
Do not cache Set-Cookie headers
2023-09-14 13:13:47 +02:00
D. Berge
5a2af5c49e
Add CSV output option for events log
2023-09-13 21:58:06 +02:00
D. Berge
24658f4017
Allow patching project name if no name is already set
2023-09-13 16:13:43 +02:00
D. Berge
6707cda75e
Ignore case when patching configuration ID
2023-09-13 16:13:12 +02:00
D. Berge
707889be42
Refactor layer API endpoint and database functions.
...
- A single get() function is used both to list all available
layers, if no layer name is given, or a single layer.
- The database no longer holds the actual layer contents,
only the path to the layer file(s), so the list() function
is now redundant as we return the full payload in every case.
- The /gis/layer and /gis/layer/:name endpoints now have the same
payload structure.
2023-09-12 19:29:02 +02:00
D. Berge
36d5862375
Add map layer middleware and API endpoints
2023-09-11 10:15:19 +02:00
D. Berge
398c702004
Add map layer functions to database interface
2023-09-11 10:12:46 +02:00
D. Berge
4f165b0c83
Revert behaviour of new jwt-express version.
...
Fixes breakage introduced in commit
cd00f8b995 .
2023-09-10 14:09:01 +02:00
D. Berge
2c86944a51
Merge branch '262-preset-remarks-and-labels-no-longer-working-with-api-0-4-0' into 'devel'
...
Resolve "Preset remarks and labels no longer working with API 0.4.0"
Closes #262
See merge request wgp/dougal/software!36
2023-09-10 10:10:22 +00:00
D. Berge
941d15c1bc
Return labels directly from project configuration.
...
NOTE: This is a breaking API change. Before this it returned an
array of labels, now it returns an object.
2023-09-10 11:59:38 +02:00
D. Berge
cd00f8b995
Breaking-change Node package udpates (server)
2023-09-10 11:49:56 +02:00