go to post Enrico Parisi · Dec 28, 2023 It's a bug, I've created an issue in github with a possible fix.
go to post Enrico Parisi · Dec 28, 2023 Thank you for ll the info, I was able to install git-source-control and I'm....fighting testing it. I think that the main problem with OEX software is the lack of information/details/documentation on how to install, configure and the use them. Even ZPM itself suffer this problem, I found nowhere that a ZPM package can be downloaded as tarball and installed using the load command.Where is the url for downloading the the tarballs for the ZMP packages reported/documented? The git-source-control has very (very, very....) limited documentation/information on any aspect, from configuration to usage. Often it's a reverse engineering activity to figure out how it (should) work.The feeling is that is a half backed software that has been abandoned. Nevertheless I keeping fighting testing it.
go to post Enrico Parisi · Dec 27, 2023 At the moment IRIS does not support OpenAPI 3.0, the project OpenAPI-Suite in Open Exchange ("Set of tools for ObjectScript code generation from Swagger 3.0") support it.
go to post Enrico Parisi · Dec 27, 2023 I found the problem. The issue does not happen if the service user is changed using: IRISinstall.exe setserviceusername <instance-name> <username> <password> When that command is issued two groups are created: IRISServicesIRIS_Instance_<InstanceNme> and the service user is added as member of there two groups. The reason that it works using this way is that to the IRISServices group, in Local Security Policy is assigned the "Replace a process level token" user right. In other words, the user that stars IRIS need the "Replace a process level token" right assigned via Local Security Policy (or GPO in an AD Domain). Lesson learned:- Use IRISinstall.exe to change the user for the IRIS serviceor- Assign "Replace a process level token" right to the user of IRIS service
go to post Enrico Parisi · Dec 22, 2023 That's EXACTLY what a Schedule setting does in any Item/Business Host (Business Service in your case). Enrico
go to post Enrico Parisi · Dec 22, 2023 Well...installing a ZPM registry require ZPM itself and internet connection. Additionally, in environments with no internet connection adding a new server (or docker) with internet connection just to install a source control software does not sound like "a solution". I understand that ZPM is simple and handy, but why not releasing a stand alone installer that can be downloaded and installed without ZPM? Enrico
go to post Enrico Parisi · Dec 21, 2023 Is internet connection a requirement? It seems is not possible to download and install it without using ZPM that require internet connection. Not every server has internet connection. Enrico
go to post Enrico Parisi · Dec 21, 2023 "Unfortunately the Schedule Option isn't suitable where we need the job to run only once at a set time per day" Why not? It is definitely possible to schedule to start every day at 8:00 for example using this schedule string: START:*-*-*T08:00:00,STOP:*-*-*T08:10:00 You start a Business Service at 8:00 and stop it at 8:10 (for example).All you need to take care is that the BS only make one call when started. Enrico
go to post Enrico Parisi · Dec 20, 2023 have a look to this article: Upload into a InterSystems IRIS REST API
go to post Enrico Parisi · Dec 18, 2023 iris force <instance name> Edit: wrong answer, see @Joel Solon comment below
go to post Enrico Parisi · Dec 18, 2023 Look the methods FileCompact() and and ReturnUnusedSpace() in the class SYS.Database. This is the class reference. Enrico
go to post Enrico Parisi · Dec 18, 2023 Yeah, it has happened to me too, it seems WRC is not interested in fixing/reporting bugs when any sort of workaround is possible/available, like using a different class in this case. The community is frequented by InterSystems product managers, developers, sales engineers and many other InterSystems people, maybe out of compassion will report it and will get it fixed, so maybe in IRIS 2026 we will see it fixed! 😂 Fixing this does not seems to be difficult, it's just matter of filtering/checking the XData block before (blindly) using it as JSON map. I'm not holding my breath....
go to post Enrico Parisi · Dec 18, 2023 It seems you cannot use ax XData block of "MimeType = application/json" within a class that extends %JSON.Adaptor. Put your XData block in a different class that does not extends %JSON.Adaptor. This may be a bug, (it looks so to me), you may want to report it to WRC. Enrico
go to post Enrico Parisi · Dec 17, 2023 Set sc=##class(%File).GetDirectorySpace("D:",.FreeSpace) Write FreeSpace Classreference: classmethod GetDirectorySpace(Name As %String, ByRef FreeSpace As %String, ByRef TotalSpace As %String, Flag As %Integer = 1) as %StatusReturn the amount of total space and free space in either Bytes,MB,GB on a drive or directoryName = Valid Drive or directory specificationFlag = 0 - Return bytesFlag = 1 - Return MB (Default)Flag = 2 - Return GB MB and GB returned are rounded to 2 decimal places.Any error status returned is O/S level error. Note that on Windows only drives have a measurement for free space and directories can not so the FreeSpace is only returned for drives.
go to post Enrico Parisi · Dec 16, 2023 @Julius Kavay , nice code. But the point was "more efficiently than using a serialization/deserialization", with this code it takes more than 4 times as serialization/deserialization. I think that using serialization/deserialization IS very efficient. @Rodrigo Werneck , are you having performance issues? What makes you think serialization/deserialization is inefficient? Did you measure the performance in your use case? Enrico
go to post Enrico Parisi · Dec 15, 2023 Do you know the function name? Do you need the *exact* function body (including comments, formatting etc.) or just the function code?
go to post Enrico Parisi · Dec 14, 2023 set status = instance.OnProcessInput(classToPostHandler, .response) You are not supposed to call the OnProcessInput() callback method directly, instead the ProcessInput() method should be called. Sometime calling OnProcessInput() works, sometimes create problems. Enrico
go to post Enrico Parisi · Dec 14, 2023 Please note that "%PosixTime values have a 1 microsecond resolution", see %Library.PosixTime class reference documentation. Then:USER>set ts="2023-12-12 19:46:19.000" USER>set Posix=##class(%Library.PosixTime).TimeStampToLogical(ts) USER>write ##class(%Library.PosixTime).LogicalToTimeStamp(Posix-18000000000)2023-12-12 14:46:19 Enrico