go to post Eduard Lebedyuk · Sep 1, 2020 If the user does not have W access on routines db he will not be able to edit it. Also the whole DB might be marked as RO.
go to post Eduard Lebedyuk · Aug 31, 2020 Sure: Set sc=##class(%REST.API).GetWebRESTApplication(namespace,webApplication,.swagger)
go to post Eduard Lebedyuk · Aug 31, 2020 Can you elaborate a bit? What dispatcher class do you want generated?
go to post Eduard Lebedyuk · Aug 28, 2020 Create your own context class and redefine getDisplayList there. Docs.
go to post Eduard Lebedyuk · Aug 26, 2020 Dmitriy is correct but for your specific use case (auto-removed globals) use Process Private Globals as they are automatically deleted on process end.
go to post Eduard Lebedyuk · Aug 20, 2020 This is useful if you need to debug class methods where you can't use $$$TRACE Add Include Ensemble to the start of your class and all Ensemble specific macros become available.
go to post Eduard Lebedyuk · Aug 20, 2020 Just need to figure out (or take an advice!) how to exclude, say, system classes outright. Something like this should work: WHERE 1=1 AND NOT name %STARTSWITH '%' AND NOT name %STARTSWITH 'CSP' AND NOT name %STARTSWITH 'Ens' AND NOT name %STARTSWITH 'INFORMATION.SCHEMA'
go to post Eduard Lebedyuk · Aug 19, 2020 Will they compare INT's or CLS's, given it's about CompiledClass? No idea. Do you think someone might have edited generated int code directly?
go to post Eduard Lebedyuk · Aug 19, 2020 I think this is a task better suited for Version Control System, such as git. Export all relevant code from the first namespace Commit Export all relevant code from the second namespace Diff And for CD/CI systems such as Jenkins, GitHub or GitLab. That said you can use this SQL to compare class hashes (if hashes are identical than classes are identical) SELECT Name, Hash, TimeChanged, TimeCreated FROM %Dictionary.CompiledClass After that you can use this SQL to compare hashes of the individual methods (if classes do not match): SELECT parent, Name, RuntimeHash FROM %Dictionary.CompiledMethod
go to post Eduard Lebedyuk · Aug 19, 2020 Check this example of SQL to Excel. You might need to adjust the code to use Outbound SQL Adapter but the general gist it the same.