Commit Graph

5 Commits

Author SHA1 Message Date
Ben Marsh
84c453ad8f Horde: Move files into namespaces corresponding to their location on disk.
#preflight none

[CL 20543973 by Ben Marsh in ue5-main branch]
2022-06-07 15:53:33 -04:00
Ben Marsh
59e5d48548 Horde: Finish re-org of Horde solution started a while ago.
* Controllers and messages are now stored alongside their related classes.
* "Impl" folders have been removed to allow more logical grouping of code by subject area rather than implementation details.

#fyi Josh.Engebretson, Carl.Bystrom
#preflight none

[CL 20540527 by Ben Marsh in ue5-main branch]
2022-06-07 13:05:00 -04:00
Ben Marsh
f5baa9ad34 Horde: Allow querying the state of tools without any deployments.
#preflight none

[CL 19779826 by Ben Marsh in ue5-main branch]
2022-04-16 10:24:41 -04:00
Ben Marsh
98f3482e70 Horde: Fix tests.
#preflight none

[CL 19637316 by Ben Marsh in ue5-main branch]
2022-04-05 20:38:13 -04:00
Ben Marsh
83041dec73 Horde: Add a subsystem for hosting tools on Horde.
- Each tool can have a number of deployments which are rolled out over time. Clients can specify a "phase" value indicating where in the queue they want to take updates (ie. whether they want to be early- or late-adopters), and deployments can be paused and cancelled.
- Tool channels are configured through the global configuration file. Tools can be marked "public", meaning that they do not require authentication against Horde for access. This can be useful for auto-update scenarios.
- The most recent 5 deployments are kept in the tool at any time.

The collection and controller implementation here is an experiment in reducing the amount of boilerplate currently adopted as a pattern in Horde. Notably:

- Model and collection classes are concrete rather than interfaces (since we don't generally mock them anyway).
- The same model class with annotations is used for response objects (paving the way to supporting patching and filtering using the same public model as the internal model).
- The VersionedCollection class is used to handle automatic migration of documents across schema versions, and cache document values with Redis.
- MongoDB property names are explicit and short, rather than just taking variable names.

#preflight none

[CL 19636699 by Ben Marsh in ue5-main branch]
2022-04-05 20:17:50 -04:00