Project

General

Profile

Actions

Task #51

closed

Task #52: Coding

Coding-Facilty List

Added by dang dao 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
06/26/2025
Due date:
07/16/2025
% Done:

100%

Estimated time:
24:00 h

Description

  • Change UI
Actions #1

Updated by dang dao 6 months ago

  • Parent task set to #52
Actions #3

Updated by Anonymous 6 months ago

  • Due date set to 07/03/2025
  • Status changed from New to In Progress
Actions #4

Updated by Anonymous 6 months ago

  • Estimated time set to 24:00 h
Actions #5

Updated by dang dao 6 months ago

  • Due date changed from 07/03/2025 to 07/04/2025
Actions #6

Updated by Anonymous 6 months ago

  • % Done changed from 0 to 50
Actions #7

Updated by Anonymous 5 months ago

  • % Done changed from 50 to 100
Actions #8

Updated by Anonymous 5 months ago

Cho e note pull request link ở đây ạ

https://github.com/clmt-vn/facility-owner/pull/1

Actions #9

Updated by Anonymous 5 months ago

  • Assignee changed from Anonymous to Nghia Nguyen
Actions #10

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to Anonymous

hi @duy, mình có review như sau:

Feature:

  1. 施設ID có max length là 20 nhưng Duy đang để max value là 20 nên nhập số từ 21 trở đi đang bị lỗi.
  2. Field 店舗担当者 ko hoạt động, ko query được.
  3. Mình chưa thấy xử lí case: Nếu facility có tồn tại ít nhất 1 place thì disable nút xóa.

Coding:

  • Nếu đoạn code nào mình ko dùng nữa thì nên remove hẳn thay vì comment (vd: line 122 resources/views/facility/list.blade.php)
  • Dropdown 店舗担当者 - ownerList → nên đặt tên là ownerAccountList sẽ rõ nghĩa hơn.
  • Remove console.error, ko thông báo error ra browser.
  • 店舗担当者 là dạng master data, không thay đổi thường xuyên và chỉ dùng để hiển thị dropdown. Nên fetch từ server-side khi khởi tạo page, ko cần gọi API riêng ở client. Các page khác cũng đang làm theo cách này để đồng bộ.
Actions #11

Updated by dang dao 5 months ago

  • Due date changed from 07/04/2025 to 07/09/2025
Actions #12

Updated by Anonymous 5 months ago

  • Assignee changed from Anonymous to Nghia Nguyen
Actions #13

Updated by Anonymous 5 months ago

Hi Nghĩa
mình vừa update phần fix comment kèm theo đó là follow theo database mới
Nghĩa review lại giúp mình ở pull request này giúp mình với nhen
https://github.com/clmt-vn/facility-owner/pull/1

Actions #14

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to Anonymous

@duy,

Issue 1 mình thấy chưa được fix. Trong code vẫn để max value là 20 → đẫn đến nhập ID >20 sẽ bị lỗi

Ngoài ra, đang phát sinh lỗi mới khi vừa mới truy page Facility List: Column not found: 1054 Unknown column 'f.place' in 'field list' → Lỗi này mình đoán là đang query field place từ table facilities nhưng thực tế table này ko có field place nên dẫn đến bị lỗi.

@duy kiểm tra lại, test lại r mình review lại nha.

Actions #15

Updated by Nghia Nguyen 5 months ago

à.. feature/51 merge vô nhánh develop chứ ko phải nhánh main nha @duy

Actions #16

Updated by Anonymous 5 months ago

Mình vừa update với test kỹ lại check lại giúp mình nha Nghĩa ơi

Actions #17

Updated by Anonymous 5 months ago

  • Assignee changed from Anonymous to Nghia Nguyen
Actions #18

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to Anonymous

@duy

  1. 施設ID có max length là 20 nhưng Duy đang để max value là 20. Chỗ này fix vẫn chưa đúng á, max length là 20 nhưng Duy fix là set max value là 21, chú ý field đó nó đang là numberic nên ko thể set max như v, nó đang hiểu là max value thay vì max length (chỉ có hiệu lực với string)
  2. Field 店舗担当者 ko hoạt động, ko query được: Vẫn chưa query đúng á Duy. Chọn 店舗担当者 bất kì rồi bấm search nhưng List trả về ko đúng á.
  3. Tui có comment trong source. Nếu query cả danh sách places chỉ để check hasPlace thì chưa tối ưu. Thay vào đó có thêm thêm query để đánh dấu facility has place ( ví dụ: SELECT COUNT(*) FROM places p WHERE place.facility_id = facility.id...)

Còn lại OK r nha

Actions #19

Updated by Anonymous 5 months ago

  • Assignee changed from Anonymous to Nghia Nguyen
Actions #20

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to Anonymous

Update lại xíu bên chỗ query nữa là đc nha

Actions #21

Updated by dang dao 5 months ago

  • Due date changed from 07/09/2025 to 07/15/2025
Actions #22

Updated by dang dao 5 months ago

  • Due date changed from 07/15/2025 to 07/16/2025
  • Assignee changed from Anonymous to Nghia Nguyen

review lại cho Duy cho xong đi hén

Actions #23

Updated by Nghia Nguyen 5 months ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Nghia Nguyen to Anonymous

đã merge

Actions #24

Updated by dang dao 5 months ago

  • Assignee changed from Anonymous to Nghia Nguyen

@Nghia Nguyen deploy lên môi trường dev xong assign lại cho a hén

Actions #25

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to dang dao
Actions #26

Updated by dang dao 5 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF