Skip to content

Update updatedat field on dashboards after edition#16964

Merged
bosiraphael merged 11 commits intomainfrom
1896-update-updatedat-field-on-dashboards-after-edition
Jan 7, 2026
Merged

Update updatedat field on dashboards after edition#16964
bosiraphael merged 11 commits intomainfrom
1896-update-updatedat-field-on-dashboards-after-edition

Conversation

@bosiraphael
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@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.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

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}`,
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot Jan 6, 2026

Choose a reason for hiding this comment

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

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>
Fix with Cubic

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 6, 2026

🚀 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.

);
}

await this.dashboardSyncService.updateLinkedDashboardsUpdatedAtByTabId({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we want to actually destroy the dashboard in this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is already handled: in the page layout service

if (flatPageLayoutToDestroy.type === PageLayoutType.DASHBOARD) {
     await this.destroyAssociatedDashboards(id, workspaceId);
   }

Copy link
Copy Markdown
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

LGTM!

@bosiraphael bosiraphael added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit 7af98a9 Jan 7, 2026
59 checks passed
@bosiraphael bosiraphael deleted the 1896-update-updatedat-field-on-dashboards-after-edition branch January 7, 2026 17:26
@twenty-eng-sync
Copy link
Copy Markdown

Hey @bosiraphael! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

1 similar comment
@twenty-eng-sync
Copy link
Copy Markdown

Hey @bosiraphael! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update updatedAt field on dashboards after edition

2 participants