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

Data Explorer: Make sure we update the data shape after a Data Update #467

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

dfalbel
Copy link
Contributor

@dfalbel dfalbel commented Aug 8, 2024

Addresses posit-dev/positron#4286

When we verify if there was a data change in R, we check if we should send a SchemaChange or a DataUpdate event.
When the schema changes, ie, types of columns or number of columns, we would correctly update the data shape.
For data updates we would skip this update, however it's necessary because even though the schema didn't change, it's possible that the number of rows has changed and we need to make sure the front-end knows about that.

Copy link
Contributor

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

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

I built ark from this PR and can observe the fix for changing the number of rows as outlined in the issue. This is a really simple fix so I feel confident approving. Thanks! 🙌

@dfalbel dfalbel merged commit b27f8d6 into main Aug 21, 2024
3 checks passed
@dfalbel dfalbel deleted the bugfix/schema-update branch August 21, 2024 13:01
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants