Conversation
| <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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Fixes #<issue_number_goes_here>