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

PAYARA-2548 OpenAPI 1.0 Implementation #2745

Merged
merged 23 commits into from May 30, 2018
Merged

PAYARA-2548 OpenAPI 1.0 Implementation #2745

merged 23 commits into from May 30, 2018

Conversation

MattGill98
Copy link
Contributor

No description provided.

@MattGill98 MattGill98 added this to the Payara 5.182 milestone May 18, 2018
@MattGill98 MattGill98 self-assigned this May 18, 2018
@MattGill98
Copy link
Contributor Author

jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

Copy link
Contributor

@smillidge smillidge left a comment

Choose a reason for hiding this comment

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

I've reviewed the Payara internals pieces. @arjantijms can review the general code. Good job big piece of work!!

}

private String getContextRoot(ApplicationInfo appInfo) {
return appInfo.getMetaData(WebBundleDescriptorImpl.class).getContextRoot();
Copy link
Contributor

Choose a reason for hiding this comment

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

You can get a NPE here for example when deploying an EJB jar as getMetaData I believe can return null.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, I've just made a fix for that.

path = "set-openapi-configuration",
description = "Sets the OpenAPI Configuration")
})
public class SetOpenApiConfigurationCommand implements AdminCommand {
Copy link
Contributor

Choose a reason for hiding this comment

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

This command as written will require a restart to take effect. Can you make sure it indicates that in the administration console.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How do you mean? From my testing, enabling and disabling the OpenAPI seems dynamic. I've moved the logging into the OpenAPIService to make it more obvious and readable.

@arjantijms
Copy link
Contributor

Jenkins test

@MattGill98
Copy link
Contributor Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@payara-ci
Copy link
Contributor

Quick build and test passed!

@MattGill98
Copy link
Contributor Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@MattGill98
Copy link
Contributor Author

jenkins test please

Copy link
Member

@Pandrex247 Pandrex247 left a comment

Choose a reason for hiding this comment

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

Haven't deep-dived, but looks OK (even though it has static imports boo! hiss!).

@payara-ci
Copy link
Contributor

Quick build and test passed!

@Pandrex247 Pandrex247 merged commit b118c31 into payara:master May 30, 2018
mulderbaba pushed a commit to kantor1974/Payara that referenced this pull request Jun 14, 2018
…OpenAPI-1.0-REBASE

PAYARA-2548 OpenAPI 1.0 Implementation
@MattGill98 MattGill98 deleted the PAYARA-2548-Implement-OpenAPI-1.0-REBASE branch June 18, 2018 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants