-
Notifications
You must be signed in to change notification settings - Fork 4
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
Provenance Tagging #338
Provenance Tagging #338
Conversation
…top_level.py::Pipeline.make_provenance_tree
…ting (documented in Issue c3-time-domain#339)
…tags. WEbap tests.
…end of every test, to try to track down some leftovers
…of return, so have to add next() in places where its used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it looks good, no major issues found. It's nice to have this working, I think something feels very official about having the capability to have these version tags. Soon we will decide on the "launch" parameters...
objects = get_all_database_objects( session=dbsession ) | ||
any_objects = False | ||
for Class, ids in objects.items(): | ||
# TODO: check that surviving provenances have test_parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to do this in this PR or leave it as a todo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see that this is a remnant TODO from a prior PR
# (This is probably not practical, becasuse there is *so much* module | ||
# and session scope stuff that lots of things are left behind by tests. | ||
# You will have to sift through a lot of output to find what you're | ||
# looking for. We need a better way.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useful comment block, and I agree that we could use a better way down the line.
assert len(rows) == 7 | ||
# check stuff about the rows? | ||
|
||
# There is probably more we should be testing here. Definitely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can robustify these tests down the line I think, but these look like a good starting point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of stuff is going to be added to the webap, so tests will be added then.
) | ||
subdict['provtag'] = data['provenancetag'] | ||
# I wonder if making a primary key on the temp table would be more efficient than | ||
# all these columns in GROUP BY? Investigate this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like I could take an entire day just studying this monstrous 3-part query! sqlalchemy has shielded me from pure SQL, mostly...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, these things get kind of nasty.
Adding the provenance tags made these queries much more complicated.
webap/static/seechange.js
Outdated
{ "text": '"Detections" are everything found on subtratcions; ' + | ||
'"Sources" are things that passed prelminary cuts.' } ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ "text": '"Detections" are everything found on subtratcions; ' + | |
'"Sources" are things that passed prelminary cuts.' } ) | |
{ "text": '"Detections" are everything found on subtractions; ' + | |
'"Sources" are things that passed preliminary cuts.' } ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it wouldn't be a PR without a typo!
Human-readable tags associated with provenances. (Issue #337 )