Closed Bug 1087349 Opened 10 years ago Closed 9 years ago

Platform row is duplicated after every refresh for rows where the platform name is guessed

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: camd)

References

Details

(Keywords: regression)

Attachments

(4 files)

For this result set:
https://treeherder.mozilla.org/ui/#/jobs?repo=date&revision=0c480befd4ea

When you first open the page, there are no duplicate platform rows (for the job results).
However each time the UI refreshes, rows where the platform name was guessed (a la bug 1087341) are duplicated.

See screenshots.
No longer blocks: treeherder-dev-transition
Keywords: regression
We hit this again with bug 1078265 / bug 1073772.
Priority: P2 → P1
Priority: P1 → P2
Ryan hit this again today with l10n repacks.
Assignee: nobody → cdawson
In these cases, there was a space in the aggregate platformId that was generated.  Then when we went to find that with JQuery, we couldn't (spaces are invalid).  So we added the new one.  this fix is just to ensure there are no spaces in the aggregate platform id.
Status: NEW → ASSIGNED
Attached file ui PR
Attachment #8588793 - Flags: review?(wlachance)
Comment on attachment 8588793 [details] [review]
ui PR

Looks reasonable, thanks for iterating on this with me!
Attachment #8588793 - Flags: review?(wlachance) → review+
Commit pushed to master at https://github.com/mozilla/treeherder-ui

https://github.com/mozilla/treeherder-ui/commit/a1c1c9aded0d1f1745ebf76b904446d31f34d3c4
Bug 1087349 - fix platform duplication on guessed platform names

Ensure HTML aggregate ids have no spaces.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Ryan saw this on stage again this morning with a platform that had a "." in it.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached file ui PR 2
Attachment #8592543 - Flags: review?(wlachance)
Apparently just escaping certain characters with a ``\`` doesn't work with DOM ids.  I tested this out with several characters.  So now I just replace them with a ``-`` character and it works great.
Attachment #8592543 - Flags: review?(wlachance) → review+
Commit pushed to master at https://github.com/mozilla/treeherder-ui

https://github.com/mozilla/treeherder-ui/commit/60d1a92e06ac8008f7a1e47c5ca266ab4c55fbb0
Bug 1087349 - replace characters instead of escaping them

Ends up escaping characters in DOM ids didn’t work well.  This now
replaces them with hyphens, which DOES work well.
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/8a5db6d00b4395387b54a8670e59935746d6254e
Bug 1087349 - fix platform duplication on guessed platform names

Ensure HTML aggregate ids have no spaces.

https://github.com/mozilla/treeherder/commit/e7ff0b0b9d341c6bce3f9c74ffa1680c9d380b8a
Bug 1087349 - replace characters instead of escaping them

Ends up escaping characters in DOM ids didn’t work well.  This now
replaces them with hyphens, which DOES work well.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: