-
Notifications
You must be signed in to change notification settings - Fork 7
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
PDF 参加表の生成 #2435
Conversation
commit: cloudnativedaysjp/dreamkast@a1de57e Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@4ee4761 Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@8ba080d Co-authored-by: GitHub Action <[email protected]>
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.
CIが落ちているようです!
CI修正しました! |
commit: cloudnativedaysjp/dreamkast@b3e531b Co-authored-by: GitHub Action <[email protected]>
@@ -0,0 +1,33 @@ | |||
class EntrySheetController < ApplicationController | |||
def show |
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.
- UIでスキャンした際に印刷されると思うので、APIとして実装が必要な気がしました (Api::V1::CheckInConferencesController内で呼び出す必要がありそう)
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.
Api::V1::CheckInConferencesController のcheckin 時に呼び出すようにしました。
1点問題があって Speaker 表示をする際には SpeakerId を渡す必要がありますが、Profile の情報からでは難しい気がしています。
Speaker は別のフローでチェックインしてもらう or 別途印刷するなどの運用がいる可能性がありそうでしょうか?
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.
同じemailを持つSpeakerがいたらSpeakerとみなしているので取得可能だと思います
commit: cloudnativedaysjp/dreamkast@3c2e372 Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@be6daef Co-authored-by: GitHub Action <[email protected]>
申し訳ないのですが、ちょっと土日が対応難しく最速で月曜日中の追加対応になりそうです。。。 |
commit: cloudnativedaysjp/dreamkast@67cc9c7 Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@e273571 Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@6a465f5 Co-authored-by: GitHub Action <[email protected]>
commit: cloudnativedaysjp/dreamkast@50e4ec5 Co-authored-by: GitHub Action <[email protected]>
Simplecov Report
|
PDF参加表を生成するジョブを作成しました.
基本方針は Public な entry_sheet ページを作成して chromium(ferrum) を利用してレンダリング. その結果を PDF に書き起こすという方向にしました.
Public なページで個人に関わるものが出せるとまずいため Rails の Encrypter で暗号化したクエリパラメータを投げるようにしています.
またヘッダーとフッターを非表示にするために Layout を新たに作成しています.
rake task や Rails Console から
GenerateEntrysheetJob.perform_now($ConferenceId, $ProfileId, $SpeakerId)
で実行できます.