-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/135772 135785 bulk export page to local fs in pdf #8646
base: feat/page-bulk-export
Are you sure you want to change the base?
Feat/135772 135785 bulk export page to local fs in pdf #8646
Conversation
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
reg-suit detected visual differences. Check this report, and review them. 🔴🔴🔴🔴 What do the circles mean?The number of circles represent the number of changed images.🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items How can I change the check status?If reviewers approve this PR, the reg context status will be green automatically. |
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
|
…ort-page-to-local-fs-in-pdf
…to feat/135772-135785-bulk-export-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
…ort-page-to-local-fs-in-pdf
@@ -26,7 +28,8 @@ export class GcsMultipartUploader extends MultipartUploader implements IGcsMulti | |||
constructor(bucket: Bucket, uploadKey: string, maxPartSize: number) { | |||
super(uploadKey, maxPartSize); | |||
|
|||
this.file = bucket.file(this.uploadKey); | |||
const namespace = configManager.getConfig('crowi', 'gcs:uploadNamespace'); | |||
this.file = bucket.file(urljoin(namespace || '', uploadKey)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
アップロード先の namespace の指定が抜けており、ファイル取得時のパスと齟齬があったため修正。
|
||
/** | ||
* Convert markdown string to html, then to PDF | ||
* When PDF conversion is unstable and error occurs, it will retry up to the specified limit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変換リクエストが多いと、puppeteer のエラーが生じる場合があるので、指定された数までは変換のリトライを可能とする。
@@ -119,7 +119,7 @@ ENV appDir ${optDir}/growi | |||
# see: https://github.com/tianon/gosu/blob/1.13/INSTALL.md | |||
RUN set -eux; \ | |||
apt-get update; \ | |||
apt-get install -y gosu; \ | |||
apt-get install -y gosu chromium; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker build したものを動かしてみて、puppeteer が動くことを確認済み
…ort-page-to-local-fs-in-pdf
実装内容
変換結果
以下の実行でいずれもメモリの使用率に大きな変動はなし
task
https://redmine.weseek.co.jp/issues/135785
備考
puppeteer-cluster を pdf 変換処理時にだけ起動しておく実装を進行中
https://redmine.weseek.co.jp/issues/150248