Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Do not raise console error on all 2xx status codes on failure #497

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

lubber-de
Copy link
Member

Description

The current API behavior raises an console error on failure, even when the status code was 2xx.
It only omits it when the status code is exactly 200

Testcase

Current: Only Status 200 is ignored

https://jsfiddle.net/q5osrg7k/2/

After: All Status 2xx are ignored

https://jsfiddle.net/q5osrg7k/3/

Screenshot

Current

200

After

2xx

Closes

Semantic-Org/Semantic-UI#4908

@lubber-de lubber-de added type/feat Any feature requests or improvements lang/javascript Anything involving JavaScript state/awaiting-reviews Pull requests which are waiting for reviews tag/sui-issue Taken from an existing Issue/PR of SUI labels Feb 18, 2019
@lubber-de lubber-de added this to the 2.7.x milestone Feb 18, 2019
Copy link
Member

@y0hami y0hami left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ColinFrick ColinFrick left a comment

Choose a reason for hiding this comment

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

LGTM

@y0hami y0hami merged commit 407446e into fomantic:develop Feb 20, 2019
@y0hami y0hami removed state/awaiting-reviews Pull requests which are waiting for reviews labels Feb 20, 2019
@lubber-de lubber-de modified the milestones: 2.7.x, 2.7.3 Feb 20, 2019
@y0hami y0hami mentioned this pull request Apr 1, 2019
@lubber-de lubber-de deleted the fix/4908/xhr_2xx_status_failure branch April 2, 2019 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/javascript Anything involving JavaScript tag/sui-issue Taken from an existing Issue/PR of SUI type/feat Any feature requests or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants