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-16160: Restore pre-insert uniqueness check in addDataset(). #98

Merged
merged 2 commits into from Oct 17, 2018

Conversation

andy-slac
Copy link
Contributor

Re-apply commit 7f85ed5: "Implement constraint check in associate method"
and testore pre-insert uniqueness check in addDataset().

Also pass transactional=False when calling associate() from
addDataset().

This is a workaround for previous commit breaking obs_subaru unit tests.
Actual problem lies deeper in transaction management in
lsst.obs.base.ingest module, that will have to be fixed later, see
discussion on (DM-16160)

…hod" (DM-16160)

Fix will be needed for this commit, in its current for it breaks
obs_subaru unit test.

Current schema lacks actual constraints for collections, this commit
adds code to verify that added rows do not violate constraints. It can
only work reliably in single-user environment, we have to move
constraints to schema definition for more reliable validation.
Also pass transactional=False when calling associate() from
addDataset().

This is a workaround for previous commit breaking obs_subaru unit tests.
Actual problem lies deeper in transaction management in
lsst.obs.base.ingest module, that will have to be fixed later, see
discussion on (DM-16160)
@andy-slac andy-slac merged commit a208f4e into master Oct 17, 2018
@timj timj deleted the tickets/DM-16160 branch April 22, 2020 22:03
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

2 participants