EvalAI-ngx icon indicating copy to clipboard operation
EvalAI-ngx copied to clipboard

Created Error page

Open sanketbansal opened this issue 7 years ago • 17 comments

Changes proposed in this pull request:

  • Added html-error component which is a parent component for error pages.
  • Added server-error component for error 500.
  • Refactor not-found component inside the parent component.
  • Added routing for error pages.
  • Link to live demo: http://pr-122-evalai.surge.sh

error

sanketbansal avatar Apr 06 '19 16:04 sanketbansal

@sanketbansal could you please check, why the Travis-build is failing?

lunayach avatar Apr 06 '19 18:04 lunayach

I checked the travis-build issue. It is giving errors for ng test command.

ng test --watch=false --progress=false --code-coverage > test-log.

Capture

Any idea??

sanketbansal avatar Apr 07 '19 06:04 sanketbansal

Codecov Report

Merging #122 into master will increase coverage by 0.17%. The diff coverage is 70.83%.

@@            Coverage Diff            @@
##           master    #122      +/-   ##
=========================================
+ Coverage   53.43%   53.6%   +0.17%     
=========================================
  Files          55      58       +3     
  Lines        2360    2384      +24     
  Branches      253     255       +2     
=========================================
+ Hits         1261    1278      +17     
- Misses       1025    1031       +6     
- Partials       74      75       +1
Impacted Files Coverage Δ
...components/errors/not-found/not-found.component.ts 100% <ø> (ø)
src/app/components/errors/html-errors.component.ts 100% <100%> (ø)
...ents/errors/server-error/server-error.component.ts 100% <100%> (ø)
src/app/services/global.service.ts 40.95% <33.33%> (-0.26%) :arrow_down:
src/app/services/error-handler.service.ts 70% <70%> (ø)
Impacted Files Coverage Δ
...components/errors/not-found/not-found.component.ts 100% <ø> (ø)
src/app/components/errors/html-errors.component.ts 100% <100%> (ø)
...ents/errors/server-error/server-error.component.ts 100% <100%> (ø)
src/app/services/global.service.ts 40.95% <33.33%> (-0.26%) :arrow_down:
src/app/services/error-handler.service.ts 70% <70%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f9f802b...e8f821a. Read the comment docs.

codecov-io avatar Apr 13 '19 18:04 codecov-io

@Shekharrajak.

  • I created the PR as it has a different directory structure for error pages and new UI for error 500 component.
  • There is no specific reason for naming to html-errors instead of error-page. U want me to update it?
  • It redirects to errors for route "error/404" and "error/500".

sanketbansal avatar Apr 13 '19 18:04 sanketbansal

Thanks for letting me know these points.

  • I created the PR as it has a different directory structure for error pages and new UI for error 500 component.
  • There is no specific reason for naming to html-errors instead of error-page. U want me to update it?

yes, that I saw. I see that AngularJS project have directory name error-page, so it will be better to make it consistent.

  • It redirects to errors for route "error/404" and "error/500".

Why not you start working on adding logic for it. It should be functional when backend server crashes/sending 500 status code/not found status for the request.

Shekharrajak avatar Apr 14 '19 08:04 Shekharrajak

@lunayach @Shekharrajak Can you guys please review this PR and get it merged.

RishabhJain2018 avatar May 09 '19 06:05 RishabhJain2018

@sanketbansal let us know the status of the PR.

Shekharrajak avatar May 09 '19 15:05 Shekharrajak

It is in progress I need to commit some changes.

sanketbansal avatar May 10 '19 04:05 sanketbansal

@sanketbansal Any updates on this?

RishabhJain2018 avatar May 11 '19 18:05 RishabhJain2018

@RishabhJain2018 please review the PR

sanketbansal avatar May 12 '19 12:05 sanketbansal

@Shekharrajak @lunayach Can you please review this as well?

RishabhJain2018 avatar May 13 '19 03:05 RishabhJain2018

I don't see reply for my review comments above so I am not reviewing it again and assuming it was not read.

Shekharrajak avatar May 15 '19 05:05 Shekharrajak

@Shekharrajak I have completed the changes in the PR. Tell me if there is some other changes required to be done.

sanketbansal avatar May 15 '19 16:05 sanketbansal

I don't see a reply for #122 (review) comment and commits from PR #104

@Shekharrajak I did not cherrypicked the commit of #104 because this PR has already similar commits present. Tell me if it is required. I will do that.

sanketbansal avatar May 16 '19 20:05 sanketbansal

Cherry picking means - You are reserving the original author and authentication of commit (rather than copying the code and using it).

@Shekharrajak I did not cherrypicked the commit of #104 because this PR has already similar commits present.

I don't see Interceptor logic in this PR. Please let me know what are the things you see similar (except this)

Shekharrajak avatar May 17 '19 05:05 Shekharrajak

@Shekharrajak, I have rebased this PR with #104. Now, should I drop some similar changes present after rebasing like internal server error page?

sanketbansal avatar May 19 '19 10:05 sanketbansal

Yes! now you can do your changes top of it. Please have a look, into the comments

Shekharrajak avatar May 20 '19 06:05 Shekharrajak