Esri / Esri/solution.js

Label property is not being replaced in Real-Time and Big Data Analytics when items are reused

Open
#1,318 0 comments 0 reactions 1 assignee Claimed by @jmhauck View on GitHub
A - bug
Dominant language
TypeScript
Stars
48
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When you deploy a solution with a Real-Time or Big Data Analytic and the analytics have Feed or Feature Layer inputs that were already created from a previous deployment the label property in the analytic definition is not being replaced. As a result in the UI see something like below:

![image](https://github.com/Esri/solution.js/assets/6796763/5483fa90-c8fb-4c20-b3dc-634c67e92b39)

To reproduce:

1. Deploy this item https://localdeployment.maps.arcgis.com/home/item.html?id=a68ec9adb4da43458e37c4aa57f3186d.
This creates the feeds and feature layers and other Velocity items. If you open the Sweeper Tracker Realtime Analytic and edit it all the labels for Feeds and Feature layers are updated properly.
3. Deploy this item https://localdeployment.maps.arcgis.com/home/item.html?id=f08dd452ce504f4aac33de3d5be79574 and enable the option to reuse existing items
This will reuse the Feeds and Feature layers created in the previous deployment but create a new Real-Time Analytic. If you edit the Mower Vehicle analytic in Velocity you will see the labels of the Feeds and Feature Layers still contain the variable syntax: {{8191c13d656a4a97a83f30f09d13543f.label}}

The other properties of the analytic are being correctly replaced using the existing items.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.