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: fix seeding database for client-side data (#3798) #3799

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

frano-m
Copy link
Contributor

@frano-m frano-m commented Nov 28, 2023

Ticket

Closes #3798.

Reviewers

@NoopDog.

Changes

  • Updated entities page handling of seeding the database for client-side data.

@frano-m frano-m requested a review from NoopDog November 28, 2023 11:31
@github-actions github-actions bot added the canary Done by the Clever Canary team label Nov 28, 2023
const entities = entityMapper
? Object.values(object).map(entityMapper)
: Object.values(object);
const entities = Object.values(object); // Client-side fetched entities are mapped prior to dispatch to explore state.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Client-side fetched entities are mapped prior to dispatching the entities to explore state. Removing the mapping from the database to prevent mapping over entities twice!

@NoopDog NoopDog merged commit b8d9289 into main Nov 28, 2023
3 checks passed
@frano-m frano-m deleted the fran/3798-seed-database branch January 30, 2024 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canary Done by the Clever Canary team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AnVIL Catalog] Fix seeding database for client-side data
2 participants