-
Notifications
You must be signed in to change notification settings - Fork 29
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 experiment table changes collection bug #2598
Conversation
let workspace | ||
let currentCommit | ||
|
||
for (const [key, value] of Object.entries(data)) { |
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.
This would not return the correct data now there are > 2 entries in the exp show
data. It would actually return the oldest commit
@@ -109,7 +110,7 @@ const collectChange = ( | |||
commitData: ExperimentFields, | |||
ancestors: string[] = [] | |||
) => { | |||
if (typeof value === 'object') { | |||
if (!Array.isArray(value) && typeof value === 'object') { |
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.
[F] If we get to an array we want to compare the array, not try to walk it.
Code Climate has analyzed commit 3009a26 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.8%. View more on Code Climate. |
Noticed a couple of issues with the code whilst staring at it after reading #2569 (comment).