Skip to content

Conversation

@tech4him1
Copy link
Owner

No description provided.

Benaiah and others added 24 commits August 1, 2017 20:36
- Removes `parseJsonResponse`
- Errors on non-ok responses for text responses as well as JSON
  responses
- Adds an optional `meta` field to `APIError` in
  `src/valueObjects/errors/APIError.js`
- Passes github error responses to `APIErrors` generated by `request`
  in `API.js` of github backend
Functions refactored:

 - `storeMetadata`
 - `composeFileTree`
 - `persistFiles`
 - `uploadBlob`

These refactors had to be done together, since each the methods
refactored had implicit dependencies on mutations made by the others.
Specifically, `composeFileTree` and `uploadBlob` had to be called in a
specific order to mutate their arguments correctly. This led to a race
condition in `persistFiles` that was (fortunately) only affecting
debugging.

This commit removes the mutation and makes the functions more
independent, in addition to making general readability and code length
improvements to the affected functions. `composeFileTree` has also had
its filtering of uploaded files removed, as that was a concern better
handled by the caller.
them.

This is not optimal, but it is how the GitHub implementation works and
should be fixed later.
@tech4him1 tech4him1 force-pushed the gitlab branch 2 times, most recently from 99d0ad9 to 1b8f2e8 Compare August 29, 2017 22:52
erquhart pushed a commit that referenced this pull request Jan 4, 2018
Make contributor data available to hugo
@tech4him1 tech4him1 force-pushed the gitlab branch 2 times, most recently from 99f68e3 to c9d045e Compare January 4, 2018 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants