-
-
Notifications
You must be signed in to change notification settings - Fork 18
Remove dashboardId references from panel position generation and related tests #1640
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -164,20 +164,17 @@ export class DashboardWidgetController { | |||||||||||||||
| type: GeneratedPanelWithPositionDto, | ||||||||||||||||
| }) | ||||||||||||||||
| @ApiBody({ type: GeneratePanelPositionWithAiDto }) | ||||||||||||||||
| @ApiParam({ name: 'dashboardId', required: true }) | ||||||||||||||||
| @ApiParam({ name: 'connectionId', required: true }) | ||||||||||||||||
| @UseGuards(ConnectionEditGuard) | ||||||||||||||||
| @Timeout(TimeoutDefaults.AI) | ||||||||||||||||
| @Post('/dashboard/:dashboardId/widget/generate/:connectionId') | ||||||||||||||||
| @Post('/widget/generate/:connectionId') | ||||||||||||||||
| async generateWidgetWithAi( | ||||||||||||||||
|
Comment on lines
169
to
171
|
||||||||||||||||
| @SlugUuid('connectionId') connectionId: string, | ||||||||||||||||
|
Comment on lines
+170
to
172
|
||||||||||||||||
| @Post('/widget/generate/:connectionId') | |
| async generateWidgetWithAi( | |
| @SlugUuid('connectionId') connectionId: string, | |
| @Post('/dashboard/:dashboardId/widget/generate/:connectionId') | |
| async generateWidgetWithAi( | |
| @SlugUuid('connectionId') connectionId: string, | |
| @Param('dashboardId') dashboardId: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing
dashboard_idfromGeneratedPanelPositionDtochanges the response contract forgenerateWidgetWithAi. The frontend modelGeneratedPanelWithPosition.panel_position.dashboard_id(seefrontend/src/app/models/saved-query.ts) will no longer match the API and can cause type/runtime issues. Update downstream DTOs/models accordingly, or keepdashboard_id(possibly as optional) until consumers are migrated.