Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove Django filters #2635
Comments
agjohnson
added
Good First Issue
Sprintable
labels
Feb 7, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ericholscher
Feb 8, 2017
Member
I believe it's used in REST Framework, but the in page filters aren't being used. It broke our pagination on Builds in #2633, so it might also be breaking other stuff, and is unnecessary complexity.
|
I believe it's used in REST Framework, but the in page filters aren't being used. It broke our pagination on Builds in #2633, so it might also be breaking other stuff, and is unnecessary complexity. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vardhan26
Feb 9, 2017
I would like to fix this bug but I am new and do not know how to start. how can I fix this?
vardhan26
commented
Feb 9, 2017
|
I would like to fix this bug but I am new and do not know how to start. how can I fix this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
humitos
Feb 17, 2017
Member
@vardhan26 I started today to take a look at the code, but what I would do is something like:
- read this http://docs.readthedocs.io/en/latest/contribute.html
- install readthedocs project in my computer following http://docs.readthedocs.io/en/latest/install.html#installing-read-the-docs
- remove django-filter (
pip uninstall django-filter) - run tests (
python manage.py test) - see what fails
- try to fix them
- runserver (
python manage.py runserver) - try to build different projects again (
python manage.py update_repos pip) - create a PR
- be happy to be a contributor :)
|
@vardhan26 I started today to take a look at the code, but what I would do is something like:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ChamanAgrawal
Mar 8, 2017
hey @agjohnson , @humitos do i have to debug all the 174 errors and 25 failures and then send PR or I can debug few and contribute ?
ChamanAgrawal
commented
Mar 8, 2017
•
|
hey @agjohnson , @humitos do i have to debug all the 174 errors and 25 failures and then send PR or I can debug few and contribute ? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rixx
Mar 9, 2017
Contributor
@vardhan26, @humitos, @ChamanAgrawal: are you working on this issue atm?
|
@vardhan26, @humitos, @ChamanAgrawal: are you working on this issue atm? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
humitos
Mar 9, 2017
Member
@rixx No, I'm not. Would you like to?
I would like to fix my previous command to run the tests: tox -e py27, since they are using tox in RTD :)
|
@rixx No, I'm not. Would you like to? I would like to fix my previous command to run the tests: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
rixx
Mar 9, 2017
Contributor
I found the following uses of django_filters:
core.urlsuses views fromdjango_filters.viewsindeprecated_urls; I assume those are to be deleted?projects.filtersandbuilds.filtersdefine lots of filters that are used asfilter_classinrestapi.views.model_views, and are passed ascontextsometimes inprojects.views.public
I'd appreciate guidance as to what to do with those, especially those used in restapi.views.model_filters and projects.views.public.
|
I found the following uses of
I'd appreciate guidance as to what to do with those, especially those used in |
added a commit
to fmoor/readthedocs.org
that referenced
this issue
May 23, 2017
ericholscher
closed this
in
72f85db
May 25, 2017
agjohnson
reopened this
Jun 5, 2017
agjohnson
added
Next Release
and removed
Good First Issue
Sprintable
labels
Jun 5, 2017
agjohnson
closed this
Jul 7, 2017
agjohnson
removed
the
Next Release
label
Jul 7, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
JLorne
Jul 13, 2017
Contributor
Sorry to write a comment in a closed issue, but I don't know where to put it.
We are using readthedocs as our documentation build system and we are using the REST API to monitoring the build status of the different versions of our repositories. Now that you removed django-filter, do you have another way to use the REST API without having to parse all builds from the beginning of time?
|
Sorry to write a comment in a closed issue, but I don't know where to put it. We are using readthedocs as our documentation build system and we are using the REST API to monitoring the build status of the different versions of our repositories. Now that you removed django-filter, do you have another way to use the REST API without having to parse all builds from the beginning of time? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidfischer
Jul 5, 2018
Contributor
@JLorne while going through some of these issues I found this. It is now possible to filter builds by project. For example, you can do something like https://readthedocs.org/api/v2/build/?project__slug=pip (that's a double underscore). Hopefully this meets your needs.
APIv2 is also now documented. Since the RTD team is going through some initial design on a v3 API, I'd love to understand your use case a bit better so we can better meet it.
|
@JLorne while going through some of these issues I found this. It is now possible to filter builds by project. For example, you can do something like https://readthedocs.org/api/v2/build/?project__slug=pip (that's a double underscore). Hopefully this meets your needs. APIv2 is also now documented. Since the RTD team is going through some initial design on a v3 API, I'd love to understand your use case a bit better so we can better meet it. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
JLorne
Jul 7, 2018
Contributor
Thank you @davidfischer for the filterable v2 API.
We are using it to monitor documentation build status for our 160 internal repositories and display build fail on TV. But we need to keep track of the build status of some versions in addition of the latest. I add a custom API that add build API with some query parameters:
- api/build?slug=pip&version=v9.0.3 => returns all pip v9.0.3 builds ordered by dates (latest first)
|
Thank you @davidfischer for the filterable v2 API.
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidfischer
Jul 8, 2018
Contributor
Currently only the slug is used for filtering. For performance reasons, we wanted to make sure that things you can filter on are indexed in the database. I don't believe the version parameter in https://readthedocs.org/api/v2/build/?project__slug=pip&version=v9.0.3 does anything.
|
Currently only the |
agjohnson commentedFeb 7, 2017
We aren't using Django Filters project anymore, this dependency should be removed. This will require some updates to the code where it is expected.