Skip to content

Conversation

@andreatgretel
Copy link
Contributor

@andreatgretel andreatgretel commented Jan 8, 2026

See #187 for context.

This fixes the issue by adding a check before running builder.add_column - if column is a SeedDatasetColumConfig, that line is skipped.
Added regression test.

Closes #187.

Copy link
Contributor

@eric-tramel eric-tramel left a comment

Choose a reason for hiding this comment

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

Quick fix on blocking bug, thanks @andreatgretel !

@eric-tramel eric-tramel added the bug Something isn't working label Jan 8, 2026
Comment on lines +107 to +108
if not isinstance(col, SeedDatasetColumnConfig):
builder.add_column(col)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure of the urgency here, if we'd want to land this and ship another patch release or what, but: I believe this entire problem should disappear (and this specific highlighted code become a no-op) once #167 lands. As part of those changes, we no longer save SeedDatasetColumnConfig columns on the config builder—it only has the SeedConfig, including through the config serde process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh that's a great point

Maybe we can proceed as with the fix yesterday - land this quickly on a 0.2.x release, and leave other changes for 0.3?
Agree it's up to how urgent this is and whether we want to do a new 0.2.x release, will let @eric-tramel and @johnnygreco coordinate on that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Excited for the much needed rework @mikeknep :)

For this case, simple process in my opinion:

  1. Main is bugged, should fix main quickly with this edit, ship a minor version today/tomorrow to unblock downstream users immediately.
  2. Update working-state main with new refactor and ship on its own schedule.

Copy link
Contributor

Choose a reason for hiding this comment

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

^ sounds like a good plan 👍

I can publish the minor patch today.

@andreatgretel andreatgretel merged commit 1cf5f29 into main Jan 8, 2026
15 checks passed
@andreatgretel andreatgretel deleted the andreatgretel/fix/deserialization-and-seed-columns branch January 8, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deserializing instantiantes seed columns twice

6 participants