Skip to content

feat(custom_data): emit and round-trip importName in config.json#116

Merged
jm-rivera merged 1 commit into
mainfrom
feat/config-import-name
Jun 25, 2026
Merged

feat(custom_data): emit and round-trip importName in config.json#116
jm-rivera merged 1 commit into
mainfrom
feat/config-import-name

Conversation

@jm-rivera

Copy link
Copy Markdown
Collaborator

Closes #103.

What changed

Adds a top-level importName to config.json — the package can now both emit it and round-trip a platform config that already contains it.

  • Config.importName: Optional[str] — adding the field also lifts the extra="forbid" block that previously rejected any config carrying importName.
  • CustomDataManager.set_importName() (chainable, matches the set_* pattern); surfaced in __repr__.
  • export_config defaults importName to the export directory name when unset, applied to a model_copy for serialization only — no manager-state mutation, so re-exporting to another directory picks up that directory's name.
  • importName added to the directory-merge simple-attrs so merges round-trip it.
  • config_to_dict() documented as a raw state dump (does not default importName).

Acceptance

  • Exported config.json carries a top-level importName matching the upload subdirectory. ✓
  • The package loads a platform config.json that already contains importName. ✓

Testing

90 tests pass. New coverage: round-trip load, set + export-default, re-export to a different dir with no-mutation assertion, and an updated golden snapshot.

Co-authored-by: Claude noreply@anthropic.com

@jm-rivera jm-rivera marked this pull request as ready for review June 25, 2026 09:35
@jm-rivera jm-rivera self-assigned this Jun 25, 2026
@codecov-commenter

This comment was marked as resolved.

This comment was marked as resolved.

@jm-rivera jm-rivera force-pushed the feat/config-import-name branch from f32ba69 to 80bc13b Compare June 25, 2026 11:23
Add an optional top-level importName field to Config (also lifting the
extra="forbid" block on loading platform configs), surface set_importName
on CustomDataManager, and default it to the export directory name on export
without mutating manager state.

Co-authored-by: Claude <noreply@anthropic.com>
@jm-rivera jm-rivera force-pushed the feat/config-import-name branch from 80bc13b to 61275ad Compare June 25, 2026 11:24
@jm-rivera jm-rivera merged commit 761f139 into main Jun 25, 2026
3 checks passed
@jm-rivera jm-rivera deleted the feat/config-import-name branch June 25, 2026 11:34
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.

Emit importName in config.json

4 participants