Skip to content

Conversation

@VivekY1098
Copy link
Owner

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to README are included in PR

Comment on lines +6 to +29
<mat-expansion-panel>
<mat-expansion-panel-header class="mat-row" matTooltip="Edit to run custom transformations">
<span>Custom Transformations</span>
</mat-expansion-panel-header>
<div>
<mat-form-field class="full-width" appearance="outline" matTooltip="Specify the GCS path for custom jar"
[matTooltipPosition]="'right'">
<mat-label>Custom JAR GCS Path</mat-label>
<input matInput placeholder="Custom JAR GCS Path" type="text" formControlName="customJarPath"/>
</mat-form-field>
<br>
<mat-form-field class="full-width" appearance="outline" matTooltip="Specify the fully classified class name"
[matTooltipPosition]="'right'">
<mat-label>Custom Class Name</mat-label>
<input matInput placeholder="Fully Classified Class Name" type="text" formControlName="customClassName"/>
</mat-form-field>
<br>
<mat-form-field class="full-width" appearance="outline" matTooltip="Specify the custom parameter required by the JAR"
[matTooltipPosition]="'right'">
<mat-label>Custom Parameter</mat-label>
<input matInput placeholder="Custom Parameters" type="text" formControlName="customParameter"/>
</mat-form-field>
</div>
</mat-expansion-panel>

Choose a reason for hiding this comment

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

The formControlName attributes are used but there's no parent <form> or <ng-form> element wrapping these form fields, which will cause Angular to throw errors.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds new constants and form fields for custom JAR configurations in the Dataflow settings, along with corresponding updates in the streaming package and related UI components.

  • Added three constants (CustomJarPath, CustomClassName, CustomParameter) in /ui/src/app/app.constants.ts for custom transformation support.
  • Updated /streaming/streaming.go to propagate and validate the new Dataflow custom JAR parameters.
  • Extended /ui/src/app/components/dataflow-form/dataflow-form.component.ts and .html to include inputs for these fields and update localStorage.
  • Introduced tests in /streaming/streaming_test.go and new streaming config verification in /webv2/web_test.go.
  • Minor refactoring in /profiles/source_profile.go for consistency.

💡 (4/5) You can add custom instructions or style guidelines for the bot here!

11 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@VivekY1098
Copy link
Owner Author

@greptileai

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR enhances Dataflow configuration by adding support for custom JAR execution through new constants and UI elements, and integrates necessary validations in the streaming package.

  • Added new constants (CustomJarPath, CustomClassName, CustomParameter) in /ui/src/app/app.constants.ts.
  • Updated /streaming/streaming.go to propagate and validate custom JAR parameters.
  • Extended /ui/src/app/components/dataflow-form/dataflow-form.component.ts and .html with corresponding form controls and localStorage updates.
  • Minor formatting/refactoring improvements in /profiles/source_profile.go and enhanced tests in /streaming/streaming_test.go and /webv2/web_test.go.

11 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

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.

3 participants