Skip to content

fix(schedule): friendly empty-day state instead of MoMo error - #24

Merged
hoangsvit merged 2 commits into
mainfrom
fix/cinema-session-empty-day-state
Nov 11, 2026
Merged

hoangsvit merged 2 commits into
mainfrom
fix/cinema-session-empty-day-state

Conversation

@hoangsvit

Copy link
Copy Markdown
Member

Nguyên nhân

MoMo /v2/cinema/session có thể trả Result=false và không kèm MessageStatus cho ngày tương lai chưa có lịch. Client hiện ném lỗi chung rồi UI hiển thị nguyên văn MoMo API returned an error cùng nút Thử lại.

Sửa

  • Với riêng endpoint session, nếu Result=false, không có thông báo lỗi và không có dữ liệu buổi chiếu hợp lệ, chuẩn hóa thành { Films: [] } để UI dùng nhánh chưa có suất chiếu ngày đã chọn vốn đã tồn tại.
  • Nếu có lỗi thực sự (HTTP, proxy, transport hoặc upstream cung cấp mã lỗi rõ ràng), không đánh đồng với không có suất chiếu. UI dùng thông báo ngắn, thân thiện và cho phép thử lại, không tiết lộ chuỗi lỗi kỹ thuật.
  • Giữ nguyên cache suất chiếu, chọn ngày, rạp và luồng xem ghế. Không sửa SEO.
  • Thêm kiểm thử chống tái diễn vào smoke-test.

QA

  • Kiểm tra luồng momoPost → renderSession → trạng thái trống/lỗi.
  • CI, Pages Staging/Publish.
  • Kiểm thử thực tế một ngày có và một ngày chưa có suất chiếu.

Không auto-merge.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 712eb903-bf6b-43d7-ba13-c8338f4c148e
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Xem trước PR #24

Mở bản preview đã triển khai

GitHub Pages đã deploy thành công bản preview cho commit c025553. Preview là bản công khai và được xóa khi PR đóng.

@hoangsvit
hoangsvit merged commit 844bbcf into main Nov 11, 2026
3 checks passed
@hoangsvit
hoangsvit deleted the fix/cinema-session-empty-day-state branch November 11, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant