uisautomation / media-webapp

Web application for the University Media Platform
https://alpha.media.cam.ac.uk
MIT License
4 stars 7 forks source link

Make track types configurable #400

Closed rjw57 closed 5 years ago

rjw57 commented 5 years ago

Previously we hard-coded the track types which would be promoted to media items as a setting. This PR keeps that setting but uses it as a default to populate a field in Series objects. That field specifies which tracks should be uploaded as media items and can be changed per Series.

This PR also improves the list display for Series in the admin to include the repository which is useful when there are multiple repositories being imported.

rjw57 commented 5 years ago

I'm going to deploy to dev for testing.

codecov[bot] commented 5 years ago

Codecov Report

Merging #400 into master will increase coverage by 0.02%. The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #400      +/-   ##
==========================================
+ Coverage   81.76%   81.79%   +0.02%     
==========================================
  Files          53       53              
  Lines        2397     2400       +3     
==========================================
+ Hits         1960     1963       +3     
  Misses        437      437
Impacted Files Coverage Δ
oaipmh/records.py 11.53% <0%> (-1.67%) :arrow_down:
oaipmh/models.py 74.07% <100%> (+0.99%) :arrow_up:
oaipmh/admin.py 78.84% <50%> (ø) :arrow_up:

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 813394f...8d810f8. Read the comment docs.

rjw57 commented 5 years ago

Closing since I think we have a better way to do it.