stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dinithi De Silva <dinit...@wso2.com>
Subject Re: [Question] Is the tenant partial search working properly?
Date Sat, 21 Mar 2015 06:29:16 GMT
Hi Imesh/Chamila,

Thank you for the explanation. So shall we use the same command
(list-tenants) to do this work?

Eg: For the command "list-tenants he*" we need to display all the domains
which contains "he" in its domain.

Thanks.

On Sat, Mar 21, 2015 at 9:27 AM, Imesh Gunaratne <imesh@apache.org> wrote:

> Hi Dinithi,
>
> I see couple of problems here:
>
> On Fri, Mar 20, 2015 at 5:33 PM, Dinithi De Silva <dinithis@wso2.com>
> wrote:
>>
>> *Result with search query "he"*
>>
>> stratos> list-tenants-by-partial-domain —partialDomain *he*
>> Tenants found:
>> +———————+—————+————+————————-+———————————————+
>> | tenantDomain | tenantID | active | email | createdDate |
>> +———————+—————+————+————————-+———————————————+
>> | apache.org | 2 | true | user@apache.org | Fri Mar 20 16:48:47 IST 2015
>> |
>> +———————+—————+————+————————-+———————————————+
>>
>> First of all I'm -1 to list-tenants-by-partial-domain command. An end
> user might think there is an entity called "Partial Domain". As I
> understood this is a tenant query which uses domain name and we could use
> wildcards in that. If so we should have used the same command
> "list-tenants" to do this.
>
> More importantly this pattern should be consistent across all CLI
> commands. IMO we have this type of a command for querying cartridges.
>
>> *Result with search query "he?com"*
>>
>> In the last query (with the "?" ), although we don't have any domains
>> with "com" it displays a result for that. I got this problem only with the
>> "?" character. Is there a restriction that we cannot use any special
>> characters in the search query?
>>
> I do not think "?" is the proper wildcard character. As Chamila has
> mentioned better to use a more generic, widely used one like "*".
>
> Thanks
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
*Dinithi De Silva*
Associate Software Engineer, WSO2 Inc.
m:+94716667655 | e:dinithis@wso2.com | w: www.wso2.com
| a: #20, Palm Grove, Colombo 03

Mime
View raw message