Skip to content

IP pool list: disable pool delete when there are ranges in pool #2174

Closed

Description

@charliepark
No description provided.

Activity

  1. self-assigned this
    on Mar 12, 2025
  2. added this to the 14 milestone on Mar 12, 2025
  3. removed their assignment
    on Mar 12, 2025
  4. charliepark commented on Mar 12, 2025

    @charliepark
    ContributorAuthor

    Crespo covers this in #2751

  5. david-crespo commented on Mar 12, 2025

    @david-crespo
    Collaborator

    Looks you did that in #2405, but it only covers the IP pool detail page, not the list view:

    {
    label: 'Delete',
    onActivate: confirmDelete({
    doDelete: () => deletePool({ path: { pool: pool.name } }),
    label: pool.name,
    }),
    },

    This makes sense because we don't have the lists of ranges on hand for each pool in the list. We could fetch them async so they don't block pageload, and if we only care whether they're empty or not, we could even fetch them with a limit of 1.

  6. changed the title [-]disable IP Pool delete when there are ranges in pool[/-] [+]IP pool list: disable pool delete when there are ranges in pool[/+] on Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions