go to post José Pereira · Mar 9, 2021 Well done guys! I'm very proud to had been participated! Glad to see how these contests are stimulating so many people to do their best! I see those apps as ground to create awesome projects in 2021!
go to post José Pereira · Feb 22, 2021 Hi Davi. I think IRIS BI has a feature that could helps you. Please, see this document. I created an application which uses a react page to display a listing from a cube; but not sure if this is what you are looking for... Anyway, if you are interested, please, check out this package. If you want to try my example applicantion you can find it here. HTH, José
go to post José Pereira · Feb 9, 2021 Hi Evgeny! I tried embedded Python in my multi model contest app but used an ugly approach to deploy Python code. I didn't realize that ZPM could do this for me... Nice tip!
go to post José Pereira · Feb 3, 2021 Hi! I haven't tested it, but have you tried this function? https://docs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=D2RMDX_Properties HTH José
go to post José Pereira · Dec 22, 2020 I'd love to see a set of functional style operators (like Javascript's functions map, filter, reduce etc) to work with JSON in COS - If isn't anything like that already.
go to post José Pereira · Sep 1, 2020 Hi Guillaume. One more cool feature to explore when my company moves to IRIS. :) Thank you for let me know.
go to post José Pereira · Aug 31, 2020 Hmm... interesting... I think I didn't know that class beacuse I still didn't move to IRIS... Thank you Eduard.
go to post José Pereira · Aug 31, 2020 Sure! Let's say I have this dispatcher class: XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ] { <Routes> <Route Url="/pets/:id" Method="delete" Call="deletePet" /> </Routes> } ClassMethod deletePet(pid As %String) As %Status { Try { If '##class(%REST.Impl).%CheckAccepts("application/json") Do ##class(%REST.Impl).%ReportRESTError(..#HTTP406NOTACCEPTABLE,$$$ERROR($$$RESTBadAccepts)) Quit If ($number(pid,"I")="") Do ##class(%REST.Impl).%ReportRESTError(..#HTTP400BADREQUEST,$$$ERROR($$$RESTInvalid,"id",id)) Quit Set response=##class(petstore.impl).deletePet(pid) Do ##class(petstore.impl).%WriteResponse(response) } Catch (ex) { Do ##class(%REST.Impl).%ReportRESTError(..#HTTP500INTERNALSERVERERROR,ex.AsStatus()) } Quit $$$OK } Is there a way to generate a YAML documentation for the endpoint /pets/:id, HTTP DELETE method, like you did for REST.Test.Person class?
go to post José Pereira · Aug 31, 2020 Hi Eduard. Awesome job, congratulations! Is there something similar but for REST Dispatcher classes?
go to post José Pereira · Aug 26, 2020 Nice! Could you provide some references to adjust my project, please?
go to post José Pereira · Aug 26, 2020 Hi Evgeny. Yes, ZPM make installation process really easy, handling the dependencies. I also see that it's possible to run unit tests, nice! Initially I considered to make my application available in ZPM, but I wondering if it's ok to upload examples instead of production modules...
go to post José Pereira · Jul 29, 2020 Hi guys! A related topic is how to disable Analytics. Recently, I had to disable access to DeepSee from certain namespace. I did that by settings this global: Set ^SYS("Security", "CSP", "AllowPrefix", "web-app-name", "%DeepSee.") = 0 I used Caché 2017.2, but I think this also would work in newer Cache versions and in IRIS as well. More information here. HTH, José
go to post José Pereira · Jul 28, 2020 Hi Lucas, I don't know if Cache or IRIS provides such feature. However, you could create a %Persistent class and link its data to ^ERRORS global in class's storage section. Recently, @Robert Cemper did a great example mapping ^SPOOL global to a persistent class. May be this example could helps you. José
go to post José Pereira · Jul 22, 2020 I certainly agree with you @Yuri Marx! And the discord community is also great!
go to post José Pereira · Jul 16, 2020 Hi Kuanysh, thank you for your comment. Yes, I agree with you. I'm new in data science stuffs, so I've been searching introduction material webwide. Even though I found great content, I feel a lack of information on what happens after you train your models to deal with situations like that reported in MIT's article.
go to post José Pereira · Jul 6, 2018 Hi Eduard. Thank you for your response.I've tried do a call to something like this (without filterSpec) /Info/FilterMembers/Cube and got this error {"Info":{"Error":{"ErrorCode":"5002","ErrorMessage":"ERRO #5002: Erro Caché: <UNDEFINED>zWriteFilterMembers+47^%DeepSee.REST.v1.InfoServer.1 *tMembers(1)"}}} If I append a filterSpec so I get a correct response.
go to post José Pereira · Jun 29, 2018 Hi Peter.Thank you for your suggestions, I'll take then account. I think the Cube Manager approach is the best due it avoid triggers like you said.