Skip to content
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

PDF 参加表の生成 #2435

Merged
merged 13 commits into from
Nov 17, 2024
Merged

PDF 参加表の生成 #2435

merged 13 commits into from
Nov 17, 2024

Conversation

oshiro3
Copy link
Contributor

@oshiro3 oshiro3 commented Nov 3, 2024

PDF参加表を生成するジョブを作成しました.

基本方針は Public な entry_sheet ページを作成して chromium(ferrum) を利用してレンダリング. その結果を PDF に書き起こすという方向にしました.

Public なページで個人に関わるものが出せるとまずいため Rails の Encrypter で暗号化したクエリパラメータを投げるようにしています.

またヘッダーとフッターを非表示にするために Layout を新たに作成しています.

rake task や Rails Console から GenerateEntrysheetJob.perform_now($ConferenceId, $ProfileId, $SpeakerId) で実行できます.

@gitops-for-cloudnativedays gitops-for-cloudnativedays bot added the reviewapps Build ReviewApp environment automatically if this label is granted label Nov 3, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
Copy link

github-actions bot commented Nov 3, 2024

gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 3, 2024
Copy link
Contributor

@takaishi takaishi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CIが落ちているようです!

@oshiro3
Copy link
Contributor Author

oshiro3 commented Nov 6, 2024

CI修正しました!

@oshiro3 oshiro3 requested a review from takaishi November 6, 2024 13:55
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 6, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 6, 2024
@github-actions github-actions bot removed the reviewapps Build ReviewApp environment automatically if this label is granted label Nov 10, 2024
@@ -0,0 +1,33 @@
class EntrySheetController < ApplicationController
def show
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • UIでスキャンした際に印刷されると思うので、APIとして実装が必要な気がしました (Api::V1::CheckInConferencesController内で呼び出す必要がありそう)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Api::V1::CheckInConferencesController のcheckin 時に呼び出すようにしました。
1点問題があって Speaker 表示をする際には SpeakerId を渡す必要がありますが、Profile の情報からでは難しい気がしています。
Speaker は別のフローでチェックインしてもらう or 別途印刷するなどの運用がいる可能性がありそうでしょうか?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同じemailを持つSpeakerがいたらSpeakerとみなしているので取得可能だと思います

@gitops-for-cloudnativedays gitops-for-cloudnativedays bot added the reviewapps Build ReviewApp environment automatically if this label is granted label Nov 15, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 15, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 15, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 15, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 15, 2024
@oshiro3
Copy link
Contributor Author

oshiro3 commented Nov 15, 2024

申し訳ないのですが、ちょっと土日が対応難しく最速で月曜日中の追加対応になりそうです。。。
リハなどで急ぎで必要であれば P/R 引き継いでいただけると助かります(月~火曜で大丈夫であれば最優先で対応しますが。。。)

gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Nov 17, 2024
Copy link

Simplecov Report

Covered Threshold
62.87% 60%

@takaishi takaishi merged commit 6edcc81 into main Nov 17, 2024
6 checks passed
@takaishi takaishi deleted the pdf_entry branch November 17, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewapps Build ReviewApp environment automatically if this label is granted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants