browsertrix/frontend
Tessa Walsh e667fe2e97
Add max crawl size option to backend and frontend (#1045)
Backend:
- add 'maxCrawlSize' to models and crawljob spec
- add 'MAX_CRAWL_SIZE' to configmap
- add maxCrawlSize to new crawlconfig + update APIs
- operator: gracefully stop crawl if current size (from stats) exceeds maxCrawlSize
- tests: add max crawl size tests

Frontend:
- Add Max Crawl Size text box Limits tab
- Users enter max crawl size in GB, convert to bytes
- Add BYTES_PER_GB as constant for converting to bytes
- docs: Crawl Size Limit to user guide workflow setup section

Operator Refactor:
- use 'status.stopping' instead of 'crawl.stopping' to indicate crawl is being stopped, as changing later has no effect in operator
- add is_crawl_stopping() to return if crawl is being stopped, based on crawl.stopping or size or time limit being reached
- crawlerjob status: store byte size under 'size', human readable size under 'sizeHuman' for clarity
- size stat always exists so remove unneeded conditional (defaults to 0)
- store raw byte size in 'size', human readable size in 'sizeHuman'

Charts:
- subchart: update crawlerjob crd in btrix-crds to show status.stopping instead of spec.stopping
- subchart: show 'sizeHuman' property instead of 'size'
- bump subchart version to 0.1.1

---------
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
2023-08-26 22:00:37 -07:00
..
.husky
.vscode
assets
config
scripts
src Add max crawl size option to backend and frontend (#1045) 2023-08-26 22:00:37 -07:00
tests
xliff terminology tweaks in frontend: (part of #922) (#1062) 2023-08-09 15:38:58 -07:00
.dockerignore
.editorconfig
.gitignore
.prettierignore
00-browsertrix-nginx-init.sh fix(build): use /usr/bin/env bash instead of /bin/bash (#1020) 2023-07-28 21:50:04 -07:00
Dockerfile Optimize Frontend Image Build on CI (#1057) 2023-08-09 12:06:20 -07:00
frontend.conf.template Use Shared Services for Crawling, Redis, Profile Browsers (#1088) 2023-08-24 20:08:53 -07:00
index.d.ts Frontend collections beta UI (#886) 2023-06-06 17:52:01 -07:00
lit-localize.json
minio.conf
package.json bump version to 1.7.0-beta.0 2023-08-23 12:03:45 -07:00
playwright.config.ts
postcss.config.js
README.md Update frontend local dev guide (#1073) 2023-08-15 12:03:39 -07:00
sample.env.local
tailwind.config.js
tsconfig.json
web-test-runner.config.mjs
webpack.config.js Webpack config improvements (#1063) 2023-08-11 13:16:24 -07:00
webpack.dev.js Webpack config improvements (#1063) 2023-08-11 13:16:24 -07:00
webpack.prod.js
yarn.lock Webpack config improvements (#1063) 2023-08-11 13:16:24 -07:00