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-35675: Remove Gen2 #267
Conversation
No code uses it any more.
Codecov Report
@@ Coverage Diff @@
## main #267 +/- ##
==========================================
+ Coverage 72.17% 81.57% +9.39%
==========================================
Files 60 57 -3
Lines 6779 5938 -841
Branches 1399 1221 -178
==========================================
- Hits 4893 4844 -49
+ Misses 1658 868 -790
+ Partials 228 226 -2
Continue to review full report at Codecov.
|
They are now stubs to allow existing code to still import it but no gen2 execution can happen.
There are other CmdLineTask docs that need to be examined.
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'm not sure if the version strings for the deprecations are correct. Otherwise, an impressive score of +53 -2847!
|
||
|
||
@deprecated( | ||
reason="Gen2 DataIdContainer is no longer supported. This functionality has been disabled.", | ||
version="v23.0", |
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.
In all of these, should the version listed be v23.0
(current) or v24.0
(next), thus promising that this routine will be in v24 but once that is released can be deleted? Reading the docs is ... unclear ... but that's how I read it: https://developer.lsst.io/stack/deprecating-interfaces.html#python-deprecation
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 already promised that Gen2 was deprecated and could be removed any time as part of the v23 release. My statement is that CmdLineTask has been deprecated since v23 but now actually tells you it has been deprecated since then. I don't really see any point in keeping this code around for another two release cycles where it doesn't actually do anything and will break if something uses it. The "version" here is the version the code was formally deprecated. I have not included in the statements when we will actually delete the stubs but I was assuming I could do it as soon as nothing in lsst_distrib uses CmdLineTask.
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 talked it over with @ktlim and he thinks that saying "since v23" is fine here.
Checklist
doc/changes