microsoft/wiql-editor

Saving not working

bergamin opened this issue · 9 comments

Describe the bug
When hitting "Save Query" button, the query isn't saved. An error happens that is only visible in the console and no UI indication is made

Environment:

  • Browser: Vivaldi
  • Hosted Azure DevOps

Screenshots
image

The query that's being edited:

SELECT
    [System.Id],
    [System.WorkItemType],
    [System.Title],
    [System.State],
    [System.AreaPath],
    [System.IterationPath],
    [Microsoft.VSTS.Scheduling.CompletedWork],
    [Microsoft.VSTS.Scheduling.RemainingWork],
    [Microsoft.VSTS.Common.ResolvedDate],
    [Microsoft.VSTS.Common.ClosedDate],
    [System.Tags]
FROM workitems
WHERE
    [System.AssignedTo] = @me
    AND (
        [Microsoft.VSTS.Common.ClosedDate] >= @startOfDay('-6d') -- This function seems to puzzle the editor. It clearly works, but it underlines it in red. That's going to be a separate report, but just to add that this isn't the cause of the error, as it also happens in a query that doesn't have it
        OR [System.State] <> 'Closed'
    )
ORDER BY [Microsoft.VSTS.Common.ClosedDate] DESC,
    [System.IterationPath] DESC,
    [System.AreaPath],
    [System.Id] DESC -- This is the new line being added to the query

To Reproduce
Steps to reproduce the behavior:

  1. Go to Wiql editor
  2. Edit the Wiql
  3. Save query
  4. Nothing happens

Expected behavior
It to save the query

Additional context
It's been some time since I created this query. Before the new boards thing that broke a lot of stuff, so perhaps this issue is yet another bug caused by the new boards experience

Would love to see this get fixed!