open-build-service icon indicating copy to clipboard operation
open-build-service copied to clipboard

Add withfilelist parameter to the binary query

Open hellcp-work opened this issue 2 years ago • 9 comments

This should avoid unnecessarily querying filelist if not required by the user.

To test this, compare the output of these two endpoints on a built package file /build/$project/$repository/$arch/$package/$filename?view=fileinfo_ext /build/$project/$repository/$arch/$package/$filename?view=fileinfo_ext&withfilelist

hellcp-work avatar Nov 25 '22 13:11 hellcp-work

The code is touching the backend. Could any of the developers of the @openSUSE/obs-backend developers leave a review, please? Thanks.

eduardoj avatar Nov 28 '22 15:11 eduardoj

except that you missed the [backend] prefix it should be fine.

But are you aware that there are rpms with more then 100k files inside? the current web interface would not be able to handle it nicely IMHO. Try kernel-source for example.

adrianschroeter avatar Nov 29 '22 16:11 adrianschroeter

there are rpms with more then 100k files inside? the current web interface would not be able to handle it

We could use jQuery datatables for this. So the page loads, the data is fetched through an AJAX query. The table has pagination, search and sorting (maybe more, I don't remember now on top of my head).

dmarcoux avatar Dec 01 '22 09:12 dmarcoux

Tables aren't that great at displaying trees tbh, I would love this to be a widget that can display the information in a structured way instead

hellcp-work avatar Dec 01 '22 09:12 hellcp-work

Tables aren't that great at displaying trees tbh, I would love this to be a widget that can display the information in a structured way instead

We can start with the tables and improve later...

danidoni avatar Dec 01 '22 09:12 danidoni

@hellcp-work can we review this PR using the frontend?

danidoni avatar Feb 17 '23 09:02 danidoni

You should be able to use withfilelist parameter in the api, frontend doesn't currently have any way to use it though

hellcp-work avatar Feb 17 '23 09:02 hellcp-work

You should be able to use withfilelist parameter in the api, frontend doesn't currently have any way to use it though

Okay, can you write a small guide to help reviewers test this PR?

danidoni avatar Feb 17 '23 09:02 danidoni

Okay, can you write a small guide to help reviewers test this PR?

I wrote which endpoint this affects in the description now, which should make this easier to test

hellcp-work avatar Oct 17 '23 13:10 hellcp-work

Could I please get a review from somebody from @openSUSE/obs-backend ?

hellcp-work avatar Apr 15 '24 12:04 hellcp-work

I already wrote that it is fine from backend side, but did you also test with packages like kernel-source meanwhile?

adrianschroeter avatar Apr 16 '24 06:04 adrianschroeter