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

[WFLY-19261] microprofile-lra Quickstarts should have a root webpage similar to helloworld #897

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sudeshnas93
Copy link
Contributor

Copy link

openshift-ci bot commented Apr 19, 2024

Hi @sudeshnas93. Thanks for your PR.

I'm waiting for a wildfly member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


@Path("/")
@ApplicationScoped
public class applicationlra {
Copy link
Member

Choose a reason for hiding this comment

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

Nope, that's not how classes are named in Java :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, thanks for pointing it out. Fixed it. :)


[source]
-----
Hello! Microprofile-Lra Quickstart deployed successfully! You can find the available operations in the included README file.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be MicroProfile LRA

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's revert and not do any README changes wrt adding a root deployment page, please. As I said in the jaxrs-client PR we should later workout a common strategy for documenting this in a /shared-docs included section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted the readme changes.

@GET
@Produces(MediaType.TEXT_PLAIN)
public String getRootResponse() {
return "Hello! Microprofile-Lra Quickstart deployed successfully! You can find the available operations in the included README file.";
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor

@emmartins emmartins Apr 22, 2024

Choose a reason for hiding this comment

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

Please use instead a static index.html like you did for jaxrs-client.

As for the content, please always use the exact quickstart's path, in this case "microprofile-lra"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please review, I have used a static index.html page instead.


[source]
-----
Hello! Microprofile-Lra Quickstart deployed successfully! You can find the available operations in the included README file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor

Choose a reason for hiding this comment

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

please revert this change, it would add the new content to all quickstart READMEs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted.

@sudeshnas93 sudeshnas93 force-pushed the WFLY-19261 branch 5 times, most recently from 26e40e2 to 30f586f Compare May 14, 2024 06:40
@@ -25,6 +25,6 @@
import jakarta.ws.rs.ApplicationPath;
import jakarta.ws.rs.core.Application;

@ApplicationPath("/")
@ApplicationPath("/rest")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

/ needs to be reserved for the root web page as required. Changed to /rest because there can be path conflicts if we don't change the rest endpoints path to something else other than /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants