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

DM-26600: Add ability to remove a dataset type #379

Merged
merged 1 commit into from Sep 25, 2020
Merged

Conversation

timj
Copy link
Member

@timj timj commented Sep 23, 2020

No description provided.

Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Looks good! I think you found all of the points where I'd have questions.


# Try and fail to delete a datasetType that is associated with data
with self.assertRaises(Exception):
butler.registry.pruneDatasetType(datasetType.name)
Copy link
Member

Choose a reason for hiding this comment

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

If you can think of an easy way to do it, it'd also be nice to check here that nothing did get deleted. I'm not at all worried about the current implementation, but a different caching model might lead to an implementation where that's less obvious.

Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks OK, few minor comments.

python/lsst/daf/butler/registry/_registry.py Outdated Show resolved Hide resolved
tests/test_butler.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-26600 branch 4 times, most recently from d4a1666 to 895bd07 Compare September 25, 2020 03:28
@timj timj merged commit d0caeaf into master Sep 25, 2020
@timj timj deleted the tickets/DM-26600 branch September 25, 2020 15:31
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.

None yet

3 participants