Hi Thomas!
Thanks for your answer.
Is there any workaround for now? =)
- Log in to post comments
Hi Thomas!
Thanks for your answer.
Is there any workaround for now? =)
Thank you Anastasia! :)
Very happy to had the chance of sharing a project with @Henrique.GonçalvesDias.
More brains and hands working together it's better!
Indeed @Robert Cemper! Thank you @Anastasia Dyubaylo ! :)
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!
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é
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!
Very nice work, congratulations!
Is source code available? :)
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é
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.
Hi Guillaume.
One more cool feature to explore when my company moves to IRIS. :)
Thank you for let me know.
Thank you Timothy for let me know.
Hmm... interesting... I think I didn't know that class beacuse I still didn't move to IRIS...
Thank you Eduard.
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?
Hi Eduard.
Awesome job, congratulations!
Is there something similar but for REST Dispatcher classes?
Nice! Could you provide some references to adjust my project, please?
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...
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é
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é
I certainly agree with you @Yuri Marx! And the discord community is also great!
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.
Hi Sam.
Thank you for let me know.
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.
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.