Permalink
Commits on Oct 20, 2017
  1. Merge pull request #4469 from jwhitlock/remove-ban-middleware-1409423

    escattone committed Oct 20, 2017
    bug 1409423: Avoid Vary: Cookie by removing ban middleware
Commits on Oct 19, 2017
  1. Merge pull request #4470 from escattone/fix-dev-env-1409894

    stephaniehobson committed Oct 19, 2017
    bug 1409894: fix header/footer for dev env
  2. Merge pull request #4455 from schalkneethling/issue#283-editor-perfor…

    stephaniehobson committed Oct 19, 2017
    …mance-prefetch-preconnect
    
    Fix issue #283, add dns-prefetch, preconnect for editor iframe
Commits on Oct 18, 2017
  1. Merge pull request #4468 from jwhitlock/static-url-test

    escattone committed Oct 18, 2017
    Use current STATIC_URL setting in test
  2. bug 1407806: Remove Vary: Cookie avoidance

    jwhitlock committed Oct 16, 2017
    Without the BanMiddleware, special session logic isn't needed in the view.
  3. bug 1409423: Remove ban middleware, add new auth

    jwhitlock committed Oct 17, 2017
    Remove the middleware to check bans for the user. Instead, when a banned
    user loads a page, the new KumaAuthBackend backend will treat them as an
    anonymous user. When they log in, they'll get the ban message.
    
    Without the ban middleware, several endpoints no longer have the
    Vary: Cookie header.
    
    Existing users will continue to authenticate against the allauth
    auth backend, because this is hard-coded in the session. New users, the
    most likely to be banned, will get the new KumaAuthBackend. At some future
    date, we can remove the allauth auth backend, which will log out
    existing sessions.
  4. bug 1399639: Upgrade django-allauth, dependencies

    jwhitlock committed Oct 17, 2017
    * django-allauth 0.24.1 → 0.33.0: AJAX account management views, easier
      OAuth2 callback_url customization, Django compatibility, GitHub email
      query, HMAC email confirmations, better Jinja2 support, easier
      extensions of authentication backend
    * oauthlib 1.0.3 → 2.0.4: Sanitation / encoding fixes, OpenID support
    * requests-oauthlib 0.6.1 → 0.8.0: Improve automatic token refresh
    
    Kuma requires some update as well:
    
    * The email scope is now included by the default GitHubProvider
    * The confirmation email uses HMAC instead of storing a record in the
      database, changing the URL pattern and the tests.
  5. bug 1407806: Add test for Vary: Cookie header

    jwhitlock committed Oct 18, 2017
    This header shouldn't be present, but is added by the BanMiddleware.
  6. bug 1407806: Refactor code view tests to py.test

    jwhitlock committed Oct 18, 2017
    The override_config decorator doesn't appear to work with py.test, so I
    wrote a fixture that sets the config and rolls it back. The database
    backend was talking to Memcache (which is unexpected), so I disabled
    that in the test settings.
    
    One existing test, test_code_sample_iframe_embed, duplicates iframe
    src sanitation in test_content, so it is removed.
  7. Use current STATIC_URL setting in test

    jwhitlock committed Oct 18, 2017
    The path of the experiment JS can change due to STATIC_URL, which can
    now be set from the environment.
