Configuration object

Gervase Markham gerv at mozilla.org
Fri Nov 13 10:03:19 UTC 2009


On 12/11/09 18:50, Max Kanat-Alexander wrote:
> 	Hmm. Yeah, that's quite a bit. Is it still very large with gzip or deflate?

129k -> 18k with gzip. So no. I guess that could be a solution. Does
Apache magically gzip stuff as a transport-encoding or do you have to
tell it to in some way?

> 	Some people might want to only request specific products, which
> config.cgi already supports. That helps a bit.

I could certainly add that.

>> 3) Can you think of any more params we should obviously expose?
> 
> 	utf8, and the data returned by Bugzilla.time from the WebService. Maybe
> others, would have to go through the list and think about it.

Rather than exposing the utf8 parameter, I would prefer that all
interactions with the API were in utf8, and if Bugzilla was not using
utf8, the API proxy did conversions.

In fact, I would rather just make utf8 being on a pre-requisite for
using the proxy with a particular Bugzilla ;-) How unreasonable would
that be? Are there still significant sites which haven't converted?

>> 4) Should we index the "group" hash by "id" or "name"? Both are unique.
> 
> 	Depends on how the rest of the API uses them. If you return ids
> elsewhere, then ids should be the key, and should generally be used
> everywhere. If you return names, then names should be the key.

I'm returning both, as an object.
https://wiki.mozilla.org/Bugzilla:REST_API:Objects#Group

>> 5) Are there any plans to make request_group and grant_group multi-valued?
> 
> 	No, I don't think so, because there's group inheritance.

OK. I'll stop worrying about that, then.

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list