Skip to content

Fields for Provision Watcher Tab don't match the Provision Watcher DTO #642

@lenny-goodell

Description

@lenny-goodell

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: UI Provision Watcher Tab

Is this a regression?

No, this is new capability

Description and Minimal Reproduction [REQUIRED]

Fields for the provision watcher tab should match those in the DTO here:

type ProvisionWatcher struct {
	DBTimestamp         `json:",inline"`
	Id                  string              `json:"id,omitempty" yaml:"id,omitempty" validate:"omitempty,uuid"`
	Name                string              `json:"name" yaml:"name" validate:"required,edgex-dto-none-empty-string"`
	ServiceName         string              `json:"serviceName" yaml:"serviceName" validate:"required,edgex-dto-none-empty-string"`
	Labels              []string            `json:"labels,omitempty" yaml:"labels,omitempty"`
	Identifiers         map[string]string   `json:"identifiers" yaml:"identifiers" validate:"gt=0,dive,keys,required,endkeys,required"`
	BlockingIdentifiers map[string][]string `json:"blockingIdentifiers,omitempty" yaml:"blockingIdentifiers,omitempty"`
	AdminState          string              `json:"adminState" yaml:"adminState" validate:"oneof='LOCKED' 'UNLOCKED'"`
	DiscoveredDevice    DiscoveredDevice    `json:"discoveredDevice" yaml:"discoveredDevice"`
}

What we see are
image

Also, Blocking Identifiers is not getting populated when set in the DTO.

from compose builder run make run no-secty ds-onvif-camera ds-llrp and verify the Provision Watchers in the UI match the Provision Watchers here:

🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    Icebox

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions