Skip to content
Snippets Groups Projects

CE-2440: Prepare for NetBox integration

The code has been refactored to be compatible with the backend's NetBox integration changes. We query hosts from two different sources in NetBox, so their numerical identifiers are unique only within their own entity. Therefore, they have received a generated String ID that includes the numerical ID and information about from which endpoint they can be queried (Is Virtual Machine or not).

Closes CE-2440

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
183 182 <Autocomplete
184 183 autoHighlight
185 184 id="host"
186 options={query ? hosts?.csEntryHosts ?? [] : []}
185 options={query ? hosts?.netBoxHosts ?? [] : []}
  • 240 240 <Autocomplete
    241 241 autoHighlight
    242 242 id="host"
    243 options={query ? hosts?.csEntryHosts ?? [] : []}
    243 options={query ? hosts?.netBoxHosts ?? [] : []}
  • 1 1 import React from "react";
    2 2 import { Container } from "@mui/material";
    3 import hosts from "../../mocks/fixtures/PagedCSEntryHostResponse.json";
    3 import hosts from "../../mocks/fixtures/PagedNetBoxHostResponse.json";
  • 36 36 Populated.args = {
    37 37 ...Empty.args,
    38 38 totalCount: hosts.totalCount,
    39 hosts: hosts.csEntryHosts
    39 hosts: hosts.netBoxHosts
  • 1 [
  • 3 3 "listSize": 25,
    4 4 "pageNumber": 0,
    5 5 "limit": 100,
    6 "csEntryHosts": [
    6 "netBoxHosts": [
  • I found these three keys in ccce-api-json, don't know if they matters

    csentryID, hostsFoundInCSEntry, failedDueToServiceErrorInCSEntry

  • To get this branch running in local FE change:

        "start": "react-scripts start",
    "start": "react-scripts --openssl-legacy-provider start",
  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Domonkos Gulyas added 15 commits

    added 15 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading