question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix OSS apps that may be using deprecated functions

See original GitHub issue

Related issue: https://github.com/newrelic/developer-website/issues/1033

Summary

There are many apps in the OSS app library that have been built by a hand full of Relics, in order to ensure that the deprecation of nerdlet functions doesn’t introduce any problems into those apps, it would be ideal to have some automation to detect if a deprecated function or prop existing in a code base and then automatically fix that problem.

Alternatively if we want to just inventory and check the apps for these deprecation that is a possibility as well. Depending on how much time there is to spend on.

Solution Idea

Can we build in a Github Action into The Catalog Manager (or each repo) that can detect the use of the @deprecated tags in an app’s code base?

App List

Account Maturity
384de6e5-8e57-4d56-9d13-299ee7ae8641

New Relic.org Donor Analyzer 
173db02e-53c8-4893-87bc-d3da6978d7f0

Workload GeoOps 
02f8775c-c248-42d4-be54-2f96443f786a

NRQL Lessons
34b6d49a-d824-4f99-b337-1d9a5467094d

nr1-customer-journey
67804983-939f-40af-87aa-d3b7af1d3c82

GitHub Integration
4ee1cd5f-0f5e-4326-b153-5468c888ba8d

PageView Map
51fc02d9-d39b-4aac-a782-0b7a64c18b0c

Metric Aggregator
932f5c04-5ab6-47d9-90ab-0e716237a4a3

Top
b9616a2a-9543-4162-8e9f-30dbb50c5cba

Browser Analyzer
e782da4a-7e4b-46db-8b1b-bb7c45a07877

Status Pages
dd63659f-6f57-42f2-9428-c5ad151c35af

Datalyzer
2d20b55d-1939-4b76-abcd-60eea0d0e10a

Network Telemetry
57edc75e-339e-4703-a3d5-c253ad116e15

GraphiQL Notebook
8432e742-6910-4957-b34f-c5115eb8cda3

Integrations Manager
e9074d13-3fae-46e5-bffd-f271253649bf

Groundskeeper
4a13b4e8-3129-467b-a099-ba5f503fe47f

Deployment Analyzer
dff857dd-6a9b-4fc4-b223-93087465625c

Nerdgraph Queries

to retrieve the ID of the user that published a nerdpack version

{
  actor {
    nerdpacks {
      nerdpack(id: "") {
        versions {
          results {
            createdByUser
            version
          }
        }
      }
    }
  }
}

to retrieve owner email

{
  user(id: 0) {
    email
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jpvajdacommented, Jan 17, 2021

All the automation is in place for this, so closing… https://discuss.newrelic.com/t/one-core-3rd-party-component-deprecations/127159

0reactions
jpvajdacommented, Jan 7, 2021

@tangollama Is looking into if it’s possible to include the pattern matching and report the issues in the repolinter rule set(s). https://github.com/newrelic/.github/blob/main/repolinter-rulesets/new-relic-one-catalog-project.json

Read more comments on GitHub >

github_iconTop Results From Across the Web

If something is deprecated, can I still use it? - Stack Overflow
I disagree that it is always "bad practice" to use deprecated functions. If it were bad practice, they would not have been deprecated,...
Read more >
Removed and deprecated functions in Rational Application ...
Type of change Effective version Function Removed 9.5 TPTP Test component. Obsolete feature Removed 9.5 Deprecated 9.1.1
Read more >
Your enterprise app is built on deprecated npm modules. or ?
A managed open source approach helps you spot deprecated projects and fixes related issues. If your team has taken a commercial dependency on ......
Read more >
Issues - GitHub
DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at G:\SNWS\sn-micro-front-web-project-template ...
Read more >
The Complete Guide for Deprecation Warnings in Rails
Once you have all the deprecation warnings (or most of them) from your application, it is a good idea to track them as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found