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

generate AirbyeTraceMessage.type enum with descriptive class name #12581

Merged
merged 4 commits into from
May 4, 2022

Conversation

pedroslopez
Copy link
Contributor

@pedroslopez pedroslopez commented May 4, 2022

What

The autogenerated enum for AirbyteTraceMessage's type property was named Type1 because of a conflict with the existing AirbyteMessage type enum (named Type). This class name is not very descriptive.

How

Set a title on the protocol definition and pass the --use-title-as-class-name flag to generate a better name for the enum class (TraceType

@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:00 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:01 Inactive
@github-actions github-actions bot added area/platform issues related to the platform area/protocol CDK Connector Development Kit labels May 4, 2022
Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:06 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:06 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:39 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 19:39 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 20:57 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 20:58 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 21:52 Inactive
@pedroslopez pedroslopez temporarily deployed to more-secrets May 4, 2022 21:53 Inactive
@pedroslopez pedroslopez merged commit 3c1eab3 into master May 4, 2022
@pedroslopez pedroslopez deleted the pedroslopez/protocol-trace-enum-title branch May 4, 2022 22:48
suhomud pushed a commit that referenced this pull request May 23, 2022
…12581)

* generate AirbyeTraceMessage `type` enum with descriptive class name

* add comment on `title` usage

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* apply changes to bases/airbyte-protocol

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/protocol CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants