-
Notifications
You must be signed in to change notification settings - Fork 382
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
Remove Opera from Dashboard #586
Conversation
@@ -165,7 +165,7 @@ <h3>Chromium status</h3> | |||
<span>[[feature.browsers.chrome.webview]]</span> | |||
</span> | |||
</template> | |||
<template is="dom-if" if="[[!feature.browsers.chrome.origintrial]]"> | |||
<!-- <template is="dom-if" if="[[!feature.browsers.chrome.origintrial]]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think you still want to keep this outer conditional. Just comment out the inner opera bits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The inner Opera is the only thing inside this particular tag which is why its included. The closing template is on line 192.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now. Wasn't reading the diff correctly.
There's some client stuff in https://github.com/GoogleChrome/chromium-dashboard/blob/master/static/js/admin/feature_form.js. |
PTAL Should be change the |
You can leave it a switch. Can you remove the actual code bits? |
can you look at this line. There should be a closing {% endif %} for it, but I'm having trouble seeing which one it is. |
Joe, I'm not clear on exactly which line you're referring to in that diff (the link doesn't point to a specific line), but AFAICT that diff as a whole is well balanced in terms of if and endif statements. |
The link points to 130 when I follow it. My changes to that file have 4 'if's and 3 'endif's. |
Ah, I see, apologies for not noticing that. The issue, FAICT, is that you're leaving an {% if ... %} block in the file inside of an HTML comment. That still likely gets evaluated and leads to a mismatch (see https://stackoverflow.com/questions/719915/how-to-put-comments-in-django-templates). If you'd remove that whole line instead, or use {% #... } for that line, things ought to work. The matching endif is here in case that helps. |
I'm not leaving it inside a comment. I commented the code initially because we don't have a staging server for this and I wanted Eric to sanity check the work before I proceeded. (Uncommenting is quicker than restoring deleted lines.) I see where I messed up now. I had already included the replacement line (which is where the extra 'if' came from). I had forgotten why that other line was there. |
@ebidel I think I'm ready for final review. |
@ebidel Is that Lighthouse error because of something I touched? There's no link that would let me get more information. (Is this something I'll be able to investigate when I get this running locally?) |
When this is merged, I should do the deployment to see if anything goes wrong. |
I missed something. I just tested locally. Opera is gone from the edit forms, but still appears in status entries. Do we want to continue displaying the data we have? |
Ignore the Lighthouse bot. If you're running locally and have made changes to the polymer elements (you have), you'll need to run https://github.com/GoogleChrome/chromium-dashboard#debugging--settings |
I ran |
Eric,
A while back we discussed removing Opera from Chrome Status. If I remember correctly, we agreed that it should go.
I've started by commenting what I think should be removed. Let me know if I've made any mistakes or omissions. Then I'll remove it for real.
Thanks,
Joe