-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels editor forgets selected labels when you've made changes once #784
Comments
Hum yes confirmed... But if you refresh page and open Editor labels are selected. |
Yeah, this is likely some kind of regression. It's worked in the past. |
The code just throws the response model at the issue. I'm not sure if that ever worked? Anyway, I have a fix. |
(Bug is here: https://github.com/webcompat/webcompat.com/blob/master/webcompat/static/js/lib/models/issue.js#L219 - not sure what exactly the response object is, but it takes a little more work to get the labels array..) |
What I see myself.
This doesn't always happen. I haven't identified if it's a specific label or if it's an HTTP issue. |
The specific label firefox-mobile will always disappear because we don't have it in the current set of labels. What probably happens here is that it's the only legacy label with a hyphen in it, and since we use hyphens as a "namespace" separator, the code will handle "firefix-mobile" as a label called "mobile" in the namespace "firefox". Since we AFAIK also have a label called just "mobile", we most likely end up applying that label instead. I think we should kill the firefox-mobile label. It's going to be very confusing to have some labels with hyphens that are not intended to be namespaced, although if we move to a hard-coded set of labels it won't be impossible to do so. |
all new bugs are written with |
hm.. that's browser-firefox-mobile. OK, I need to debug this.. #798 is probably invalid. |
Go to issue, for example https://webcompat.com/issues/1
The issue should have two labels: "firefox" and "sitewait"
Open label editor and apply another label, for example "windows". Click "Save and close"
Open label editor again
Bug: no labels are selected. If you close the editor unaware of this state, it will remove all labels from the issue.
The text was updated successfully, but these errors were encountered: