Skip to content

[Analytics] - Refund status serialization issue for ckh analytics #5188

@ivor11

Description

@ivor11
pub enum RefundStatus {
    Failure,
    ManualReview,
    #[default]
    Pending,
    Success,
    TransactionFailure,
}

RefundStatus enum is serialized to snake_case but when the same event is pushed to kafka it is retained in camelCase.
Due to this refund_status in clickhouse refunds table is in camelCase and ckh queries for analytics return 0 when refund_status = 'success' filter is applied

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions