report ファイルアップロード後のウェブフックに recording_metadata を追加する #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
変更履歴
recording_metadata
を追加するrecording_metadata
またはmetadata
の内容をウェブフックのrecording_metadata
に含めて送信するrecording_metadata
の値を使用するmetadata
の値を使用するrecording_metadata
に設定するrecording_metadata
またはmetadata
のキーが存在しない場合にはウェブフックにもrecording_metadata
を含めないThis pull request includes several updates to enhance the handling of recording metadata and improve the webhook functionality. The most important changes include adding new fields to the
RecordingReport
andWebhookReportUploaded
structures, updating the webhook logic to handle different types of recordings, and making necessary imports for JSON handling.Enhancements to recording metadata handling:
uploader.go
: AddedSessionID
,Metadata
, andRecordingMetadata
fields to theRecordingReport
structure to support different types of recording metadata.uploader.go
: Updated thehandleReport
function to differentiate between session recordings and legacy recordings based on theSessionID
field and set theRecordingMetadata
accordingly.Webhook improvements:
webhook.go
: AddedRecordingMetadata
field to theWebhookReportUploaded
structure to include recording metadata in the webhook payload.Additional updates:
webhook.go
: Added theencoding/json
import to handle JSON operations required for the new fields.Documentation updates:
CHANGES.md
: Documented the addition ofrecording_metadata
to the webhook after file upload, including details on handling session and legacy recordings.