[Dev] [DAS-3.0.0] Unable to retrieve matching records via JS API

2015-12-26 Thread Udara Rathnayake
Hi,

I tried following doc[1] to retrieve records using a simple lucene
query(userId:udarakr) via JS API.But noticed an error, when I use the same
query within data explorer it works perfectly.

Then did some debugging on portal/controllers/apis/analytics.jag &
portal/js/carbon-analytics.js,  found we are expecting queryInfo object in
a different format than in the doc[1].

portal/js/carbon-analytics.js - LINE 473

this.search = function (queryInfo, callback, error) {
jQuery.ajax({
url: this.serverUrl + "?type=" + TYPE_SEARCH +
"=" + queryInfo["tableName"],
data: JSON.stringify(queryInfo["searchParams"]),
type: HTTP_POST,
success: function (data) {
callback(data);
},
error: function (msg) {
error(msg[RESPONSE_ELEMENT]);
}
});
};


As per above we need to provide queryInfo Object like,

Eg:-
var queryInfo={
tableName:"LOCATION",
searchParams : {
query:"userId:udarakr",
start:0,
count:100
}
};

If this is the correct way, Shall we update the docs?

[1]
https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+JS+API

-- 
Regards,
UdaraR
​​
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS-3.0.0] Unable to retrieve matching records via JS API

2015-12-26 Thread Anjana Fernando
@Gimantha, please check.

Cheers,
Anjana.

On Sat, Dec 26, 2015 at 8:52 PM, Udara Rathnayake  wrote:

> Hi,
>
> I tried following doc[1] to retrieve records using a simple lucene
> query(userId:udarakr) via JS API.But noticed an error, when I use the same
> query within data explorer it works perfectly.
>
> Then did some debugging on portal/controllers/apis/analytics.jag &
> portal/js/carbon-analytics.js,  found we are expecting queryInfo object in
> a different format than in the doc[1].
>
> portal/js/carbon-analytics.js - LINE 473
>
> this.search = function (queryInfo, callback, error) {
> jQuery.ajax({
> url: this.serverUrl + "?type=" + TYPE_SEARCH +
> "=" + queryInfo["tableName"],
> data: JSON.stringify(queryInfo["searchParams"]),
> type: HTTP_POST,
> success: function (data) {
> callback(data);
> },
> error: function (msg) {
> error(msg[RESPONSE_ELEMENT]);
> }
> });
> };
>
>
> As per above we need to provide queryInfo Object like,
>
> Eg:-
> var queryInfo={
> tableName:"LOCATION",
> searchParams : {
> query:"userId:udarakr",
> start:0,
> count:100
> }
> };
>
> If this is the correct way, Shall we update the docs?
>
> [1]
> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+JS+API
>
> --
> Regards,
> UdaraR
> ​​
>
>


-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Private PaaS 4.1.1 RC2

2015-12-26 Thread Akila Ravihansa Perera
Hi Gayan,

Since we have forked Python cartridge agent in PPaaS 4.1.1-RC2, users won't
be able to use Dockerfile shipped with Stratos to build cartridge images.
Have we documented the steps needed to build cartridge Docker images for
PPaaS?

Thanks.

On Fri, Dec 25, 2015 at 12:06 AM, Gayan Gunarathne  wrote:

> IMO if the vote is success we can simply move those binaries to the
> product distribution without doing any alternation to those binaries.This
> is the same as the staging repo. If the vote is success we promote the
> staging repo , if it is fails we drop that staging repo.
>
> Thanks,
> Gayan
>
> On Thu, Dec 24, 2015 at 11:47 PM, Imesh Gunaratne  wrote:
>
>>
>>
>> On Thu, Dec 24, 2015 at 10:41 PM, Gayan Gunarathne 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> What is the ration behind that? I don't see any reason to prefix
>>> binaries with the release candidate no. As those binaries will be the one
>>> which move to the product release distribution if the vote is success,
>>>
>>> The only concern is once we do multiple release candidates, how would
>> someone differentiate those if we have the same set of file names?
>>
>> Thanks
>>
>> Thanks,
>>> Gayan
>>>
>>> On Thu, Dec 24, 2015 at 10:14 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Gayan,

 I think all the distributions should get prefixed with rc2, see
 4.1.0-rc2:
 https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.0-rc2/

 Thanks

 On Mon, Dec 21, 2015 at 7:35 PM, Gayan Gunarathne 
 wrote:

>  Hi All,
>
> This is the second release candidate of WSO2 Private PaaS 4.1.1.
>
> This release fixes the following issues:
> *https://wso2.org/jira/browse/PAAS-305?filter=12582
> *
>
> Please download, test and vote. The vote will be open for 72 hours or
> as needed.
>
> *​Source and binary distribution files:*
> https://svn.wso2.org/repos/wso2/scratch/PPAAS/wso2ppaas-4.1.1-rc2/
>
> *Maven staging repository:*
>
> http://maven.wso2.org/nexus/content/repositories/orgwso2ppaas-217/
>
> *The tag to be voted upon:*
> https://github.com/wso2/product-private-paas/tree/v4.1.1-rc2
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
>
> Thanks,
> The WSO2 Private PaaS Team
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>>
>>> Gayan Gunarathne
>>> Technical Lead, WSO2 Inc. (http://wso2.com)
>>> Committer & PMC Member, Apache Stratos
>>> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev