Task #101
closedTask #52: Coding
Coding-PlaceNewEdit
Added by dang dao 5 months ago. Updated 3 months ago.
100%
Files
Updated by Anonymous 5 months ago
- % Done changed from 10 to 100
- Assignee changed from Anonymous to Nghia Nguyen
Hi Nghĩa tui có update phần facility new/edit ở PR
https://github.com/clmt-vn/facility-owner/pull/12
Có gì ông check giúp tui với hen
Updated by Nghia Nguyen 5 months ago
- File Screenshot 2025-08-01 at 11.00.07 PM.png added

chọn Facility rồi mà vẫn báo lỗi nè @duy
Updated by Nghia Nguyen 5 months ago
- File Screenshot 2025-08-01 at 11.01.08 PM.png added
vào trang edit đang bị lỗi

Updated by Nghia Nguyen 5 months ago
tui chưa test đc khả năng thêm place. Nhưng đọc code trong BasePlaceSaveRequest thì ko biết Duy có handle việc upload file chưa á
Updated by Nghia Nguyen 5 months ago
- Assignee changed from Nghia Nguyen to Anonymous
Updated by Anonymous 4 months ago
- Assignee changed from Anonymous to Nghia Nguyen
Hi Nghĩa chỗ này tui vừa update lại, ông check lại giúp tui nhe ông
https://github.com/clmt-vn/facility-owner/pull/12
Updated by Nghia Nguyen 4 months ago
- File deleted (
Screenshot 2025-08-01 at 11.00.07 PM.png)
Updated by Nghia Nguyen 4 months ago
- File deleted (
Screenshot 2025-08-01 at 11.01.08 PM.png)
Updated by Nghia Nguyen 4 months ago
- File Screenshot 2025-08-06 at 10.57.11 PM.png Screenshot 2025-08-06 at 10.57.11 PM.png added
- File Screenshot 2025-08-06 at 10.59.06 PM.png Screenshot 2025-08-06 at 10.59.06 PM.png added
- File Screenshot 2025-08-06 at 11.00.42 PM.png Screenshot 2025-08-06 at 11.00.42 PM.png added
- File Screenshot 2025-08-06 at 11.56.30 PM.png Screenshot 2025-08-06 at 11.56.30 PM.png added
- File Screenshot 2025-08-07 at 12.00.46 AM.png Screenshot 2025-08-07 at 12.00.46 AM.png added
- Assignee changed from Nghia Nguyen to Anonymous
hi @duy, tui xem qua thì có mấy comment sau:
UI¶
- Update UI field 実施場所ID khi bị disable.
Hiện tại trông khó phân biệt disabled field

Theo trong tài liệu, field 実施場所ID khi disable có màu xám.
- Update field 施設: Dùng selectbox dài.
Facility name có 64 ký tự. Selectbox ngắn hiện tại ko thể hiển thị hết.
Dùng selectbox dài giống trong tài liệu:
- 実施場所広さ ko phải require field → Update UI
- Edit place ko thấy hiển thị file ảnh đã upload.
Vd: Tạo place mới, upload 実施場所1 → Lưu → Edit place vừa được tạo → thấy tên file đã upload hiển thị ở 実施場所1
- Lỗi khi chọn status là 無効
- Lỗi khi truy cập trang copy place
Logic¶
-
Place name không được trùng trong cùng một Facility.
-
File lưu chưa đúng thư mục.
File được cấu trúc thư mục:
{PLACE_STOREFILE_PATH}/{place_dir}/{place_id}/- picture/ - Ảnh
- document/ - Tài liệu
Ví dụ: Nếu place_id = 1234 thì place_dir = 2000
PLACE_STOREFILE_PATH = /owner/place
tên ảnh là abc123
Đường dẫn đầy đủ của ảnh sẽ là: /owner/place/2000/1234/picture/abc123
-
created_user là user đang được xác thực để tạo place. (đã comment trong PR)
-
Ko đc hardcode is_test = 1 (đã comment trong PR)
-
Ko cần get all facilities sau khi tạo place thành công (đã comment trong PR)
Updated by Nghia Nguyen 4 months ago
- File deleted (
Screenshot 2025-08-01 at 11.16.49 PM.png)
Updated by Nghia Nguyen 4 months ago
- Danh sách facilities lấy chưa đúng. Chỉ lấy danh sách facilities của organization của user đang đăng nhập.
Updated by Anonymous 4 months ago
- Assignee changed from Anonymous to Nghia Nguyen
Có gì ông check giúp tui nh Nghĩa
https://github.com/clmt-vn/facility-owner/pull/12
Updated by Nghia Nguyen 4 months ago
- File Screenshot 2025-08-07 at 2.46.10 PM.png Screenshot 2025-08-07 at 2.46.10 PM.png added
- File Screenshot 2025-08-07 at 2.48.15 PM.png Screenshot 2025-08-07 at 2.48.15 PM.png added
- File Screenshot 2025-08-07 at 2.59.06 PM.png Screenshot 2025-08-07 at 2.59.06 PM.png added
- Assignee changed from Nghia Nguyen to Anonymous
hi @duy ơi,
-
Trên UI
実施場所広さ vẫn đang là required fieldnè. Nó là optional nha, bỏ 必須 bên phải field.

-
Error message lúc nhập place trùng chưa đúng. Tui thấy server có trả về error message là "同じ施設内で「test」という実施場所名は既に使用されています。" rồi nhưng status code đang là 500 nên nó hiển thị システムエラーが発生しました。

Duy sửa cái status code là 409 nha. Status code 409 thì sẽ hiển thị message từ server trả về
-
Viết hàm lấy danh sách facilities (theo organization) để tái sử dụng ở nhiều nơinha (đã comment trong PR) -
Lỗi khi chọn status là 無効→ Lỗi này vẫn bị nha Duy. Khi create hoặc edit place, chọn status (状態) là invalid (無効) thì nó báo lỗi Please select a status(状態を選択してください。). Duy xem lại chỗ này nha -
Lỗi khi save.
- Chọn edit place đã tạo.
- Ko chỉnh sửa gì → Nhấn lưu (更新)
- Hiển thị lỗi như bên dưới, mặc dù nó ko phải là required field
-
Edit place ko thấy hiển thị file ảnh đã upload.→ lỗi này vẫn còn.
Updated by Anonymous 4 months ago
Tui update lại rồi ông check giúp tui lại nh
https://github.com/clmt-vn/facility-owner/pull/12
Updated by Nghia Nguyen 4 months ago
- File Screen Recording 2025-08-08 at 10.51.39 PM.mov added
Updated by Nghia Nguyen 4 months ago
- File deleted (
Screen Recording 2025-08-08 at 10.51.39 PM.mov)
Updated by Nghia Nguyen 4 months ago
- File Screen Recording 2025-08-08 at 10.53.14 PM.mov Screen Recording 2025-08-08 at 10.53.14 PM.mov added
- Assignee changed from Nghia Nguyen to Anonymous
hi @duy
ông coi lại lỗi này nha, tui thấy vẫn còn nè.
https://www.loom.com/share/ce11b19a1eba4d2e8d0c747d4badd9ec?sid=9e0e2a77-b401-47f9-8715-d1283b71ff2b
cái nào ko tái hiện được thì nhắn tui chứ đừng bỏ qua nha.
Updated by Anonymous 4 months ago
- Assignee changed from Anonymous to Nghia Nguyen
Hi @Nghia Nguyen
Check lại giúp tui há Nghĩa ơi, vấn đề nằm ở chỗ check filetype, hình như do swift nhánh nhiều quá tui bị mất code á
Updated by Nghia Nguyen 4 months ago
- Assignee changed from Nghia Nguyen to Anonymous
@duy
Lỗi ko xóa file đc Duy ơi
https://www.loom.com/share/565a7018a27e4026a1368339e74a14cf?sid=679cd370-88ea-481c-95a9-3c315265cf74
Updated by Nghia Nguyen 4 months ago
ông fix xong ông test lại full flow giúp tui nha @duy
Updated by Nghia Nguyen 4 months ago
@duy tui merge nhánh place detail vô r. Bây giờ ông pull nhánh develop về nhánh hiện tại để có code mới nhất rồi fix tiếp nha
Updated by Nghia Nguyen 4 months ago
@duy
page place list ko thấy hiển thị facility name ở cột 施設ID/施設名
Updated by Nghia Nguyen 4 months ago
@duy xem lại bên Order Detail giúp t nha

Updated by Anonymous 4 months ago
Hi @Nghia Nguyen https://github.com/clmt-vn/facility-owner/pull/12 tui có fix lại các issue bên detail với new/edit check lại giúp tui nhen ông
Updated by Nghia Nguyen 4 months ago
- Status changed from In Progress to Resolved
Updated by Nghia Nguyen 4 months ago
- Assignee changed from Nghia Nguyen to dang dao
Đã deploy server dev
