Details
- Reviewers
anlambert - Group Reviewers
Reviewers - Commits
- rDWAPPS7856c27b5cef: Bound the value of the 'limit' parameter to origin-search.
Diff Detail
- Repository
- rDWAPPS Web applications
- Branch
- origin-search-limit
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 8781 Build 12798: Cypress tests for swh-web diffs Jenkins Build 12797: tox-on-jenkins Jenkins Build 12796: arc lint + arc unit
Event Timeline
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/746/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/348/ for more details.
I agree that the limit parameter should have an upper bound but a value of 100 feels too low for me.
Also, the browse endpoint for searching origins should be updated the same way (see https://forge.softwareheritage.org/source/swh-web/browse/master/swh/web/browse/views/origin.py$181).
This also means that we should have a variable somewhere holding that upper bound value for the limit parameter of origin search.
swh/web/api/views/origin.py | ||
---|---|---|
197–198 | docstring should be updated with the limit upper bound here. | |
222 | A value of 100 seems too low for a limit upper bound. I think you could set it to 1000 or maybe even 10000 depending on how fast elasticsearch returns a search query response. |
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/749/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/749/console
swh/web/tests/api/views/test_origin.py | ||
---|---|---|
476 | The test needs to be updated after the increase of limit bound to 1000. |
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/750/ for more details.
Build is green
See https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/352/ for more details.
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/751/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/751/console
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/353/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/353/console