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

Spline 831 Producer API enhancement #860

Merged
merged 19 commits into from
Apr 12, 2021
Merged

Conversation

wajda
Copy link
Contributor

@wajda wajda commented Apr 9, 2021

@wajda wajda requested a review from cerveada as a code owner April 9, 2021 21:14
@wajda wajda force-pushed the spline-831-producer-api-enhancement branch from ee4bea7 to 36cf567 Compare April 9, 2021 22:39
def params: Map[String, Any]
def extra: Map[String, Any]
def `type`: String
def `type`: Operation.Type
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the logic behind the naming? Sometime `type` and other time _type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, a lot of confusion here... Originally the logic was to have all technical (non-business) props to be prefixed with underscore, just to avoid confusion in situations like when you add a business property with a similar name. For example operation type "Filter" vs type "transformation" or vs type "za.co.absa....operation.FilterOperation" -- here every type means different things and is supposed to be analyzed on different application layers. It worked well before and in general, but in case with Arango, since we don't have a control on how JSON fields are mapped on the class properties in Arango driver this convention leaked into the domain model and started making noise there. And also _ is a reserved for Arango stuff, so I think we need to get rid of using that prefix convention.

cerveada
cerveada previously approved these changes Apr 12, 2021
Copy link
Contributor

@cerveada cerveada left a comment

Choose a reason for hiding this comment

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

LGTM

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2021

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wajda wajda merged commit 02cd81c into develop Apr 12, 2021
@wajda wajda deleted the spline-831-producer-api-enhancement branch April 12, 2021 18:35
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