Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Upgrade edx-enterprise-data to 0.2.5 and unpin many requirements #206

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

georgebabey
Copy link
Contributor

@georgebabey georgebabey commented Aug 29, 2018

Unpinned a number of requirements so they would be upgraded as part of
make upgrade as recommended by OEP-18. In particular the edx-enterprise-data
django app was not pinning edx-drf-extensions which resulted in 2 different
versions of DRF in the requirements (one for enterprise-data and one for this
IDA).

Upgrading DRF resulting in an assertion failure that was added in DRF 3.7.4

Cannot both declare the field 'created' and include it in the CourseProgramMetadataSerializer
'exclude' option. Remove the field or, if inherited from a parent serializer, disable with `created = None`.

encode/django-rest-framework#5599

Because the created date was being excluded, it is not needed in the CourseProgramMetadataSerializer and has been removed.

Unpinned a number of requirements so they would be upgraded as part of
`make upgrade` as recommended by OEP-18. In particular the edx-enterprise-data
django app was not pinning edx-drf-extensions which resulted in 2 different
versions of DRF in the requirements (one for enterprise-data and one for this
IDA).

Upgrading DRF resulting in an assertion failure that was added in DRF 3.7.4
```
Cannot both declare the field 'created' and include it in the CourseProgramMetadataSerializer
'exclude' option. Remove the field or, if inherited from a parent serializer, disable with `created = None`.
```

encode/django-rest-framework#5599

Because the created date was being excluded, it is not needed in the CourseProgramMetadataSerializer and
has been removed.
@codecov
Copy link

codecov bot commented Aug 29, 2018

Codecov Report

Merging #206 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #206   +/-   ##
=======================================
  Coverage   97.85%   97.85%           
=======================================
  Files          53       53           
  Lines        3173     3173           
  Branches      247      247           
=======================================
  Hits         3105     3105           
  Misses         43       43           
  Partials       25       25
Impacted Files Coverage Δ
analytics_data_api/v0/serializers.py 94.46% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f7a1aa...36af300. Read the comment docs.

Copy link
Contributor

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

Copy link
Contributor

@christopappas christopappas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran the tests, all pass!

@georgebabey georgebabey merged commit 6d28122 into master Aug 30, 2018
@georgebabey georgebabey deleted the gbabey/upgrade-enterprise-0.2.5 branch August 30, 2018 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants