njpaul / azure-devops-ordered-dropdown

A dropdown control for Azure DevOps work item forms that lets you control the order of items in the list
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Preview of query is not updating data after clicking on different entry #2

Open ckWorkJD opened 3 months ago

ckWorkJD commented 3 months ago

We have a custom field using the Ordered Dropdown control extension and the displayed value of the field is not updating in the preview pane when the user clicks on a new entry from a query result.

Steps to reproduce: 1) Run a query with a custom field using the Ordered Dropdown extension in the columns area. 2) Open the preview pane 3) The information in the preview pane will be correct for all values 4) Click on a different query result item with a different value for the custom field. 5) The preview pane on the right will show an incorrect value in the preview pane for the custom field. This incorrect value will match the first work item returned from the query.

Work-around: Turn on the “New Boards” feature.

njpaul commented 3 months ago

Thanks for the report. I'll try to ramp back up on this over the weekend. It's been a while since I've had to work with this code, but I have been thinking about a possible alternative implementation that can use the native drop-down and perhaps avoid these kinds of surprises.

On Wed, Jun 26, 2024, 06:45 ckWorkJD @.***> wrote:

We have a custom field using the Ordered Dropdown control extension and the displayed value of the field is not updating in the preview pane when the user clicks on a new entry from a query result.

Steps to reproduce:

  1. Run a query with a custom field using the Ordered Dropdown extension in the columns area.
  2. Open the preview pane
  3. The information in the preview pane will be correct for all values
  4. Click on a different query result item with a different value for the custom field.
  5. The preview pane on the right will show an incorrect value in the preview pane for the custom field. This incorrect value will match the first work item returned from the query.

Work-around: Turn on the “New Boards” feature.

— Reply to this email directly, view it on GitHub https://github.com/njpaul/azure-devops-ordered-dropdown/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4OXOO5CZTJAHISQXBYW5TZJKSW5AVCNFSM6AAAAABJ5W3IOCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TKMJRGI2TOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

njpaul commented 3 months ago

I've now started some prototype work on a version 2 of this extension. If this works as expected, I'll publish a "v2" version of this extension. The change will not be backward compatible and I don't want to break the extension for existing users.

This next version would require configuring the dropdown order in a hub, rather than within the process settings, which causes the incompatibility.