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

GraphQL Circuit model relationship mapping to CircuitTermination #7125

Closed
ryanmerolle opened this issue Sep 1, 2021 · 4 comments
Closed
Assignees
Labels
status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application

Comments

@ryanmerolle
Copy link
Contributor

NetBox version

v3.0.0

Feature type

Change to existing functionality

Proposed functionality

Given the below graphql query in demo.netbox.dev

{
  circuit_list(cid: "KDPO0597") {
    id
    cid
    terminations {
      id
      term_side
      site {
        name
      }
      port_speed
      xconnect_id
      provider_network {
        id
      }
      xconnect_id
      pp_info
      description
      last_updated
    }
  }
}

Use case

I would like to be able to query cable_peer or connected_enpoints under terminations in order to query the termination details for each circuit. Currently, you can only go as far as get the pertinent info inside the circuit termination model and not the connected_endpoint specific info.

Database changes

N/A

External dependencies

N/A

@ryanmerolle ryanmerolle added the type: feature Introduction of new functionality to the application label Sep 1, 2021
@ryanmerolle
Copy link
Contributor Author

This is pretty much in the same realm of #6829

@ryanmerolle
Copy link
Contributor Author

I am getting closer:

{
  circuit_list(cid: "KDPO0597") {
    id
    cid
    terminations {
      id
      term_side
      cable {
        termination_a_type {
          app_label
          model
        }
        termination_a_id
        _termination_a_device {
          name
        }
        termination_b_type {
          app_label
          model
        }
        termination_b_id
        _termination_b_device {
          name
        }
      }
      site {
        name
      }
      port_speed
      xconnect_id
      provider_network {
        name
      }
      xconnect_id
      pp_info
      description
      last_updated
    }
  }
}

I do not see the termination_b or termination_a name in the models. If this needs to move to a discussion instead of an issue, I'm fine with that. I am just preemptively testing some common graphql queries I suspect users will look to leverage.

@jeremystretch jeremystretch added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Sep 14, 2021
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Nov 14, 2021
@github-actions
Copy link
Contributor

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2022
@ryanmerolle ryanmerolle removed the pending closure Requires immediate attention to avoid being closed for inactivity label Feb 23, 2023
@ryanmerolle ryanmerolle reopened this Feb 23, 2023
@ryanmerolle ryanmerolle self-assigned this Feb 23, 2023
@ryanmerolle ryanmerolle added the status: under review Further discussion is needed to determine this issue's scope and/or implementation label Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants