Open lenny-goodell opened 1 year ago
assign this issue to @jiekechoo
I have fixed this issue yiqisoft/edgex-ui-go/ , but I can't submit a new pr. Anyone can help me?
@jiekechoo you should create a new branch called issue-642
to fix this issue, and open a PR against it.
https://wiki.edgexfoundry.org/display/FA/Committing+Code+Guidelines#CommittingCodeGuidelines-BranchingConventions
you can't create a new PR because there is an existing PR against your main branch https://github.com/edgexfoundry/edgex-ui-go/pull/654
@jiekechoo , I have merged you PRs for the Provision Watcher fix for this issue, but not seeing what is expect from the latest built image.
Here is how I tested:
Here is the Provision Watcher that should be displayed. https://github.com/edgexfoundry/device-usb-camera/blob/main/cmd/res/provisionwatchers/generic.provision.watcher.yaml
I feel like you changes are not being reflected in the latest build, but even in the images on your PR https://github.com/edgexfoundry/edgex-ui-go/pull/657, the field names are incorrect.
IdenifiersAddress
=>Identifiers
IdentifiersPort
should be removed.
Note that:
Identifiers
is a collection of key/value pairs (ie. map[string]string) BlockingIdentifiers
is a collection of key/value pairs where the values are a list of strings (i.e. map[string][]string)Also not that if I select the 2nd empty item in the initial list I get this which has the Device Service and Device profiles properly listed and selected.
π 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: ```go 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](https://github.com/edgexfoundry/edgex-ui-go/assets/44779287/70c3a3d4-927d-4bce-aeac-84326b3c6e34) 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: - https://github.com/edgexfoundry/device-onvif-camera/tree/main/cmd/res/provisionwatchers - https://github.com/edgexfoundry/device-rfid-llrp-go/tree/main/cmd/res/provision_watchers ## π Your Environment **Deployment Environment:** **EdgeX Version [**REQUIRED**]:** **Anything else relevant?**