In Management Portal one can create and configure connection in:
System Administration
> Configuration
> Connectivity
> SQL Gateway Connections
> Create New ConnectionBut how to create new connection programmatically?
In Management Portal one can create and configure connection in:
System Administration
> Configuration
> Connectivity
> SQL Gateway Connections
> Create New ConnectionBut how to create new connection programmatically?
The documentation at https://docs.intersystems.com/irisforhealthlatest/csp/docbook/DocBook.U…
Case-sensitive: variable names (other than the system variables) are case-sensitive. Names of classes and their members, names of routines and their entry points, names of include files and macros are all case sensitive.
Consider "fully qualified" class name: Package.subpackage.ClassName
What is the class name mentioned in the documentation? Package.subpackage.ClassName or ClassName ?
You'll find the original text and all my Advent of Code efforts in different programming languages in https://bitbucket.org/janihur/advent-of-code/src/master/
ObjectScript code discussed here is found in https://bitbucket.org/janihur/advent-of-code/src/master/objectscript
I have been using ObjectScript only on last 1,5 years maybe 30% of my working time but the code at work is very different than in these puzzles. You can find my random code snippets and learning notes from https://github.com/janihur/objectscript-ex
The following CPF entry:
[Actions] CreateUser:Name=foobar,Roles=%All,Password=loremipsumdolorsitamet1234,FullName=Foo Bar,ChangePassword=1,Enabled=1,Comment=Testing testing,AccountNeverExpires=1,PasswordNeverExpires=1
Fails with an error:
ERROR #506: Invalid property error at line 19, 'Password=loremipsumdolorsitamet1234', Class Security.Users, Error=<CANNOT SET THIS PROPERTY>zPasswordSet+3^Security.Users.1
A bug or a feature or a stupid user error? The documentation says nothing about the limitations:
I have just learned about configuration merge. However I see there is no option to configure OAuth2 with CPF. Any hopes to get that covered some day?
I have a custom IPM resource processor like:
<Resource Name="example.json" ProcessorClass="OSEX.ipm.demo.IpmResourceProcessor" Foo="from manifest Resource attribute"/>
What is the best practice to deploy the custom resource processors to the IRIS instance? It can't be part of the module that uses it for obvious (?) chicken-egg situation.
My best idea atm is to put all those custom processors into a (library) module and all modules using any of them just have a dependency to the custom processors module.
I assume IPM manifest tag UnitTest is tightly coupled with the standard unit test framework, right? However we have our own one that predates the standard one and we are not going to switch.
I think I need to import the unit test cases and then be able to run a single class method for the test run. Any ideas how this would be possible?
It's not supported at the moment but is it possible to implement the Sonatype Nexus (or JFrog Artifactory) support based on the current (or upcoming) IPM version?
In repo command help I see there is a support for filesystem repositories (which I have not yet tried) and my current (hopefully not far-fetched) interpretation is the IPM is designed to be able to support different repositories:
I'm trying package IPM command but I'm getting the following error:
zpm:IPMTEST1>package -verbose -only -path /home/irisowner/ osex-ipm-hello
[IPMTEST1|osex-ipm-hello] Package START
Exporting 'OSEX.ipm.hello.Hello.cls' to '/home/irisowner/src/OSEX/ipm/hello/Hello.cls'
Exported to /home/irisowner/module.xml
Module exported to:
/home/irisowner/
[osex-ipm-hello] Package FAILURE
ERROR! ObjectScript error: <VALUE OUT OF RANGE>zConstructTar+19^%ZPM.Utils.FileBinaryTar.1What's wrong here?
I can see all the correct module files created:
I'm working on my first (!) IPM module and I'm a little puzzled with the registry authorization.
I have a working local registry (I hope!) and the module is loaded (with load-command) to the namespace.
Now publish-command fails because of missing authorization. I have set nothing authorization related myself and I'm lost how the authorization should be configured. All the material I have read so far seems to ignore that and only mentions one have to authenticate ...
Here's the command output:
I'm trying out the package manager (IPM). I'm trying to create a local (private) registry. To me it looks like the local registry installation succeeded but I can't figure out how to use it.
I'm using latest stable v0.7.3.
I have uploaded one module there (as told in one forum post):
$ curl http://localhost:52774/registry/
{"version":"1.3.2"}
$ curl http://localhost:52774/registry/packages/-/all
[{"name":"objectscript-math","description":"Math library for InterSystems ObjectScript","repository":"https://github.com/psteiwer/ObjectScript-Math/","origin":"","versions":["0.0.5"],"is_owner":0}]Or other way round: Can Test Coverage Tool to be used with other unit testing frameworks than %UnitTest ?
Test Coverage Tool: https://openexchange.intersystems.com/package/Test-Coverage-Tool
InterSystems IRIS UnitTest framework: https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic…
EnsLib.File.PassthroughOperation has File Name property with default value: %f_%Q%!+(_a)
The Management Portal documentation description of the property:
Name of file to output the document(s) to. May include timestamp specifiers. The %f specifier if present will be replaced with the name of the document's original source filename (stripped of characters illegal in target filenames).
See the method Ens.Util.File.CreateTimestamp() for documentation of timestamping options.
One can modify Interoperability External-Service Registry in Management Portal (Interoperability > Configure > External-Service Registry).
Can the registry be accessed and modified programmatically?
I don't find much documentation about the subject. Mainly https://docs.intersystems.com/irisforhealth20221/csp/docbook/DocBook.UI…