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

[KOGITO-4457] Removing knative-eventing-addon #1199

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

ricardozanini
Copy link
Member

Signed-off-by: Ricardo Zanini [email protected]

See: https://issues.redhat.com/browse/KOGITO-4457

In this PR we completely remove knative-eventing-addon, a module added in the Dark Ages to give support to CloudEvents over HTTP.

Now, the Quarkus CloudEvents Addon automatically adds the possibility to consume CE in the application's root path. It also plays nicely with any Smallrye Connector. Meaning that the service can consume from any Smallrye implementation/connector and also from HTTP CE.

Requires https://github.com/kiegroup/kogito-runtimes/pull/1124
Once CI gets back, we merge #1124, I rebase and we will have a more stable code base regarding CE handling.

Many thanks for submitting your Pull Request ❤️!

Please make sure that your PR meets the following requirements:

  • You have read the contributors guide
  • Your code is properly formatted according to this configuration
  • Pull Request title is properly formatted: KOGITO-XYZ Subject
  • Pull Request title contains the target branch if not targeting master: [0.9.x] KOGITO-XYZ Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains link to any dependent or related Pull Request
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
How to retest this PR or trigger a specific build:
  • Pull Request
    Please add comment: Jenkins retest this

  • Quarkus LTS checks
    Please add comment: Jenkins run LTS

  • Native checks
    Please add comment: Jenkins run native

  • Full Kogito testing (with cloud images and operator BDD testing)
    Please add comment: Jenkins run BDD
    This check should be used only if a big change is done as it takes time to run, need resources and one full BDD tests check can be done at a time ...

@ricardozanini
Copy link
Member Author

@fjtirado FYI

@ricardozanini
Copy link
Member Author

Copy link
Contributor

@evacchi evacchi left a comment

Choose a reason for hiding this comment

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

couple of minor changes

Copy link
Contributor

@fjtirado fjtirado left a comment

Choose a reason for hiding this comment

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

@ricardozanini thanks for sharing.
Just minor comestic issues
Although not part of this JIRA, since we are chaning kogitoProcessExtension, can we replace current getExtension implementation by

    private String getExtension(CloudEventExtensions extensions, String key) {
        return Objects.toString(extensions.getExtension(key));
    };

?

@ricardozanini
Copy link
Member Author

@ricardozanini thanks for sharing.
Just minor comestic issues
Although not part of this JIRA, since we are chaning kogitoProcessExtension, can we replace current getExtension implementation by

    private String getExtension(CloudEventExtensions extensions, String key) {
        return Objects.toString(extensions.getExtension(key));
    };

?

I think it's better to leave as it's. If null we are returning an empty String instead of null String.

@fjtirado
Copy link
Contributor

fjtirado commented Apr 7, 2021

@ricardozanini thanks for sharing.
Just minor comestic issues
Although not part of this JIRA, since we are chaning kogitoProcessExtension, can we replace current getExtension implementation by

    private String getExtension(CloudEventExtensions extensions, String key) {
        return Objects.toString(extensions.getExtension(key));
    };

?

I think it's better to leave as it's. If null we are returning an empty String instead of null String.

Ok, you can use
private String getExtension(CloudEventExtensions extensions, String key) {
return Objects.toString(extensions.getExtension(key),"");
};

@ricardozanini
Copy link
Member Author

LOL

@ricardozanini
Copy link
Member Author

Jenkins retest this

@kie-ci
Copy link
Contributor

kie-ci commented Apr 7, 2021

The Linux check has failed. Please check the logs.

@kie-ci
Copy link
Contributor

kie-ci commented Apr 8, 2021

The Linux check has failed. Please check the logs.

@danielezonca
Copy link
Contributor

@ricardozanini
Minor thing, can you please rename the PR? Deprecating is not correct considering that we are removing it completely

@ricardozanini ricardozanini changed the title [KOGITO-4457] Deprecating knative-eventing-addon [KOGITO-4457] Removing knative-eventing-addon Apr 8, 2021
@kie-ci
Copy link
Contributor

kie-ci commented Apr 9, 2021

The Linux check has failed. Please check the logs.

@kie-ci
Copy link
Contributor

kie-ci commented Apr 10, 2021

The Linux check has failed. Please check the logs.

@ricardozanini
Copy link
Member Author

Jenkins retest this

@kie-ci
Copy link
Contributor

kie-ci commented Apr 12, 2021

The Linux check is successful.

@cristianonicolai
Copy link
Contributor

@ricardozanini needs rebase

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kie-ci
Copy link
Contributor

kie-ci commented Apr 13, 2021

The Linux check is successful.

@danielezonca danielezonca merged commit fea3d18 into apache:master Apr 14, 2021
@ricardozanini ricardozanini deleted the kogito-4457 branch April 14, 2021 12:22
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.

7 participants