Skip to content
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

Fix domainName seeds #6454

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Fix domainName seeds #6454

merged 1 commit into from
Jul 30, 2024

Conversation

ijreilly
Copy link
Collaborator

No description provided.

Copy link
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.

PR Summary

The domainNamePrimaryLinkUrl property in companies.ts has been simplified from an object to a string.

  • Modified packages/twenty-server/src/database/typeorm-seeds/workspace/companies.ts to change domainNamePrimaryLinkUrl from an object to a string.
  • Ensure dependent code is updated to handle the new string format.
  • Test the seeding process to confirm compatibility with the new data structure.

1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings

@@ -42,7 +42,7 @@ export const seedCompanies = async (
{
id: DEV_SEED_COMPANY_IDS.LINKEDIN,
name: 'Linkedin',
domainNamePrimaryLinkUrl: { primarlyLinkUrl: 'https://linkedin.com' },
domainNamePrimaryLinkUrl: 'https://linkedin.com',
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Ensure all dependent code is updated to handle the new string format for domainNamePrimaryLinkUrl.

@@ -54,7 +54,7 @@ export const seedCompanies = async (
{
id: DEV_SEED_COMPANY_IDS.FACEBOOK,
name: 'Facebook',
domainNamePrimaryLinkUrl: { primarlyLinkUrl: 'https://facebook.com' },
domainNamePrimaryLinkUrl: 'https://facebook.com',
Copy link
Contributor

Choose a reason for hiding this comment

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

check: Verify that the seeding process works correctly with the updated domainNamePrimaryLinkUrl format.

Copy link
Contributor

@bosiraphael bosiraphael 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 merged commit 3a37dfc into main Jul 30, 2024
5 of 6 checks passed
@bosiraphael bosiraphael deleted the fix-initial-seeds branch July 30, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants