Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Provisioning service #1678

Draft
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

pizkaz
Copy link
Contributor

@pizkaz pizkaz commented Dec 9, 2024

Fixes #1636

Type (Highlight the corresponding type)

  • Bugfix
  • Feature
  • Documentation
  • Refactoring (e.g. Style updates, Test implementation, etc.)
  • Other (please describe):

Checklist

  • Code updated to current develop branch head
  • Passes CI checks
  • Is a part of an issue
  • Tests added for the bugfix or newly implemented feature, describe below why if not
  • Changelog is updated
  • Documentation of code and features exists

Changes

  • Adds a new ProvisioningService providing an API for CRUD operations on models.
  • Adds a new app:provision command consumings a JSON file and using the ProvisioningService to delete existing (if so desired) models and adding new ones according to JSON data.

Other information

@pizkaz pizkaz force-pushed the 1636-provisioning-api branch 7 times, most recently from da2f5df to 980177a Compare December 16, 2024 16:25
@pizkaz pizkaz force-pushed the 1636-provisioning-api branch from 980177a to a86d409 Compare December 16, 2024 16:40
protected array $expectedProperties = [
'name' => 'required|string',
'description' => 'required|string',
'servers' => 'required|list',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'servers' => 'required|list',
'servers' => 'required|list|distinct|exists:servers,name',

'name' => 'required|string',
'description' => 'required|string',
'color' => 'required|string',
'server_pool' => 'required|string',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'server_pool' => 'required|string',
'server_pool' => 'required|exists: server_pools,name',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generic artisan command for provisioning
2 participants