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

Table data assignment bug #2300

Merged
merged 7 commits into from
Jul 31, 2024
Merged

Table data assignment bug #2300

merged 7 commits into from
Jul 31, 2024

Conversation

mollykreis
Copy link
Contributor

Pull Request

🀨 Rationale

Resolves #2265

πŸ‘©β€πŸ’» Implementation

The arrayToTree code path for setting data in the table does not make a copy of each record in the same way that the other setData code paths do. Therefore, I updated the arrayToTree function to copy the record as it turns the array into a tree.

πŸ§ͺ Testing

  • Added a new unit test that failed before my change and now passes
    • Note, there already is a similar test for non-hierarchical data, so I only added a new test for hierarchical data.

βœ… Checklist

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@mollykreis
Copy link
Contributor Author

@atmgrifter00, will you buddy this PR for me?

@mollykreis mollykreis requested a review from atmgrifter00 July 23, 2024 20:20
@mollykreis mollykreis marked this pull request as ready for review July 26, 2024 14:56
@mollykreis mollykreis merged commit 70d12f4 into main Jul 31, 2024
13 checks passed
@mollykreis mollykreis deleted the table-data-assignment-bug branch July 31, 2024 19:26
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.

Cannot reassign same data instances to table when hierarchy is enabled
4 participants