-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collections Pagination #554
Conversation
This reverts commit a8af5b7.
Codecov Report
@@ Coverage Diff @@
## master #554 +/- ##
==========================================
+ Coverage 95.9% 96.03% +0.13%
==========================================
Files 151 159 +8
Lines 5465 5830 +365
Branches 220 220
==========================================
+ Hits 5241 5599 +358
- Misses 189 196 +7
Partials 35 35
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall functionality works great! A couple of minor suggestions:
- The default value of
settings.PAGE_SIZE_COLLECTIONS
could be lowered to something like 20-50 now. - Having
<<
and>>
controls for going to the first and last page would be useful (maybe check with Peter about whether that's worth doing in this PR or a future one, ditto for sorting controls).
.travis.yml
Outdated
@@ -7,7 +7,7 @@ matrix: | |||
- install: | |||
- env | grep TRAVIS > .env | |||
- env | grep CI >> .env | |||
- docker-compose -f docker-compose-travis.yml run celery echo | |||
- docker-compose -f docker-compose-travis.yml build web celery |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change necessary? run celery echo
seems to be the standard command here (also used in micromasters, open-discussions, and the cookiecutter
django project template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was done during debugging of a travis issue (see comment below on the -e
flags, but it's not necessary. Reverted to the run celery echo
form.
requirements.txt
Outdated
-e git+https://github.com/mitodl/django-elastic-transcoder.git#egg=django-elastic-transcoder | ||
-e git+https://github.com/Brown-University-Library/django-shibboleth-remoteuser.git#egg=django-shibboleth-remoteuser | ||
-e git+https://github.com/mitodl/mit-moira.git#egg=mit-moira | ||
-e git+https://github.com/mitodl/pycaption.git#egg=pycaption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert these changes? For some reason the -e
flag causes issues with the Salt deployment script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. This is a little problematic.
The story about why the -e
flags were added is a little complicated.
Last week travis builds started to fail, due to failures in tox
. Tox was failing because when it created a virtualenv it was installing the latest version of pip (pip10). Pip10 would fail unless git+...
dependency specs were prefixed with -e
. I do not understand yet why installing a package with the '-e' flag would cause failures on travis.
Unfortunately I couldn't find a way to pin a pip version in tox. So thus this change.
So, we have two options:
- Update salt deployment to use the
-e
flag. - Update the requirements file to satisfy pip 10 in some way that is compatible with salt.
Can you point me towards the salt deployment script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, updated default page size to be 50.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where the salt deployment script is, but @blarghmatey should be able to help with that. Ideally it would be best to go back to having the -e
flags if possible since they're autogenerated with the requirements.txt
file.
@mbertrand reverted requirements.txt to take out -e flags, should work with travis now per bug fix from pip 10.0.1 (pypa/pip#5251). Ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 👍
What are the relevant tickets?
Partially implements #521
What's this PR do?
getCollections
api callscollectionsPagination
actions/reducers.withPagedCollections
higher-order component.CollectionListPage
withwithPagedCollections
Paginator
component toCollectionListPage
.How should this be manually tested?
What GIF best describes this PR or how it makes you feel?