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

Dev console fixes and layout improvements #14244

Merged
merged 19 commits into from
Jan 12, 2021
Merged

Dev console fixes and layout improvements #14244

merged 19 commits into from
Jan 12, 2021

Conversation

phillip-kruger
Copy link
Member

@phillip-kruger phillip-kruger commented Jan 12, 2021

Signed-off-by:Phillip Kruger [email protected]
Fix #14216

This PR Contains a few small fixes related to the new non-application path and dev console.

Dev Console

  • Fixed case where httpRoot is set (did not work)
  • Pass httpRoot and frameworkRoot to all templates
  • Make config available in templates
  • Removed hardcoded /q from main.html

Health UI

  • Fixed case where httpRoot is set
  • Fixed wrong ui dependency in health UI (runtime vs deploy)
  • Added embeded.html to expose health UI links
  • Removed hardcoded health-ui and replaced with config lookup

GraphQL UI

  • Fixed case where httpRoot is set
  • Removed hardcoded /q from embedded.html
  • Removed hardcoded graphql-ui and replaced with config lookup

Swagger UI

  • Removed hardcoded /q from embedded.html
  • Removed hardcoded swagger-ui and replaced with config lookup
  • Fixed case where httpRoot is set

@ghost
Copy link

ghost commented Jan 12, 2021

Thanks for your pull request!

The title of your pull request does not follow our editorial rules. Could you have a look?

  • title should not end up with dot

This message is automatically generated by a bot.

@phillip-kruger phillip-kruger changed the title Some more nonApplicationPath fixes. Non-application path and Dev console fixes. Jan 12, 2021
@phillip-kruger phillip-kruger changed the title Non-application path and Dev console fixes. Non-application path and Dev console fixes Jan 12, 2021
Copy link
Member

@FroMage FroMage left a comment

Choose a reason for hiding this comment

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

Looks good, except two verifications and a disagreement about slashes ;)

@ghost ghost added the area/core label Jan 12, 2021
@gsmet
Copy link
Member

gsmet commented Jan 12, 2021

I just pushed my changes to this branch as we will collaborate with Phillip.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Please don't merge, we are iterating with @phillip-kruger (but I still want the CI to run so don't want to make it draft).

@gsmet gsmet changed the title Non-application path and Dev console fixes Dev console fixes and layout improvements Jan 12, 2021
@gsmet
Copy link
Member

gsmet commented Jan 12, 2021

We have a test failure:

Error:  io.quarkus.vertx.web.SimpleRouteTest.testSimpleRoute  Time elapsed: 1.125 s  <<< FAILURE!
java.lang.AssertionError: 
1 expectation failed.
Expected status code <405> but was <404>.

Looks like the fact that GET on /delete is not supported now get you status 404 instead of 405.

this.engine = engine;
this.globalData.put("httpRootPath", httpRootPath);
this.globalData.put("frameworkRootPath", frameworkRootPath);
Copy link
Member

Choose a reason for hiding this comment

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

Should this be named "nonApplicationRootPath" instead of "frameworkRootPath" to align with the name elsewhere?

@ghost ghost added the area/documentation label Jan 12, 2021
@gsmet gsmet merged commit 10610fb into quarkusio:master Jan 12, 2021
@ghost ghost added this to the 1.12 - master milestone Jan 12, 2021
@gsmet gsmet modified the milestones: 1.12 - master, 1.11.0.Final Jan 12, 2021
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.

Regression: Redirect for non-application root path does not consider root path correctly
5 participants