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

Controllers remaining work #5454

Open
20 tasks done
glennmatthews opened this issue Mar 19, 2024 · 7 comments
Open
20 tasks done

Controllers remaining work #5454

glennmatthews opened this issue Mar 19, 2024 · 7 comments
Assignees
Labels
type: housekeeping Changes to the application which do not directly impact the end user

Comments

@glennmatthews
Copy link
Contributor

glennmatthews commented Mar 19, 2024

Update Controllers based on the discussion during the demo as follows:

  • Remove Add button from the Controller Device Group main menu.
  • Rename ControllerDeviceGroup => ControllerManagedDeviceGroup / Managed Device Group
  • Rename Device.controller_device_group => controller_managed_device_group
  • Rename Controller.deployed_* => controller_device / controller_device_redundancy_group.
  • Controller Edit:
    • Split into sections, similar to retrieve.
    • Fields managed* exclusive similar to Provider Network vs Location tabs in Circuit Terminations.
  • Controller Retrieve:
    • Rename Devices => Managed devices.
    • Remove duplicity role.
    • Merge Deployed* to the single field.
  • Controller Device Group Edit:
    • Disabled fields are not included in the post, render field as hidden, use something like: {% render_field form.associated_object_id.as_hidden %}
    • Move Controller above Name.
@glennmatthews glennmatthews added the type: housekeeping Changes to the application which do not directly impact the end user label Mar 19, 2024
@glennmatthews glennmatthews mentioned this issue Mar 19, 2024
7 tasks
@snaselj
Copy link
Contributor

snaselj commented Mar 20, 2024

This is the last remaining question, what's your opinion pls.? @glennmatthews @whitej6 @mzbroch

@mzbroch
Copy link
Contributor

mzbroch commented Mar 20, 2024

This is the last remaining question, what's your opinion pls.? @glennmatthews @whitej6 @mzbroch

👍 for protect

@whitej6
Copy link
Contributor

whitej6 commented Mar 20, 2024

If field is null=True then on_delete=models.SET_NULL should be used. I originally used PROTECT but when Glenn pushed back I rethought

@snaselj
Copy link
Contributor

snaselj commented Mar 20, 2024

Both fields can be null, so keeping SET_NULL, no change is necessary.

@glennmatthews
Copy link
Contributor Author

If field is null=True then on_delete=models.SET_NULL should be used. I originally used PROTECT but when Glenn pushed back I rethought

I've changed my thinking since the initial pushback though :-) I think from a principle-of-least-astonishment standpoint it makes more sense to prevent users from deleting an ExternalIntegration that's actively in use by a Controller. Similarly for deleting a Device or DeviceRedundancyGroup that represent a Controller?

@whitej6
Copy link
Contributor

whitej6 commented Mar 20, 2024

Then I amend my amended vote to protect 😂

@snaselj
Copy link
Contributor

snaselj commented Mar 20, 2024

As we are still on beta, I just updated the migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

No branches or pull requests

4 participants