Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gi11es
Copy link
Contributor

@gi11es gi11es commented May 30, 2017

Being constrained to the hardcoded list is too limiting.
Using the actual codes is also less prone to confusion.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 84.97% when pulling b981c1b on gi11es:loaderresult-custom-error into 0cfe22d on thumbor:master.


class LoaderResult(object):

ERROR_NOT_FOUND = 'not_found'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gi11es Removing those const would be backward incompatible. For thumbor 6 it should be possible to support both constants and response codes.

                elif result.loader_error == LoaderResult.ERROR_TIMEOUT:
                     # Return a Gateway Timeout status if upstream timed out (i.e. 599)
                     self._error(504)
                 elif isinstance(result.loader_error, int):
                     self._error(result.loader_error)
                      return

@gi11es
Copy link
Contributor Author

gi11es commented May 30, 2017

Fair enough, I'll update the PR to that effect

@gi11es gi11es force-pushed the loaderresult-custom-error branch from b981c1b to 2a666d0 Compare May 30, 2017 15:41
@coveralls
Copy link

coveralls commented May 30, 2017

Coverage Status

Coverage decreased (-0.04%) to 84.866% when pulling 2a666d0 on gi11es:loaderresult-custom-error into 0cfe22d on thumbor:master.

@gi11es gi11es force-pushed the loaderresult-custom-error branch from 2a666d0 to afb1c0e Compare May 31, 2017 11:34
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 84.916% when pulling afb1c0e on gi11es:loaderresult-custom-error into 0cfe22d on thumbor:master.

@gi11es
Copy link
Contributor Author

gi11es commented May 31, 2017

@masom your concerns should be addressed now.

@gi11es gi11es force-pushed the loaderresult-custom-error branch from 5a1fdd5 to bcaae99 Compare August 15, 2017 13:29
Being constrained to the hardcoded list is too limiting.
Using the actual codes is also less prone to confusion.
@gi11es gi11es force-pushed the loaderresult-custom-error branch from bcaae99 to 30b20d5 Compare August 15, 2017 13:31
@coveralls
Copy link

coveralls commented Aug 15, 2017

Coverage Status

Coverage increased (+0.01%) to 84.923% when pulling 30b20d5 on gi11es:loaderresult-custom-error into eeeebaa on thumbor:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 84.923% when pulling 30b20d5 on gi11es:loaderresult-custom-error into eeeebaa on thumbor:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 84.923% when pulling 30b20d5 on gi11es:loaderresult-custom-error into eeeebaa on thumbor:master.

@gi11es
Copy link
Contributor Author

gi11es commented Aug 15, 2017

Merge pls? :)

@masom masom merged commit 6c3bc3f into thumbor:master Aug 15, 2017
@masom
Copy link
Contributor

masom commented Aug 15, 2017

Thanks @gi11es for rebasing this. 🚀

@Kmaschta Kmaschta mentioned this pull request Jan 5, 2018
9 tasks
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