openSUSE / orthos2

Orthos is a machine administration tool.
GNU General Public License v2.0
14 stars 13 forks source link

Refactor Domain-CobblerServer relationship to 1:1 #203

Closed faeller closed 1 year ago

faeller commented 1 year ago

This pull request addresses the refactoring of the Domain and CobblerServer models relationship from many-to-many to one-to-one. This simplifies the code and removes unnecessary loops when interacting with CobblerServer objects.

Old behavior:

The relationship between Domain and CobblerServer was many-to-many, which allowed multiple CobblerServers to be associated with a single Domain.

New behavior:

The Domain-CobblerServer relationship has been refactored to a one-to-one relationship, meaning that each Domain can now only have one associated CobblerServer.