D. Berge
48505dbaeb
View event history.
...
When an event has been modified, this control opens a dialogue
where the previous version of the event may be reviewed and if
necessary restored.
Technically, this was the quid of and closes #138 .
2022-02-27 19:56:21 +01:00
D. Berge
278c46f975
Adapt events view to new schema
2022-02-27 19:56:21 +01:00
D. Berge
180343754a
Remove old event edit dialogue
2022-02-27 19:56:21 +01:00
D. Berge
9aa9ce979b
Replace event edit dialogue.
...
The old <dougal-event-edit-dialog/> gets replaced by
<dougal-event-edit/> which handles the new events schema.
2022-02-27 19:56:21 +01:00
D. Berge
1e5be9c655
Add new event edit dialogue.
...
Replaces <dougal-event-edit-dialog/>.
2022-02-27 19:56:21 +01:00
D. Berge
0be5dba2b9
Return also labels from <dougal-context-menu/>.
...
Keeping in mind that the input model is a tree and labels
may be at any level in the tree, not just in the leaves.
2022-02-27 19:56:21 +01:00
D. Berge
0c91e40817
Fix <dougal-context-menu/> default prop value
2022-02-27 19:56:21 +01:00
D. Berge
c1440c7ac8
Simplifiy <dougal-context-menu/> model
2022-02-27 19:56:21 +01:00
D. Berge
606f18c016
Add Vuex position and timestamp getters for real-time event
2022-02-27 19:56:21 +01:00
D. Berge
febf109cce
Update API description
2022-02-27 19:56:21 +01:00
D. Berge
9b700ffb46
Update required database schema
2022-02-27 19:56:21 +01:00
D. Berge
9aca927e49
Update version checking mechanism.
...
Checks both database schema and API versions.
2022-02-27 19:56:21 +01:00
D. Berge
adaa1a6b8a
Add version number to API
2022-02-27 19:56:21 +01:00
D. Berge
8790a797d9
Allow restricting by timestamp or position.
...
Closes #181 .
2022-02-27 19:56:21 +01:00
D. Berge
d7d75f34cd
Remove event caching.
...
That was a horrible kludge and should not be necessary with the
new schema, which is simpler and much faster.
2022-02-27 19:56:21 +01:00
D. Berge
950582a5c6
Refactor event middleware and db code to use new tables
2022-02-27 19:56:21 +01:00
D. Berge
d0da1b005b
Add replaceMarkers utility function
2022-02-27 19:56:21 +01:00
D. Berge
1e2c816ef3
Add database upgrade file 13.
...
Drops the old event tables.
NOTE: consider not applying this patch until confident that
the migration has proceeded smoothly. Dougal can operate just
fine without it.
2022-02-27 19:56:21 +01:00
D. Berge
54b457b4ea
Add database upgrade file 12.
...
Migrates data from old event tables to new.
2022-02-27 19:56:21 +01:00
D. Berge
4d2efd1e04
Move sequence events middleware to a different path.
...
This is to make room for a new endpoint to retrieve
data for individual events.
2022-02-27 19:56:21 +01:00
D. Berge
920ea83ece
Add API endpoint to retrieve a single shotpoint.
...
This will be used by the new event dialogue in the
frontend to get shotpoint information when creating
or editing events.
2022-02-27 19:56:21 +01:00
D. Berge
d33fe4e936
Add database utilities file.
...
Intended to contain reusable functions.
2022-02-27 19:56:21 +01:00
D. Berge
c347b873c5
Update database README.
...
Add information on restoring from backup and troubleshooting
details when migrating PostgreSQL versions.
2022-02-27 19:56:21 +01:00
D. Berge
0c6567d8f8
Add database upgrade file 11
2022-02-27 19:56:12 +01:00
D. Berge
195741a768
Merge branch '173-do-not-use-inodes-as-part-of-a-file-s-fingerprint' into 'devel'
...
Resolve "Do not use inodes as part of a file's fingerprint"
Closes #173
See merge request wgp/dougal/software!19
2022-02-07 16:08:04 +00:00
D. Berge
0ca44c3861
Add database upgrade file 10.
...
NOTE: this is the first time we modify the actual data
in the database, as opposed to adding to the schema.
2022-02-07 17:05:19 +01:00
D. Berge
53ed096e1b
Modify file hashing function.
...
We remove the inode from the hash as it is unstable when the
files are on an SMB filesystem, and replace it with an MD5
of the absolute file path.
2022-02-07 17:03:10 +01:00
D. Berge
75f91a9553
Increment schema wanted version
2022-02-07 17:02:59 +01:00
D. Berge
40b07c9169
Merge branch '175-add-database-versioning-and-migration-mechanism' into 'devel'
...
Resolve "Add database versioning and migration mechanism"
Closes #175
See merge request wgp/dougal/software!18
2022-02-07 14:43:50 +00:00
D. Berge
36e7b1fe21
Add database upgrade file 09
2022-02-06 23:26:57 +01:00
D. Berge
e7fa74326d
Add README to database upgrades directory
2022-02-06 23:24:24 +01:00
D. Berge
83be83e4bd
Check database schema compatibility.
...
The server will not start unless it satisfies itself that we're
running against a compatible database schema.
2022-02-06 22:52:45 +01:00
D. Berge
81ce6346b9
Add database schema information to package.json.
...
Used to determine if the actual schema on the database
is compatible with the version of the server we're
attempting to run.
2022-02-06 22:51:25 +01:00
D. Berge
923ff1acea
Add more details to package.json
2022-02-06 22:50:44 +01:00
D. Berge
8ec479805a
Add version reporting library.
...
This reports the current server version, from Git by
default.
Also, and of more interest, it reports whether the
current database schema is compatible with the
server code.
2022-02-06 22:48:20 +01:00
D. Berge
f10103d396
Enfore info key access restrictions on the API.
...
Obviously, those keys can be edited freely at the database
level. This is intended.
2022-02-06 22:40:53 +01:00
D. Berge
774bde7c00
Reserve certain keys on info tables
2022-02-06 22:39:11 +01:00
D. Berge
b4569c14df
Update database README.
...
Document how to create a Dougal database from scratch
and how to update PostgreSQL.
2022-02-06 22:28:21 +01:00
D. Berge
54eea62e4a
Fix require path
2022-02-06 14:24:25 +01:00
D. Berge
69c4f2dd9e
Merge branch '161-transfer-files-to-asaqc' into 'devel'
...
Resolve "Transfer files to ASAQC"
Closes #161
See merge request wgp/dougal/software!16
2021-10-09 09:23:54 +00:00
D. Berge
acc829b978
Switch to production URL in ASAQC configuration
2021-10-06 04:16:17 +02:00
D. Berge
ff4913c0a5
Instrument getLineName to monitor probable cause of #165
2021-10-06 02:12:05 +02:00
D. Berge
51452c978a
Add ASAQC task to runner
2021-10-04 21:26:13 +02:00
D. Berge
927ef71ecc
Send Ocp-Apim-Subscription-Key with ASAQC requests
v2
2021-10-04 21:00:41 +02:00
D. Berge
14541bcb95
Make code compatible with NodeJS 14
2021-10-04 16:52:04 +02:00
D. Berge
5c190e5554
Add ASAQC queue processor.
...
This code implements the backend processing side
of the ASAQC queue, i.e., the bit that communicates
with the remote API.
Its expected use it to have it running at regular
intervals, e.g., via cron. The entry point is:
lib/www/server/queues/asaqc/index.js
That file is executable and can be run directly
from the shell or within a script. Read the comments
in that file for further instructions.
2021-10-04 02:21:00 +02:00
D. Berge
0f447fc27d
Add ASAQC API mock-up.
...
To be used for testing and debugging. See
index.js for instructions.
2021-10-04 02:21:00 +02:00
D. Berge
dfbccf3bc6
Add ASAQC (test) server details to configuration.
...
The URL corresponds to that of a built-in test server.
Note that the /etc/ssl directory is protected against
accidental inclusion into the repository by commit
458b6837. The TLS private key should *never* be
committed.
2021-10-04 02:21:00 +02:00
D. Berge
a491530018
Add ASAQC transfer support to client (sequence list)
2021-10-04 02:21:00 +02:00
D. Berge
c7784aa52f
Add ASAQC queue endpoints to API
2021-10-04 02:21:00 +02:00