GitLab API: Inconsistent handling of requests in `~/api.js`
The following discussion from !45711 (merged) should be addressed:
-
@dpisek started a discussion: (+4 comments) That is a tricky one!
How about doing something like this for now:
Api.projects(search, { order_by: 'id' }, callback).catch(() => {
callback();
});
And maybe we can create a follow-up to capture a discussion on how to consistently handle errors within Api
- looking at it's methods it seems like in the majority of cases we are not catching errors.
Only in groupProjects
, issueTemplate
, issueTemplates
, userProjects
and newLabel
are we doing so. And within those the way we deal with the errors also differs.
WDYT?
Edited by Zack Cuddy