Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Add 'notheme' #255

Merged
merged 10 commits into from
Oct 22, 2019
Merged

Add 'notheme' #255

merged 10 commits into from
Oct 22, 2019

Conversation

joewalsh
Copy link
Contributor

@joewalsh joewalsh commented Oct 21, 2019

https://phabricator.wikimedia.org/T229286

classifyElements is by far the slowest part of preparing mobile-html. It's not sustainable to keep adding exclusions to the list of specific filenames and query selectors.

I'm proposing we add notheme and request editors add it to the appropriate templates ahead of the launch of mobile-html. This will allow the mobile-html endpoint to stop calling classifyElements. There is some precedent for this with nomobile (now obviated by TemplateStyles) but will need to confirm that this is a viable option.

@joewalsh joewalsh added the hold label Oct 21, 2019
@thesocialdev
Copy link
Collaborator

thesocialdev commented Oct 21, 2019

@joewalsh Does it still need to be confirmed as a viable solution? Waiting on that to merge this PR and https://gerrit.wikimedia.org/r/c/mediawiki/services/mobileapps/+/544854

@joewalsh
Copy link
Contributor Author

@thesocialdev It still needs to be confirmed that this is a viable solution and there's not a better option. Adding the hold tag for now. https://gerrit.wikimedia.org/r/c/mediawiki/services/mobileapps/+/544854 can be merged independently.

wmfgerrit pushed a commit to wikimedia/mediawiki-services-mobileapps that referenced this pull request Oct 21, 2019
It's by far the most expensive mobile-html transform and isn't a sustaianble way to exclude items from theme application. I'm proposing a CSS class - .notheme - that editors can add to templates to exclude specfic items. Corresponding pagelib pr is here: wikimedia/wikimedia-page-library#255  but this can be merged indepenedently of that.

Bug: T229286
Change-Id: I30001bd65c5264aea3551827d63697557d306fe1
@thesocialdev thesocialdev changed the title Rename 'pagelib_theme_div_do_not_apply_baseline' to 'notheme' WIP: Rename 'pagelib_theme_div_do_not_apply_baseline' to 'notheme' Oct 21, 2019
@joewalsh joewalsh changed the title WIP: Rename 'pagelib_theme_div_do_not_apply_baseline' to 'notheme' WIP: Add 'notheme' Oct 22, 2019
@joewalsh joewalsh changed the title WIP: Add 'notheme' Add 'notheme' Oct 22, 2019
@joewalsh joewalsh removed the hold label Oct 22, 2019
@joewalsh joewalsh merged commit 859d6d4 into master Oct 22, 2019
@joewalsh joewalsh deleted the notheme branch October 22, 2019 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants