Configuration object

Max Kanat-Alexander mkanat at bugzilla.org
Fri Nov 13 20:39:23 UTC 2009


On 11/13/2009 02:03 AM, Gervase Markham wrote:
> 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?

	I believe you have to tell it to, although I'm not certain.

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

	Um, you can't do that, because unless utf8 is on, you have no idea what
the encoding you're receiving is.

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

	That would be entirely reasonable. There are no major sites that I know
of that haven't converted, unless they're running a very old Bugzilla
version.

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

	Okay. If you return both everywhere, then I'd say that the name is a
better key, as that's what clients will know and have, yes?

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list