Closed
Bug 1167349
Opened 9 years ago
Closed 9 years ago
Turn swagger back on in production (and paginate any api's which aren't already)
Categories
(Tree Management :: Treeherder: API, defect)
Tree Management
Treeherder: API
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wlach, Assigned: wlach)
References
Details
Attachments
(1 file)
In bug 1065786 we disabled swagger on production. It was really useful though! We should turn it back, after paginating any api endpoints which aren't currently (to prevent accidental DDOS, the original concern here). Mauro, do you know which api's we need to look into here offhand?
Flags: needinfo?(mdoglio)
Comment 1•9 years ago
|
||
The only endpoints I would check are the ones in PerformanceDataViewSet and BugscacheViewSet. The former because I don't know the maximum size of the dataset returned, the latter because now we have several thousands intermittent bugs and I guess with the right search string you can fetch most of them.
Flags: needinfo?(mdoglio)
Assignee | ||
Comment 2•9 years ago
|
||
Going to try to get this turned back on in advance of Whistler.
Assignee: nobody → wlachance
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Mauro Doglio [:mdoglio] from comment #1) > The only endpoints I would check are the ones in PerformanceDataViewSet and > BugscacheViewSet. The former because I don't know the maximum size of the > dataset returned, the latter because now we have several thousands > intermittent bugs and I guess with the right search string you can fetch > most of them. It looks like BugscacheViewSet's output is essentially capped at 50 because of the underlying method in refdata.py: https://github.com/mozilla/treeherder/blob/master/treeherder/model/derived/refdata.py#L1374 There are no methods in PerformanceDataViewSet that return an unbounded set of results: https://github.com/mozilla/treeherder/blob/master/treeherder/webapp/api/performance_data.py I'd say we're probably good to just turn this back on.
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8623240 -
Flags: review?(mdoglio)
Updated•9 years ago
|
Attachment #8623240 -
Flags: review?(mdoglio) → review+
Comment 5•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/5fea0d4b134308ae759ea3995047fbc608a26321 Bug 1167349 - Turn swagger back on in production and update to latest
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•