api/machines: allow importing extra modules #436

Merged
clan-bot merged 1 commits from DavHau-dave into main 2023-10-25 15:39:01 +00:00
Owner
  • add top-level option clanImports to clanCore
  • clanImports can be set and checked as any other option
  • buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
  • new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
  • to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return clanImports as part of the config

Still missing: get list of available modules

- add top-level option `clanImports` to clanCore - clanImports can be set and checked as any other option - buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions - new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports - to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config Still missing: get list of available modules
clan-bot was assigned by DavHau 2023-10-25 15:36:50 +00:00
DavHau added 1 commit 2023-10-25 15:36:51 +00:00
api/machines: allow importing extra modules
All checks were successful
checks-impure / test (pull_request) Successful in 36s
checks / test (pull_request) Successful in 2m6s
bf176ad277
- add top-level option `clanImports` to clanCore
- clanImports can be set and checked as any other option
- buildClan resolves the clanImports from the settings.json before calling evalModules to prevent infinite recursions
- new endpoint PUT machines/{name}/schema to allow getting the schema for a specific list of imports
- to retrieve the currently imported modules, cimply do a GET or PU on machines/{name}/config which will return `clanImports` as part of the config

Still missing: get list of available modules
clan-bot merged commit a6f51d4dae into main 2023-10-25 15:39:01 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: clan/clan-core#436
No description provided.