Label all deprecated services as such (#3120)

* Label all deprecated services as such

This will change

service_requests_total{category="other",family="cocoapods",service="cocoapods_apps"} 76

to

service_requests_total{category="other",family="cocoapods",service="deprecated_cocoapods_apps"} 76

* Fix tests
This commit is contained in:
Paul Melnikow
2019-02-28 19:22:28 -05:00
committed by Caleb Cartwright
parent 97358c1399
commit 56e71d7c76

View File

@@ -27,12 +27,11 @@ function deprecatedService(attrs) {
return class DeprecatedService extends BaseService {
static get name() {
return (
name ||
`Deprecated${camelcase(route.base.replace(/\//g, '_'), {
pascalCase: true,
})}`
)
return name
? `Deprecated${name}`
: `Deprecated${camelcase(route.base.replace(/\//g, '_'), {
pascalCase: true,
})}`
}
static get category() {