[pkg-discuss] [review] fixes for bugs 7137051, 7137059

1 view
Skip to first unread message

Shawn Walker

unread,
Mar 2, 2012, 9:06:53 PM3/2/12
to pkg-d...@opensolaris.org
Greetings,

The following webrev contains fixes for the following issues:

7137051 some packages not shown on Catalogs BUI page when 'entire' is
present
7137059 bui catalog page should offer an 'all' release and branch
option

webrev:
https://cr.opensolaris.org/action/browse/pkg/swalker/pkg-bui/webrev/

-Shawn
_______________________________________________
pkg-discuss mailing list
pkg-d...@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Shawn Walker

unread,
Mar 8, 2012, 12:40:34 PM3/8/12
to pkg-d...@opensolaris.org
On 03/02/12 18:06, Shawn Walker wrote:
> Greetings,
>
> The following webrev contains fixes for the following issues:
>
> 7137051 some packages not shown on Catalogs BUI page when 'entire' is
> present
> 7137059 bui catalog page should offer an 'all' release and branch
> option
>
> webrev:
> https://cr.opensolaris.org/action/browse/pkg/swalker/pkg-bui/webrev/

Anyone?

Tim Foster

unread,
Mar 8, 2012, 3:53:27 PM3/8/12
to Shawn Walker, pkg-d...@opensolaris.org
On 03/ 9/12 06:40 AM, Shawn Walker wrote:
> On 03/02/12 18:06, Shawn Walker wrote:
>> https://cr.opensolaris.org/action/browse/pkg/swalker/pkg-bui/webrev/

src/modules/server/api.py:

gen_allowed_packages(..)

This takes a single fmri (an incorporation) following its dependencies.
Would the API be more useful if it allowed a list of fmris instead,
which would mean all packages wouldn't have to be covered by a single
incorporation package? (so rather than passing it "entire", you could
pass ["osnet-incorporation", "ips-incorporation", etc.])

line 115, typo "incorporated"


src/web/en/base.shtml et al.

I know it's not this bug, but "CLIENT_API_VERSION" seems weird (yes,
it's a client of the server API, but SERVER_API_VERSION would have been
nicer imho)


General:

It'd be nice to have server-api unit tests, though I'm not sure how
feasible that is when plugging into cherrypy.

Otherwise, looks good I think.

cheers,
tim

Shawn Walker

unread,
Mar 29, 2012, 5:24:22 PM3/29/12
to Tim Foster, pkg-d...@opensolaris.org
On 03/08/12 12:53, Tim Foster wrote:
> On 03/ 9/12 06:40 AM, Shawn Walker wrote:
>> On 03/02/12 18:06, Shawn Walker wrote:
>>> https://cr.opensolaris.org/action/browse/pkg/swalker/pkg-bui/webrev/
>
> src/modules/server/api.py:
>
> gen_allowed_packages(..)
>
> This takes a single fmri (an incorporation) following its dependencies.
> Would the API be more useful if it allowed a list of fmris instead,
> which would mean all packages wouldn't have to be covered by a single
> incorporation package? (so rather than passing it "entire", you could
> pass ["osnet-incorporation", "ips-incorporation", etc.])

I purposefully avoided that since you get in to some wacky cases if you
passed ["entire", "osnet-incorporation"]. But I suppose it's up to the
caller to not do silly things.

...


> General:
>
> It'd be nice to have server-api unit tests, though I'm not sure how
> feasible that is when plugging into cherrypy.

Yeah, that's the exact problem. The BUI currently has to be completely
hand-tested. I've never figured out a good way to handle that; we have
some RFEs open for additional testing.

-Shawn

Reply all
Reply to author
Forward
0 new messages