Re: [Dev] Ballerina function to limit the decimal points in a float value

2019-04-11 Thread Ishara Ilangasinghe
Thank Shan, this is exactly what I wanted.


*Regards,*


*Ishara Ilangasinghe*

*Associate Software Engineer | WSO2*

*Email: isha...@wso2.com *
*Mobile: +94719718288*


[image: http://wso2.com/signature] 


On Fri, Apr 12, 2019 at 11:02 AM Shan Mahanama  wrote:

> Hi Ishara,
>
> I think what you are looking for is io:sprintf().
>
> Eg -
>
> float f = 123.4567;
> // This will format the floating point number to 2 decimal points.
> io:println(io:sprintf("%.2f", f));
>
> More info on sprintf function is available at
> https://ballerina.io/learn/api-docs/ballerina/io.html#sprintf.
> Thanks,
> Shan.
>
> On Fri, Apr 12, 2019 at 10:50 AM Ishara Ilangasinghe 
> wrote:
>
>> Hi All,
>>
>> I want to limit the number of decimal points in a float value, I don't
>> want to round off the value rather format it. Is there a specific method
>> like JavaScript toFixed() in Ballerina 0.990.2. for this?
>>
>> [1]
>> https://stackoverflow.com/questions/55644825/ballerina-function-to-limit-the-decimal-points-in-a-float
>>
>>
>> *Regards,*
>>
>>
>> *Ishara Ilangasinghe*
>>
>> *Associate Software Engineer | WSO2*
>>
>> *Email: isha...@wso2.com *
>> *Mobile: +94719718288*
>>
>>
>> [image: http://wso2.com/signature] 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
>
> *Shan Mahanama* | Senior Software Engineer | WSO2 Inc.
> (m) +94 71 2000 498 | (w) +94 11 743 5800
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Ballerina function to limit the decimal points in a float value

2019-04-11 Thread Shan Mahanama
Hi Ishara,

I think what you are looking for is io:sprintf().

Eg -

float f = 123.4567;
// This will format the floating point number to 2 decimal points.
io:println(io:sprintf("%.2f", f));

More info on sprintf function is available at
https://ballerina.io/learn/api-docs/ballerina/io.html#sprintf.
Thanks,
Shan.

On Fri, Apr 12, 2019 at 10:50 AM Ishara Ilangasinghe 
wrote:

> Hi All,
>
> I want to limit the number of decimal points in a float value, I don't
> want to round off the value rather format it. Is there a specific method
> like JavaScript toFixed() in Ballerina 0.990.2. for this?
>
> [1]
> https://stackoverflow.com/questions/55644825/ballerina-function-to-limit-the-decimal-points-in-a-float
>
>
> *Regards,*
>
>
> *Ishara Ilangasinghe*
>
> *Associate Software Engineer | WSO2*
>
> *Email: isha...@wso2.com *
> *Mobile: +94719718288*
>
>
> [image: http://wso2.com/signature] 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 

*Shan Mahanama* | Senior Software Engineer | WSO2 Inc.
(m) +94 71 2000 498 | (w) +94 11 743 5800
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Ballerina function to limit the decimal points in a float value

2019-04-11 Thread Ishara Ilangasinghe
Hi All,

I want to limit the number of decimal points in a float value, I don't want
to round off the value rather format it. Is there a specific method like
JavaScript toFixed() in Ballerina 0.990.2. for this?

[1]
https://stackoverflow.com/questions/55644825/ballerina-function-to-limit-the-decimal-points-in-a-float


*Regards,*


*Ishara Ilangasinghe*

*Associate Software Engineer | WSO2*

*Email: isha...@wso2.com *
*Mobile: +94719718288*


[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] propertiesMap in Siddhi Query in API manager

2019-04-11 Thread Rukshan Premathunga
Hi Vanji,

Property map contains the additional properties we can include send to TM.
We can include headers, query parameters, the claims of backend JWT,
etc(You need to enable this in the api-manager.xml). Also, it can contain
client IP and Message size.
Please check the sample data.

properties:{"Origin":"https:\/\/localhost:9443","\/order\/123":"","ip":174327201,"Connection":"keep-alive","Referer":"https:\/\/localhost:9443\/store\/apis\/info?name=PizzaShackAPI=1.0.0=admin","User-Agent":"Mozilla\/5.0
(X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko)
Chrome\/73.0.3683.86
Safari\/537.36","Host":"172.17.0.1:8243","Accept-Encoding":"gzip,
deflate,
br","Accept-Language":"en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,si;q=0.6","accept":"application\/json"}

properties:{"queryPara2":"dfgfdgfdg","ip":174327201,"queryPara1":"assdfd","User-Agent":"curl\/7.47.0","Host":"
172.17.0.1:8243","accept":"application\/json"}

Thanks and Regards

On Fri, Apr 12, 2019 at 5:55 AM Vanjikumaran Sivajothy 
wrote:

> Hi, devs,
>
> What are the properties in propertiesMap of Siddhi Query in API manager?
>
> define stream RequestStream (messageID string, appKey string, appTier
> string, subscriptionKey string, apiKey string, apiTier string,
> subscriptionTier string, resourceKey string, resourceTier string, userId
> string,  apiContext string, apiVersion string, appTenant string, apiTenant
> string, appId string, apiName string, *propertiesMap string*);
>
>
> Best Regards,
> Vanji
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Rukshan Chathuranga.
WSO2, Inc.
+94711822074
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] getting error while building wso2/product-iots

2019-04-11 Thread Syed Hasan
https://github.com/wso2/product-iots/issues/1913

On Mon, Apr 8, 2019 at 12:56 AM Janak Amarasena  wrote:

> Hi Syed,
>
> You need to build product-iots in the following order.
>
>1. carbon-device-mgt
>2. carbon-device-mgt-plugins
>3. product-iots
>
> Also when building *product-**iots* check the dependency versions for 
> *carbon-device-mgt
> *and* carbon-device-mgt-plugins *from the main pom in product-iots.
> For the current master branch of product-iots you will need the following
> versions of the other 2 repos.
>
>1. carbon-device-mgt -
>https://github.com/wso2/carbon-device-mgt/tree/v3.1.51
>2. carbon-device-mgt-plugins -
>https://github.com/wso2/carbon-device-mgt-plugins/tree/v4.1.20
>
> With those, I was able to successfully build product-iots.
>
> Hope this helps.
>
> Best Regards,
> Janak
>
> On Sun, Apr 7, 2019 at 9:13 AM Syed Hasan  wrote:
>
>> [INFO]
>> [INFO] --- replacer:1.5.2:replace (replace-for-thrift) @ wso2iot ---
>> [ERROR] File
>> 'C:\wso2\product-iots\modules\distribution\..\p2-profile\iot-core-profile\target\wso2carbon-core-4.4.26\wso2\conf\identity\thrift-authentication.xml'
>> does not exist
>> [INFO] Replacement run on 0 file.
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Janak Amarasena*
>
> Software Engineer
>
> Email: ja...@wso2.com
>
> Mobile: +9464144
>
> Web: https://wso2.com
>
>
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] propertiesMap in Siddhi Query in API manager

2019-04-11 Thread Vanjikumaran Sivajothy
Hi, devs,

What are the properties in propertiesMap of Siddhi Query in API manager?

define stream RequestStream (messageID string, appKey string, appTier
string, subscriptionKey string, apiKey string, apiTier string,
subscriptionTier string, resourceKey string, resourceTier string, userId
string,  apiContext string, apiVersion string, appTenant string, apiTenant
string, appId string, apiName string, *propertiesMap string*);


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


[Dev] [Architecture] [Announce] WSO2 Enterprise Integrator 6.5.0-M5 Released!

2019-04-11 Thread Arunan Sugunakumar
The WSO2 Enterprise Integration team is pleased to announce the 5th
milestone of WSO2 Enterprise Integrator 6.5.0.
Download

You can download,

WSO2 Enterprise Integrator 6.5.0 M5 from here

.

WSO2 Micro Integrator 1.0.0 M3 from here

.
What's new in WSO2 Enterprise Integrator 6.5.0-M5

A list of tasks/bug fixes and improvements shipped with this release can be
found below:
Tasks/bug fixes and improvements

Documentation

Online documentation is available at
https://docs.wso2.com/display/EI6xx/WSO2+Enterprise+Integrator+Documentation
Contribute to WSO2 Enterprise IntegratorMailing Lists

Join our mailing lists and correspond with the developers directly. We also
encourage you to take part in discussions related to the product in the
architecture mailing list. If you have any questions regarding the product
you can use our StackOverflow forum to raise them as well.

Developer List: dev@wso2.org
Architecture List: architect...@wso2.org
User Forum: StackOverflow
Reporting Issues

We encourage you to report issues, improvements, and feature requests
regarding WSO2 Enterprise Integrator through our public WSO2 Enterprise
Integrator GIT Issues 

~ The WSO2 Enterprise Integration Team ~

-- 
*Sugunakumar Arunan*
Software Engineer | WSO2

Email : aru...@wso2.com
Mobile : +94766016272
Web : http://wso2.com

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


Re: [Dev] Removing PKCE column check during OAuth data persistence

2019-04-11 Thread Ruwan Abeykoon
+1

On Thu, Apr 11, 2019 at 3:35 PM Farasath Ahamed  wrote:

>
>
> On Thu, Apr 11, 2019 at 3:33 PM Sathya Bandara  wrote:
>
>> Hi all,
>>
>> Curently in AuthorizationCodeDAOImpl [1] and OAuthAppDAO we have the
>> 'isPkceEnabled' flag to check the availability of PKCE columns during data
>> persistence. This has been added to handle the migration scenarios. The
>> PKCE feature was introduced with IS 5.2.0 and we already have 6 major
>> releases after this version addressing the migration aspects. Therefore we
>> have decided to remove this column check from the code level with 5.8.0 as
>> it becomes redundant.
>>
>> Please share your thoughts and concerns on this.
>>
>
> Big +1
>
>
>>
>> [1]
>> https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/AuthorizationCodeDAOImpl.java#L95
>>
>> Thanks,
>> Sathya
>> --
>> Sathya Bandara
>> Senior Software Engineer
>> Blog: https://medium.com/@technospace
>> WSO2 Inc. http://wso2.com
>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>
>> <+94%2071%20411%205032>
>>
>
>
> --
> Farasath Ahamed
> Senior Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: https://farasath.blogspot.com / https://medium.com/@farasath
> Twitter: @farazath619 
> 
>
>
>
>

-- 

*Ruwan Abeykoon*
*Associate Director/Architect**,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing PKCE column check during OAuth data persistence

2019-04-11 Thread Farasath Ahamed
On Thu, Apr 11, 2019 at 3:33 PM Sathya Bandara  wrote:

> Hi all,
>
> Curently in AuthorizationCodeDAOImpl [1] and OAuthAppDAO we have the
> 'isPkceEnabled' flag to check the availability of PKCE columns during data
> persistence. This has been added to handle the migration scenarios. The
> PKCE feature was introduced with IS 5.2.0 and we already have 6 major
> releases after this version addressing the migration aspects. Therefore we
> have decided to remove this column check from the code level with 5.8.0 as
> it becomes redundant.
>
> Please share your thoughts and concerns on this.
>

Big +1


>
> [1]
> https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/AuthorizationCodeDAOImpl.java#L95
>
> Thanks,
> Sathya
> --
> Sathya Bandara
> Senior Software Engineer
> Blog: https://medium.com/@technospace
> WSO2 Inc. http://wso2.com
> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>
> <+94%2071%20411%205032>
>


-- 
Farasath Ahamed
Senior Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: https://farasath.blogspot.com / https://medium.com/@farasath
Twitter: @farazath619 

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


[Dev] Removing PKCE column check during OAuth data persistence

2019-04-11 Thread Sathya Bandara
Hi all,

Curently in AuthorizationCodeDAOImpl [1] and OAuthAppDAO we have the
'isPkceEnabled' flag to check the availability of PKCE columns during data
persistence. This has been added to handle the migration scenarios. The
PKCE feature was introduced with IS 5.2.0 and we already have 6 major
releases after this version addressing the migration aspects. Therefore we
have decided to remove this column check from the code level with 5.8.0 as
it becomes redundant.

Please share your thoughts and concerns on this.

[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/dao/AuthorizationCodeDAOImpl.java#L95

Thanks,
Sathya
-- 
Sathya Bandara
Senior Software Engineer
Blog: https://medium.com/@technospace
WSO2 Inc. http://wso2.com
Mobile: (+94) 715 360 421 <+94%2071%20411%205032>

<+94%2071%20411%205032>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev