Ran
|
Jobs
1
|
Files
219
|
Run time
19min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
Filter bar (#2701) Redid #2698 on top of the known working master in the hopes of no longer hitting that weird migration CI failure, over migrations that `manage makemigrations` says do not exist and so cannot be generated O_o Related PRs/issues #2669 #2685 **Documentation:** - [x] Is my code documented? **Commits** This builds on another, not yet merged, PR, so most of the "files changed" are not actually part of this PR. The relevant changes are specifically in https://github.com/mozilla/foundation.mozilla.org/pull/2698/commits/0286cd09f **How to test** short version: - https://foundation-mofostaging-pr-2701.herokuapp.com/cms/pages/16/edit/ for the CMS side, - https://foundation-mofostaging-pr-2701.herokuapp.com/en/campaigns/until-event-evidence/ for the live example long version: check out the branch, and... - add `ENABLE_PROFILE_DIRECTORY_BLOCK=True` to your `.env` file (hurray, feature flags) - run `inv catch-up` (just to make sure. This also runs the migrations) - if you started on an empty database, `inv manage load_fake_data` is a good idea, so you have something to edit - run `npm start` to start everything up and then once running head over the `http://localhost:8000/cms" and log in as usual (if you had an empty db, you might need to run the createsuperuser command) - head over to the single-page campaign page, and edit it: add a `profile directory` component to the streamfield body, and set the profile type to `fellow`, and the year filter to `2013,2014,2015,2016,2017,2018,2019`, then "save draft" (or publish) and then view the draft (or live page). Scroll to the profile listing, and hit the various filter buttons to see content getting swapped in based on the year you picked.
14 of 14 new or added lines in 1 file covered. (100.0%)
2703 of 3632 relevant lines covered (74.42%)
0.74 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
13 |
72.77 |
-3.6% | network-api/networkapi/wagtailpages/customblocks.py |
Lines | Coverage | ∆ | File |
---|---|---|---|
3 |
72.77 |
-3.6% | network-api/networkapi/wagtailpages/customblocks.py |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 7783.1 (PERCY_TOKEN=[secure]) | 219 |
74.42 |
Travis Job 7783.1 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|