Add tests (`testCantFindDeletedVolumeSnapshotById` fails).
The failing test is due to `findVolumeSnapshotById` not taking deleted
entries into account.
Replace the existing hard-deletion of volume snapshot rows in the
database with soft-deletion that will allow `db-sync` to propagate
deletions between clusters.
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
* Extend workspace admin search
Extend search conditions to include instance UUID and workspace ID
Fixes#3992
* Update placeholder
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
* Use title capitalisation for placeholder test
Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
* Add test for findAllWorkspaceAndInstances
The test is currently failing with a missing database error. I think
this is a problem with the test database setup rather than the specific
test
* Resolve failing test
Turns out that TypeORM column names are case sensitive when used for
ordering. The error message is terrible
Cannot read property 'databaseName' of undefined
In this case we used contextUrl and it should have been contextURL.
While column names in mysql are case insensitive I also fixed one other
occurrence of contextUrl even though it is not necessary; but using the
column names makes it easier to find when searching for references etc.
* Add a launch configuration for db-test
* Add more assertions to the test