go to post Lorenzo Scalese · Sep 27, 2023 Hi @Theo Stolker , I just tested the "DID Manager" specification. With the simple http client, I noticed a code generation issue with double-quoted HTTP status code. It's fixed. I see a generated model like model.CompoundServicePropertiesserviceEndpoint empty. So, If we check the specification and we can see: serviceEndpoint: description: A map containing service references and/or endpoints. example: { 'auth': 'did:nuts:EwVMYK2ugaMvRHUbGFBhuyF423JuNQbtpes35eHhkQic/serviceEndpoint?type=auth' } type: object It's a type object, but there is no schema defined, so we can't generate any properties in this case. This is the same problem with the model model.OrganizationSearchResultorganization. I also noticed external references in the specification file like : didDocument: $ref: '../common/ssi_types.yaml#/components/schemas/DIDDocument' Indeed, this case is not supported. I haven't checked for all the specs, but I think the 2 cases noted are the cause for the empty models. If we specify a URL, maybe it would be possible to download the external ref and load the definition (to analyze...).
go to post Lorenzo Scalese · Sep 27, 2023 Hi @Theo Stolker Thank you for your report! I'll try these specifications.Yes, we can discuss on Discord or using 'issue' on the GitHub page. What operation did you do? (generate simple HTTP client or client production?)
go to post Lorenzo Scalese · Aug 29, 2023 Ho interesting! I never noticed the flag argument of the function $ListToString.
go to post Lorenzo Scalese · Aug 28, 2023 Thank you for this report @Guillaume Rongier I checked my deployment scripts, fortunately, they are already using HS.Util.Installer.Foundation.
go to post Lorenzo Scalese · Aug 26, 2023 Great! It's exactly what I need! Thank you @Robert Cemper !
go to post Lorenzo Scalese · Aug 22, 2023 Hi @Guillaume Rongier ! Thank you!Yes, I continue working on this project after writing this article. I have to write a sequel. You can see a summary of the activity on this dashboard : And the detail for a CSP\REST here:
go to post Lorenzo Scalese · Aug 11, 2023 Hello @Michael Davidovich , Did you try to override OnPreDispatch ?Also you can configure your web application to use a subclass of %CSP.SessionEvents and override OnStartRequest, OnEndRequest . Set Application = "/csp/YourWebApp" Do ##class(Security.Applications).Get(Application, .p) Set p("EventClass") = "YourCSPEventsClassName" Set sc = ##class(Security.Applications).Modify(Application, .p)
go to post Lorenzo Scalese · Aug 8, 2023 Hi @Mihoko Iijima! I missed this method. Thank you, It works!
go to post Lorenzo Scalese · Aug 3, 2023 Well done! Don't worry about your brain 😉 ; 67 bytes improvement by Julius Kavay 1 s c=$a(s,$i(i)) q:c<0 '$g(z) g:c=41-c+40 1 q:$i(z,c-40.5)>0 0 g 1
go to post Lorenzo Scalese · Aug 3, 2023 Variant 69 bytes: ClassMethod IsValid(s As %String) As %Boolean { 1 s c=$a(s,$i(i)) q:c<0 '$g(z) g:"()"'[$c(c) 1 q:$i(z,c-40.5)>0 0 g 1 }
go to post Lorenzo Scalese · Aug 1, 2023 Another solution, 82 bytes: /// ( -> -0.5 /// ) -> 0.5 ClassMethod IsValid(s As %String) As %Boolean { s z=0,s=$zstrip(s,"*E",,"()") f s c=$a(s,$i(i)) ret:c<0 'z ret:$i(z,c-40.5)>0 0 }
go to post Lorenzo Scalese · Jul 15, 2023 Hello @Sukhpreet Singh,You can use the global mapping in "%ALL" namespace. This is the most convenient way.
go to post Lorenzo Scalese · Jun 20, 2023 Hello, following the documentation of the argument yearopt , you can do : Write $ZDATE($ZDATEH("13/Jun/23",8,,6),8) 6 Represent all dates in the current century with two-digit years and all other dates with four-digit years.
go to post Lorenzo Scalese · Jun 18, 2023 Hello @Nildo Torres , If the collation to install is identified, you can use the following classmethod : Set $Namespace = "%SYS" ; Change fraw by the locale you need. Set sc = ##class(Config.NLS.Locales).Install("fraw")
go to post Lorenzo Scalese · Jun 14, 2023 Finally, I found the solution : $SYSTEM.OBJ.IsUpToDate("classname")
go to post Lorenzo Scalese · Mar 30, 2023 Finally, there is a trick!Thank you @Guillaume Rongier !I share this with our dev interoperability team.
go to post Lorenzo Scalese · Mar 16, 2023 Hello @Benjamin De Boe , It's great news that the performance is improved for the tune table. Given the volume of data on some installations, a tune table could take more than 15 days. I hope to see a significant decrease now that we are migrating our installations to IRIS. However, I have a few comments on the current workings. SQL Stats are in the code, which makes it very difficult to manage.If a table has no statistics, when the first query is run, the table tune is executed. This is great! However, since it is automatic and the statistics are stored in the class definition, when a developer creates a record in the table and runs a test, it will generate the stats and it will certainly end up in the repository. We lose the benefit of the automatic execution of the tuning, but even worse we have unrepresentative statistics. Another problem: Even if we import the statistics after the deployment of a new version, if we update a class (bug fix), we have to remember to import the corresponding statistics. All this requires particular vigilance. I hope that in a future version, there will be a split between the stats and the code. We can't really commit stats in our application repository because, from one installation to another, the stats can be different depending on how the application is used. I am thinking of developing a tool to manage SQL statistics: - Comparison of production statistics with recalculated statistics on a test server (with a copy of the data). - Manual selectivity management for the rare cases where the tune table would not be efficient (to avoid overwriting manually modified values). - Identification of statistics that need to be modified in production (due to ratio change, value distribution). I am working on an application that contains far too many tables to be able to do this work manually. It's great to have improved the performance of the tune table as well as the documentation (I read it yesterday and it's much clearer) and I hope you will improve the system with the split stats\code. Thank you!
go to post Lorenzo Scalese · Mar 16, 2023 I agree with @Pietro Montorfano , due to the type of failure it's not possible to know the stop reason. Also, If it's an abnormal stop the execution of ZSTOP is not guaranteed. Depending on your target, maybe you can execute code on start (ZSTART routine) to clean something when the system has been stopped abnormally. It could be identified by a trace in your application database or a scan of the messages.log