Update updatedat field on dashboards after edition#16964
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
1 issue found across 11 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/twenty-server/src/engine/metadata-modules/dashboard/services/dashboard-sync.service.ts">
<violation number="1" location="packages/twenty-server/src/engine/metadata-modules/dashboard/services/dashboard-sync.service.ts:46">
P2: Error logging loses stack trace. When concatenating `${error}` into the message string, the stack trace is lost. Consider passing the stack trace as a separate argument to preserve debugging information.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| ); | ||
| } catch (error) { | ||
| this.logger.error( | ||
| `Failed to update dashboard updatedAt for page layout ${pageLayoutId}: ${error}`, |
There was a problem hiding this comment.
P2: Error logging loses stack trace. When concatenating ${error} into the message string, the stack trace is lost. Consider passing the stack trace as a separate argument to preserve debugging information.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-server/src/engine/metadata-modules/dashboard/services/dashboard-sync.service.ts, line 46:
<comment>Error logging loses stack trace. When concatenating `${error}` into the message string, the stack trace is lost. Consider passing the stack trace as a separate argument to preserve debugging information.</comment>
<file context>
@@ -0,0 +1,110 @@
+ );
+ } catch (error) {
+ this.logger.error(
+ `Failed to update dashboard updatedAt for page layout ${pageLayoutId}: ${error}`,
+ );
+ }
</file context>
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:2496 This environment will automatically shut down when the PR is closed or after 5 hours. |
packages/twenty-server/src/engine/metadata-modules/dashboard/services/dashboard-sync.service.ts
Outdated
Show resolved
Hide resolved
| ); | ||
| } | ||
|
|
||
| await this.dashboardSyncService.updateLinkedDashboardsUpdatedAtByTabId({ |
There was a problem hiding this comment.
Don't we want to actually destroy the dashboard in this case?
There was a problem hiding this comment.
It is already handled: in the page layout service
if (flatPageLayoutToDestroy.type === PageLayoutType.DASHBOARD) {
await this.destroyAssociatedDashboards(id, workspaceId);
}
...wenty-server/src/engine/metadata-modules/page-layout-tab/services/page-layout-tab.service.ts
Outdated
Show resolved
Hide resolved
packages/twenty-server/src/engine/metadata-modules/dashboard/services/dashboard-sync.service.ts
Outdated
Show resolved
Hide resolved
...wenty-server/src/engine/metadata-modules/page-layout-tab/services/page-layout-tab.service.ts
Show resolved
Hide resolved
|
Hey @bosiraphael! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
1 similar comment
|
Hey @bosiraphael! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
Closes twentyhq/core-team-issues#1896