José Pereira · Jun 29, 2018 go to post

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.

José Pereira · Jul 6, 2018 go to post

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.

José Pereira · Jul 16, 2020 go to post

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.

José Pereira · Jul 28, 2020 go to post

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é
 

José Pereira · Jul 29, 2020 go to post

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é

José Pereira · Aug 26, 2020 go to post

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...

José Pereira · Aug 31, 2020 go to post

Hi Eduard.

Awesome job, congratulations!

Is there something similar but for REST Dispatcher classes?

José Pereira · Aug 31, 2020 go to post

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?

José Pereira · Aug 31, 2020 go to post

Hmm... interesting... I think I didn't know that class beacuse I still didn't move to IRIS...

Thank you Eduard.

José Pereira · Sep 1, 2020 go to post

Hi Guillaume.

One more cool feature to explore when my company moves to IRIS. :)

Thank you for let me know.

José Pereira · Dec 22, 2020 go to post

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.

José Pereira · Feb 9, 2021 go to post

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!

José Pereira · Mar 9, 2021 go to post

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!

José Pereira · Mar 9, 2021 go to post

Very happy to had the chance of sharing a project with @Henrique.GonçalvesDias.

More brains and hands working together it's better!

José Pereira · Jul 28, 2021 go to post

My JBL Flip 5 has just arrived!! Great sound quality!!! 🎶🤘

Thanks GM!! wink

José Pereira · Dec 28, 2021 go to post

It was the first time that I joined and could see how difficult the challenges are!! So, congratulations for all winners and other participants as well.