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

updated to use gateway framework 2.0 #11

Merged
merged 1 commit into from
Feb 15, 2024
Merged

updated to use gateway framework 2.0 #11

merged 1 commit into from
Feb 15, 2024

Conversation

naveenad
Copy link
Collaborator

No description provided.

@naveenad naveenad requested review from paddywalsh and halljon and removed request for paddywalsh November 29, 2023 15:44
@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
Copy link

Choose a reason for hiding this comment

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

Should this be committed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think its fine. Makes it easier to run in IDE.

*
* @author DiffusionData Ltd
*/
public final class SimpleJSONToCsvStringConvertor
implements OutboundPayloadConvertor<String, JSON> {
public final class SimpleJSONToCsvStringConverter
Copy link

Choose a reason for hiding this comment

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

"JSON" or "Json"? The class name uses "Csv" for "CSV". I prefer Json mixed-case ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All caps types JSON/INT64 etcs is used across framework and else where to specify Diffusion topic types.

@@ -0,0 +1,16 @@
<component name="ProjectRunConfigurationManager">
Copy link

Choose a reason for hiding this comment

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

Should this be committed?

@@ -96,7 +97,7 @@ public SourceServiceProperties getSourceServiceProperties() throws InvalidConfig
return
newSourceServicePropertiesBuilder()
.updateMode(UpdateMode.STREAMING)
.payloadConvertorName("$CSV_to_JSON")
.payloadConverter("$CSV_to_JSON")
Copy link

Choose a reason for hiding this comment

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

This one seems to still have the dollar prefix, but the JSON_TO_CSV doesn't.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

all framework provided converters have dollar prefixes and customs one created in application do not.

@naveenad naveenad merged commit 7d335e6 into main Feb 15, 2024
1 check passed
@naveenad naveenad deleted the upgrade-framework branch February 15, 2024 17:30
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

2 participants