Skip to content

Commit

Permalink
Merge pull request #865 from uktrade/release
Browse files Browse the repository at this point in the history
Prod release
  • Loading branch information
agiamas authored Aug 26, 2020
2 parents d319534 + aca37ba commit bc30376
Show file tree
Hide file tree
Showing 24 changed files with 2,518 additions and 1,910 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
mkdir test-reports
TESTFILES=$(circleci tests glob "tests/**/*.py")
ENV_FILES=test,dev pytest ${TESTFILES} --cov=. --cov-config=.coveragerc --cov-report html --cov-report term --junitxml=test-reports/junit.xml
COVERALLS_PARALLEL=true coveralls
codecov
- run: mkdir -p workspace
- run: echo "export TARGET_CIRCLE_BUILD_NUM=$CIRCLE_BUILD_NUM" >> workspace/new-env-vars
- store_test_results:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ staticfiles
BrowserStackLocal
node_modules/

.env
ENV/

# C extensions
*.so

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Changelog

## Pre-release

### Implemented enhancements
- GAA-31 - Upgrading wagtail to 2.10
- no-ticket - migrate to codecov remove coveralls
- GAA-31 - Upgrading Wagtail to 2.9

### Fixed bugs

### Hotfix
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# directory-cms

[![circle-ci-image]][circle-ci]
[![coverage-image]][coverage]
[![codecov-image]][codecov]
[![gitflow-image]][gitflow]
[![calver-image]][calver]

Expand Down Expand Up @@ -124,8 +124,8 @@ https://github.com/uktrade?q=great
[circle-ci-image]: https://circleci.com/gh/uktrade/directory-cms/tree/develop.svg?style=svg
[circle-ci]: https://circleci.com/gh/uktrade/directory-cms/tree/develop

[coverage-image]: https://coveralls.io/repos/github/uktrade/directory-cms/badge.svg
[coverage]: https://coveralls.io/github/uktrade/directory-cms
[codecov-image]: https://codecov.io/gh/uktrade/directory-cms/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/uktrade/directory-cms

[gitflow-image]: https://img.shields.io/badge/Branching%20strategy-gitflow-5FBB1C.svg
[gitflow]: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Expand Down
6 changes: 3 additions & 3 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from rest_framework.renderers import JSONRenderer
from rest_framework.response import Response
from rest_framework.views import APIView
from wagtail.admin.api.endpoints import PagesAdminAPIEndpoint
from wagtail.admin.api.views import PagesAdminAPIViewSet
from wagtail.core.models import Orderable, Page, Site

from django.conf import settings
Expand All @@ -27,7 +27,7 @@
logger = getLogger(__name__)


class APIEndpointBase(PagesAdminAPIEndpoint):
class APIEndpointBase(PagesAdminAPIViewSet):
"""At the very deep core this is a DRF GenericViewSet, with a few wagtail
layers on top.
Expand All @@ -37,7 +37,7 @@ class APIEndpointBase(PagesAdminAPIEndpoint):
queryset = Page.objects.all()
meta_fields = []
known_query_parameters = (
PagesAdminAPIEndpoint.known_query_parameters.union(
PagesAdminAPIViewSet.known_query_parameters.union(
['lang', 'draft_token', 'service_name']
)
)
Expand Down
578 changes: 578 additions & 0 deletions dependency-check-report.html

Large diffs are not rendered by default.

Loading

0 comments on commit bc30376

Please sign in to comment.