Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Issue 60130043: Add support for cached fonts

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by gary.poster
Modified:
10 years, 2 months ago
Reviewers:
bac, mp+204772
Visibility:
Public.

Description

Add support for cached fonts Per https://launchpad.net/bugs/1274955 , and building off recently landed work in the GUI itself (https://github.com/juju/juju-gui/pull/104), this adds configuration to support cached fonts. To QA, deploy the charm with GUI trunk as you wish, and then verify in your browser's inspector's network tab that the font CSS is being downloaded from Google. Then set cached-fonts to true (command line or GUI), wait about ten seconds, do a hard reload on the GUI, and you should see in the network tab that there is no CSS from Google anymore, and there is now a fontface.css delivered locally. To deploy the charm with GUI trunk, I like to `git pull juju develop` in my GUI trunk, `make clean && make distfile`, copy the release into the charm's releases directory, `juju switch local`, `juju bootstrap`, and `make deploy` in the charm. YMMV: the other option instead of the `make distfile` approach is to use `juju set juju-gui juju-gui-source=develop`. https://code.launchpad.net/~gary/charms/precise/juju-gui/cachedFonts/+merge/204772 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Add support for cached fonts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 1 chunk +9 lines, -0 lines 0 comments Download
M config/config.js.template View 1 chunk +1 line, -0 lines 0 comments Download
M hooks/backend.py View 1 chunk +1 line, -1 line 0 comments Download
M hooks/utils.py View 2 chunks +2 lines, -1 line 0 comments Download
M tests/test_backends.py View 2 chunks +3 lines, -1 line 0 comments Download
M tests/test_utils.py View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4
gary.poster
Please take a look.
10 years, 2 months ago (2014-02-04 20:25:22 UTC) #1
bac
Code LGTM. Doing QA now.
10 years, 2 months ago (2014-02-04 20:56:49 UTC) #2
bac
QA-OK
10 years, 2 months ago (2014-02-04 21:26:18 UTC) #3
gary.poster
10 years, 2 months ago (2014-02-04 21:29:26 UTC) #4
*** Submitted:

Add support for cached fonts

Per https://launchpad.net/bugs/1274955 , and building off recently landed work
in the GUI itself (https://github.com/juju/juju-gui/pull/104), this adds
configuration to support cached fonts.

To QA, deploy the charm with GUI trunk as you wish, and then verify in your
browser's inspector's network tab that the font CSS is being downloaded from
Google.  Then set cached-fonts to true (command line or GUI), wait about ten
seconds, do a hard reload on the GUI, and you should see in the network tab that
there is no CSS from Google anymore, and there is now a fontface.css delivered
locally.

To deploy the charm with GUI trunk, I like to `git pull juju develop` in my GUI
trunk, `make clean && make distfile`, copy the release into the charm's releases
directory, `juju switch local`, `juju bootstrap`, and `make deploy` in the
charm.  YMMV: the other option instead of the `make distfile` approach is to use
`juju set juju-gui juju-gui-source=develop`.

R=bac
CC=
https://codereview.appspot.com/60130043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b