kubo/test/sharness/lib
Lucas Molas 25cc85fa93
feat(gateway): Gateway.FastDirIndexThreshold (#8853)
* fix(core/gateway): option to limit directory size listing

* feat(gw): HTMLDirListingLimit

This is alternative take on the way we limit the HTML listing output.
Instead of a hard cut-off, we list up to HTMLDirListingLimit.
When a directory has more items than HTMLDirListingLimit we show
additional header and footer informing user that only $HTMLDirListingLimit
items are listed. This is a better UX.

* fix: 0 disables Gateway.HTMLDirListingLimit

* refactor: Gateway.FastDirIndexThreshold

see explainer in docs/config.md

* refactor: prealoc slices

* docs: Gateway.FastDirIndexThreshold

* refactor: core/corehttp/gateway_handler.go

https://github.com/ipfs/go-ipfs/pull/8853#discussion_r851437088

* docs: apply suggestions from code review

Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
2022-04-28 19:36:57 +02:00
..
0001-Generate-partial-JUnit-reports.patch ci: Collect test times for sharness 2018-04-21 22:40:03 +02:00
gen-junit-report.sh ci: run go vet, disable docker on jenkins 2018-04-10 18:31:25 +02:00
install-sharness.sh ci: Collect test times for sharness 2018-04-21 22:40:03 +02:00
iptb-lib.sh feat: add noise support 2020-05-25 23:46:48 -07:00
test-aggregate-results.sh sharness: 2 space indent 2017-10-04 13:39:14 +02:00
test-lib-hashes.sh test: fix sharness tests for welcome docs changes 2020-04-20 11:23:30 -07:00
test-lib.sh feat(gateway): Gateway.FastDirIndexThreshold (#8853) 2022-04-28 19:36:57 +02:00