Commits on Oct 16, 2017
  1. Merge pull request #4462 from jwhitlock/aws-stage-1408460

    escattone committed Oct 16, 2017
    bug 1408460: Use stage.mdn.moz.works as stage site
  2. Merge pull request #4466 from escattone/improve-caching-1407806

    jwhitlock committed Oct 16, 2017
    return unused fixtures from root to wiki conftest
  3. Merge pull request #4465 from escattone/ks-docker-build-no-cache-1409119

    jwhitlock committed Oct 16, 2017
    bug 1409119: do not use cached layers when building ks image
  4. bug 1409119: do not use cached layers when building ks image

    escattone committed Oct 16, 2017
    * the purpose of this is to ensure that the "npm update" command
      is always run so that updates to the "mdn-browser-compat-data"
      are always picked-up
  5. Merge pull request #4464 from jwhitlock/pre-push-2017-10-16

    escattone committed Oct 16, 2017
    Pre-push 2017-10-16
  6. Update strings 2017.17

    jwhitlock committed Oct 16, 2017
    Convert from deprecated mailing list to Discourse forum
  7. Update locales, kumascript

    jwhitlock committed Oct 16, 2017
    Add updated translations for:
    * es-MX - Spanish (Mexico)
    * ka - Georgian
    * te - Telegu
    
    Add kumascript PRs:
    * mdn/kumascript#320 - L10n:Common, SectionOnPage: Fix escaping
    * mdn/kumascript#346 - Push tagged images to quay.io
    * mdn/kumascript#352 - SpecName, spec2: Add Visual Viewport API
    * mdn/kumascript#353 - LegacyAddonsNotice: Add French
    * mdn/kumascript#354 - JsSidebar: Add Client-side web APIs
Commits on Oct 13, 2017
  1. bug 1408460: Use stage.mdn.moz.works as stage site

    jwhitlock committed Oct 13, 2017
    Replace developer.allizom.org with stage.mdn.moz.works in various
    places, including the default domain for integration and performance
    tests and in the documentation.
  2. Merge pull request #4460 from jwhitlock/discourse-1397786

    escattone committed Oct 13, 2017
    bug 1397786: Update mailing list links to Discourse
  3. Merge pull request #4459 from jwhitlock/rm-prod-details-1244853

    escattone committed Oct 13, 2017
    bug 1244853: Remove PROD_DETAILS_DIR
  4. Merge pull request #4461 from escattone/improve-caching-1407806

    escattone committed Oct 13, 2017
    bug 1407806: improve caching for file attachments
  5. bug 1407806: improve caching for file attachments

    escattone committed Oct 13, 2017
    * use Django-supplied decorators to add "Cache-Control"
      header as well as handle "Last-Modified" and its
      related request headers like "If-Modified-Since"
    * allow the "max-age" caching-header value for file
      attachments to be configured from the environment via
      ATTACHMENTS_CACHE_CONTROL_MAX_AGE
    * block Django's SessionMiddleware from adding the
      "Vary: Cookie" header
    * move some generally-useful pytest fixtures from
      "kuma/wiki/tests/conftest.py" to the top level
      "kuma/conftest.py"
    * add "file_attachment" fixture to "kuma/attachments/
      tests/conftest.py"
    * convert/modify some of the old-style tests in
      "kuma/attachments/tests/test_views.py" to the
      pytest style and add one new test for the
      file-attachments endpoint
    * add "convert_to_utc" function to "kuma/attachments/utils.py"
  6. bug 1397786: Replace mailing list with Discourse

    jwhitlock committed Oct 13, 2017
    * Change dev-mdc and dev-mdn links to Discourse
    * Change dev-mdn email gateway to admin email
  7. bug 957802: Update contribute.json

    jwhitlock committed Oct 13, 2017
    * Remove jpetto from IRC contacts
    * Remove ansible from keywords
Commits on Oct 11, 2017
  1. Merge pull request #4457 from mozilla/alabaster-1361729

    escattone committed Oct 11, 2017
    bug 1361729: Switch to alabaster theme
  2. bug 1361729: Update links

    jwhitlock committed Oct 11, 2017
Commits on Oct 9, 2017
  1. Merge pull request #4456 from mozilla/pre-push-2017-10-09

    escattone committed Oct 9, 2017
    Update kumascript, PRs 338, 339, 341, 342
  2. Update kumascript, PRs 338, 339, 341, 342

    jwhitlock committed Oct 9, 2017
    * mdn/kumascript#338 - GroupData: Fetch Abort spec update
    * mdn/kumascript#339 - GroupData: add MediaRecorderErrorEvent
    * mdn/kumascript#341 - GamepadEventProperties: Fix typo
    * mdn/kumascript#342 - CSS_Ref, csssyntax: filter-function update