deprecate resource names not supported by microgenerators#3016
deprecate resource names not supported by microgenerators#3016yihanzhen merged 8 commits intogoogleapis:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3016 +/- ##
============================================
+ Coverage 87.09% 87.09% +<.01%
+ Complexity 5949 5946 -3
============================================
Files 491 490 -1
Lines 23681 23678 -3
Branches 2547 2546 -1
============================================
- Hits 20625 20623 -2
+ Misses 2210 2209 -1
Partials 846 846
Continue to review full report at Codecov.
|
|
Python generated warnings look good. |
|
@vam-google for implementation review. |
|
Hi @vam-google @dazuma |
| @# @@return [String] | ||
| def self.{@function.name} {@createResourceFunctionParams(function.resourceIdParams)} | ||
| @if function.isResourceNameDeprecated | ||
| warn "This helper function will be deleted in the next major version." |
There was a problem hiding this comment.
Please omit this. Ruby devs do not like warnings printed to stderr with no way of disabling it.
|
PTAL |
Deprecate resource names that will not exist in microgenerator/proto annotation world.
add a
deprecated_collectionsfield in gapic config V2. Resource names specified here will continue to be generated the same way gapic generator treatscollectionsin gapic config v1, but the helper functions will be marked deprecated.Add two deprecated resource names in baseline tests,
project_bookto test the case where a deprecated resource name has the same name as a non-deprecated one, andbook_from_archiveto test the case where a deprecated resource has a unique name.Node.js change: add a deprecation warning to all resource name helpers related to
project_bookandbook_from_archive===> PTAL @alexander-fensterRuby: add a deprecation warning to all resource name helpers related to
book_from_archiveandproject_book===> PTAL @dazumaPython: add a deprecation warning to all resource names. ===> PTAL @software-dov @busunkim96 (Fix Python: Deprecate resource name helper functions #3012)