Finding all usages of deprecated classes and methods
Hi folks,
We are in the process of migrating from Ensemble to IRIS.
After the migration I would like to find all usages of deprecated classes and methods in all of our code. This is to align with the changes in package like %SYSTEM.SQL for example.
Is there an easy way to do this, or maybe a tool that can assist?
Thanks.
@Stefan Cronje
You can open the classes in VS Code and and it will notify you when you use deprecated classes or methods. There isn't a programmatic way to get that information (for example, by calling a ClassMethod) but it would be possible to write one using %SyntaxColor.
Thank you.
I will check it out. Doing one by one is a bit impractical as I have around 5200 classes in the project.
Tried it out, but id does not indicate when a method call or class is deprecated.
I think it's possible to do this using our Yuzinji tool. Here's my idea:
But how to identify which deprecated methods or classes are being referenced?
S101g has facility for tagging items on its diagrams. Its "Tag" menu can also export and import a list of tags.
I came up with a better technique for using Yuzinji and Structure101g Studio to reveal which deprecated classes an app's codebase uses. Here's a screenshot showing the results for the Web Terminal 4.9.6 package on IRIS 2024.1
I adapted the tagging technique to identify the use of deprecated methods in non-deprecated classes. In the case of the Web Terminal codebase, no such usage was found.
If anyone reading this is interested in trying this on your own codebase please contact me through DC's DM facility, or email info@georgejames.com
@Timothy Leavitt here's the report showing which IRIS 2024.1 deprecated classes your Test Coverage Tool 3.1.0 package uses.
@Ben Spead sometime we'd love to show your Internal Apps team the kind of codebase insights Yuzinji can provide. Please DM me if you are interested.