Skip to content

feat(frontend): add Machine Edit UI/API, empty data/admin.py - #444

Merged
SchoolGuy merged 1 commit into
masterfrom
feature/obsolete-django-admin-machine
Aug 21, 2026
Merged

feat(frontend): add Machine Edit UI/API, empty data/admin.py#444
SchoolGuy merged 1 commit into
masterfrom
feature/obsolete-django-admin-machine

Conversation

@SchoolGuy

Copy link
Copy Markdown
Collaborator

Ports MachineAdminForm's cross-field validation into Machine.clean(), and replicates the admin's conditional VIRTUALIZATION SERVER/CLIENT fieldset visibility. Drops the redundant FQDN-uniqueness form check. This is the last Django Admin registration in orthos2/data; admin.py is now empty of model registrations. Also fixes a stray "group_id" leftover in MachineAPIForm.get_order().

Ports MachineAdminForm's cross-field validation into Machine.clean(),
and replicates the admin's conditional VIRTUALIZATION SERVER/CLIENT
fieldset visibility. Drops the redundant FQDN-uniqueness form check.
This is the last Django Admin registration in orthos2/data;
admin.py is now empty of model registrations. Also fixes a stray
"group_id" leftover in MachineAPIForm.get_order().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SchoolGuy
SchoolGuy force-pushed the feature/obsolete-django-admin-machine branch from e5d7420 to dc52962 Compare August 21, 2026 09:27
@codacy-production

codacy-production Bot commented Aug 21, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 2 high

Alerts:
⚠ 2 issues (≤ 0 issues of at least minor severity)

Results:
2 new issues

Category Results
Security 2 high

View in Codacy

🟢 Metrics 15 complexity · 52 duplication

Metric Results
Complexity 15
Duplication 52

View in Codacy

🟢 Coverage 92.64% diff coverage · +0.33% coverage variation

Metric Results
Coverage variation +0.33% coverage variation (-1.00%)
Diff coverage 92.64% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (a9d9d98) 22890 16948 74.04%
Head commit (dc52962) 23012 (+122) 17115 (+167) 74.37% (+0.33%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#444) 258 239 92.64%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@SchoolGuy
SchoolGuy merged commit 4e93e8f into master Aug 21, 2026
14 of 15 checks passed
@SchoolGuy
SchoolGuy deleted the feature/obsolete-django-admin-machine branch August 21, 2026 10:13
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.

1 participant