Skip to content

fix(examples): correct ai_registry_example CRUD ordering and versions… - #6043

Merged
aviruthen merged 2 commits into
aws:masterfrom
Hannah14295:fix/ai-registry-example-crud-order
Jul 17, 2026
Merged

aviruthen merged 2 commits into
aws:masterfrom
Hannah14295:fix/ai-registry-example-crud-order

Conversation

@Hannah14295

Copy link
Copy Markdown
Contributor

… print

Two issues made v3-examples/model-customization-examples/ai_registry_example.ipynb fail when run top to bottom:

  1. pprint(versions.__dict__) raised AttributeError: 'list' object has no attribute '__dict__' because DataSet.get_versions() returns a list (List[DataSet]). Changed to pprint(versions), matching the other get_versions cells in the same notebook.

  2. The "delete specific version" and "delete all versions" cells ran in the middle of the DataSet section, deleting the sdkv3-gen-ds2 dataset before the later "Use a dataset by name" (DataSet.get) and create_version cells, which then failed with ResourceNotFound. Moved both delete cells to the end of the DataSet section so the read/versioning demos run against the live dataset and cleanup happens last.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… print

Two issues made v3-examples/model-customization-examples/ai_registry_example.ipynb
fail when run top to bottom:

1. `pprint(versions.__dict__)` raised `AttributeError: 'list' object has no
   attribute '__dict__'` because DataSet.get_versions() returns a list
   (List[DataSet]). Changed to `pprint(versions)`, matching the other
   get_versions cells in the same notebook.

2. The "delete specific version" and "delete all versions" cells ran in the
   middle of the DataSet section, deleting the `sdkv3-gen-ds2` dataset before
   the later "Use a dataset by name" (DataSet.get) and create_version cells,
   which then failed with ResourceNotFound. Moved both delete cells to the end
   of the DataSet section so the read/versioning demos run against the live
   dataset and cleanup happens last.
@aviruthen
aviruthen merged commit 1e210b7 into aws:master Jul 17, 2026
6 checks passed

This branch was previously deployed

1 inactive deployment
manual-approval — 8ce2caf6 Deployed Jul 17, 2026 by Hannah14295 via wait-for-approval #1023
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.

3 participants