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

404 page #135

Merged
merged 2 commits into from
Nov 13, 2018
Merged

404 page #135

merged 2 commits into from
Nov 13, 2018

Conversation

yebrahim
Copy link
Contributor

@yebrahim yebrahim commented Nov 7, 2018

Fixes #55.


This change is Reviewable

@yebrahim
Copy link
Contributor Author

yebrahim commented Nov 8, 2018

Ping.

@qimingj
Copy link
Contributor

qimingj commented Nov 8, 2018

@rileyjbauer can you review it?

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 8, 2018

Is this a real 404? (Does it give the 404 HTTP code?)

Can you just add <Route path="*" component={NoMatch} status={404}/> ?

Also see https://stackoverflow.com/a/40805821/1497385

@yebrahim
Copy link
Contributor Author

yebrahim commented Nov 8, 2018

Pipelines UI is singe page app, which means all the routing is done on the client, so the server sends the HTML/JS/CSS bundle just once (or multiple times when we have code splitting), returning 200 status, and never serving such requests again.

But what's the value of having a 404 return code here? We don't really care about search engine crawling, SEO, or any of that, we're not a public website either

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 9, 2018

When I visit a non-existing url like http://localhost:8080/pipelines/ I'd like to see a proper error instead of a blank page with some scripts.

@yebrahim
Copy link
Contributor Author

yebrahim commented Nov 9, 2018

That requires a change to Ambassador, it's not something the Pipelines frontend can handle. A request to /pipelines won't even reach our webserver.

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 9, 2018

That requires a change to Ambassador, it's not something the Pipelines frontend can handle. A request to /pipelines won't even reach our webserver.

Understood. Then how does this fix #55 ?

@yebrahim
Copy link
Contributor Author

yebrahim commented Nov 9, 2018

I misread your issue. This fixes all frontend-managed pages. For example if the Pipelines UI is at http://localhost:8080/pipeline then this handles going to http://localhost/pipeline/#/jobz instead of http://localhost/pipeline/#/jobs.

Outside this change, that issue shouldn't be on the Pipelines repo, it should be on kubeflow/kubeflow, that's where the Ambassador config is managed.

@rileyjbauer
Copy link
Contributor

/lgtm
/approve

@rileyjbauer
Copy link
Contributor

/retest

@yebrahim
Copy link
Contributor Author

/test build-image

@coveralls
Copy link

coveralls commented Nov 13, 2018

Pull Request Test Coverage Report for Build 278

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 67.531%

Files with Coverage Reduction New Missed Lines %
src/components/Router.tsx 13 49.18%
Totals Coverage Status
Change from base Build 265: 0.02%
Covered Lines: 1542
Relevant Lines: 2193

💛 - Coveralls

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rileyjbauer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rileyjbauer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rileyjbauer
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit 8793d0e into master Nov 13, 2018
@yebrahim yebrahim deleted the yebrahim/404 branch November 13, 2018 08:12
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
HumairAK added a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
…6994e187c1eeb6514bf54083

[Snyk] Security upgrade alpine from 3.11 to 3.16.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants