-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Improve performance of demo workspace #6201
Conversation
Co-authored-by: RubensRafael <[email protected]>
How to set up the demo workspace locally
|
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.
PR Summary
- Replaced base64 encoded avatar images with URLs to GitHub-hosted placeholder images in
packages/twenty-server/src/engine/workspace-manager/standard-objects-prefill-data/person.ts
- Reduced data size for database inserts to improve performance
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Thanks!
|
Thanks!
On it!
This same issue exists on https://demo.twenty.com, we're looking into it though!
On it! |
Hello @FelixMalfait 👋 The problem with the chips happens with these files, here is the trace: Inside It's seems this property is should be added in the backend when these fields are created, or when the data model itself is created, but in the case of the demo data, it doesn't happen since they have their own creation flow in the database. considering this only happens in the demo workspace, is this also happens on the production app? About renaming the function, there are 3 images that still use base64 (company logo images), and they are also passed to the function, if we remove the possibility of loading it via base64, it will not be possible to load these images, should we add these images to the placeholder repo too? |
I have taken a look to this one:
|
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.
LGTM, merging
@gitstart-twenty could you take care of the workspace logo base64 in a follow-up PR?
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.
PR Summary
(updates since last review)
- Added comprehensive Kubernetes and Terraform deployment configurations for TwentyCRM (
packages/twenty-docker/k8s/README.md
,packages/twenty-docker/k8s/manifests/*
,packages/twenty-docker/k8s/terraform/*
) - Updated address fields to more granular components across multiple files for better data structure and performance (
packages/twenty-server/src/database/typeorm-seeds/workspace/companies.ts
,packages/twenty-server/src/modules/company/standard-objects/company.workspace-entity.ts
) - Introduced new GraphQL error handling utilities and hooks for improved error tracking (
packages/twenty-server/src/engine/core-modules/graphql/hooks/use-graphql-error-handler.hook.ts
,packages/twenty-server/src/engine/core-modules/graphql/utils/*
) - Refactored and modularized contact creation management (
packages/twenty-server/src/modules/contact-creation-manager/*
) - Removed deprecated fields and updated sync status enums for message channels (
packages/twenty-server/src/modules/messaging/common/standard-objects/message-channel.workspace-entity.ts
)
184 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
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.
PR Summary
(updates since last review)
- Deleted
packages/twenty-server/src/engine/workspace-manager/demo-objects-prefill-data/companies-demo.json.ts
- Modified column name from 'address' to 'addressAddressCity' in
packages/twenty-server/src/engine/workspace-manager/demo-objects-prefill-data/company.ts
- Ensure column name change is consistent across the codebase to avoid data issues
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
…rBase64` function (#6282) ### Description 1. This PR is a continuation of a previous PR: #6201 (review) 2. One test case was removed here: `packages/twenty-front/src/utils/image/__tests__/getImageAbsoluteURI.test.ts` because since we are not handling base64 images anymore, the result is the same of the last test case. Would you rather we update the test instead? ### Refs - #3514 - #6201 ### Demo https://www.loom.com/share/4f32b535c77a4d418e319b095d09452c?sid=df34adf8-b013-44ef-b794-d54846f52d2d Fixes #3514 --------- Co-authored-by: gitstart-twenty <[email protected]>
Description
We've created another PR here here that adds the placeholder images to the
placeholder-images
repoFor now, pages is deploying to the
TWNTY-3514
onplaceholder-images
. If the PR is merged, we'll need to update pages to deploy frommain
Refs
Demo
demo-workspace.mp4
Fixes #3514