Project

General

Profile

Actions

Task #35

closed

Task #9: Create Basic Design for Change request

BD-Import Export Facility

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

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

90%

Estimated time:


Files

FacilityCSVDocumentation.md (28.1 KB) FacilityCSVDocumentation.md Nghia Nguyen, 07/07/2025 10:54 AM
Actions #1

Updated by dang dao 6 months ago

@Nghia Nguyen
với cách viết hiện tại thì dev không biết được cần phải sửa chỗ nào, chỗ nào ko cần làm gì hết.
như a bàn với e , e update lại tài liệu thể hiện rõ chỗ nào cần phải sửa hén

Actions #2

Updated by Nghia Nguyen 6 months ago

  • Status changed from New to In Progress
  • Assignee changed from Nghia Nguyen to dang dao
  • % Done changed from 0 to 90
Actions #3

Updated by Nghia Nguyen 6 months ago

dang dao wrote in #note-1:

@Nghia Nguyen
với cách viết hiện tại thì dev không biết được cần phải sửa chỗ nào, chỗ nào ko cần làm gì hết.
như a bàn với e , e update lại tài liệu thể hiện rõ chỗ nào cần phải sửa hén

Nghia Nguyen wrote in #note-2:

https://docs.google.com/spreadsheets/d/1LTE6RJfhPGA58T7bR9TgW7gZ4kw9K46nw1YuWMYlzi4/edit?gid=1441650050#gid=1441650050

Những field nào cần giữ lại trong đợt update này e sẽ đánh dấu "x" cho AI đọc hiểu luôn

Actions #5

Updated by dang dao 6 months ago

  • Due date changed from 06/30/2025 to 07/04/2025
  • Assignee changed from dang dao to Nghia Nguyen

@Nghia Nguyen đợt này sẵn làm design, làm cho cụ thể luôn hén
e mô tả thêm giúp a flow của import/export
ví dụ như

  • check validation file (format phải là file csv ? , utf8 ?)
    -> lỗi sẽ xuất lỗi như thế nào ?
  • check validation từng record (required, format, maxlength ... )
    -> lỗi sẽ xuất lỗi như thế nào ?
  • lưu xuống db vào table nào ? có giá trị nào cần phải tính toán hay gì ko ?

viết file md giống như batch hén.

Actions #6

Updated by dang dao 6 months ago

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

Updated by Nghia Nguyen 5 months ago

  • File FacilityCSVDocumentation.md added
Actions #8

Updated by Nghia Nguyen 5 months ago

  • File deleted (FacilityCSVDocumentation.md)
Actions #10

Updated by Nghia Nguyen 5 months ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Nghia Nguyen to dang dao

E đã tạo file md mô tả về những thay đổi về chức năng import/export Facility CSV https://redmine.columbusmantech.dev/attachments/36

Actions #11

Updated by dang dao 5 months ago

  • Assignee changed from dang dao to Nghia Nguyen

@Nghia Nguyen a có review như sau

※comment chung cho cách viết tài liệu import/export

  1. hiện tại đang viết import và export chung, rất khó xem. tách ra 1 file import , 1 file export hén
  2. validation các field đang viết nhiều chỗ, rất rối. ghi gom lại 1 chỗ thôi
  3. a thấy có phần database structure đang list ra table + tất cả các field.
    thông tin này đã có ở file excel table layout, ko nên đưa vô thêm đây nữa, sẽ rất khó maitain nếu thêm/xoá/field ( phải sửa nhiều file)
  4. sửa lại tài liệu chỉ gồm những đề mục sau hén

※trường hợp import

  • Tổng quan -> ví dụ import data cho table xxx
  • CSV Structure + Mapping từng field trong file sẽ import vào field nào trong table, field nào
    trường hợp có xử lý data trước khi import thì ghi rõ xử lý như thế nào
  • Flow Import (sequence)
    ví dụ: validation -> update table x -> update table y -> create file -> upload file
  • Validation
    field A
    • validation 1 -> msg 1
    • validation 2 -> msg 2
      field B
    • validation 1 -> msg 1
    • validation 2 -> msg 2
  • update table x
  • update table y
  • create file
  • upload file

※trường hợp export

  • Tổng quan -> ví dụ import data cho table xxx
  • CSV Structure + Mapping từng field trong file sẽ import vào field nào trong table, field nào
    trường hợp có xử lý data trước khi import thì ghi rõ xử lý như thế nào
  • Flow Export (sequence)
    ví dụ: validation -> select data -> create file -> upload file
  • Validation
    field A
    • validation 1 -> msg 1
    • validation 2 -> msg 2
      field B
    • validation 1 -> msg 1
    • validation 2 -> msg 2
  • select data
  • create file
  • upload file
Actions #13

Updated by Nghia Nguyen 5 months ago

  • Assignee changed from Nghia Nguyen to dang dao

e tách ra 2 file import và export.
viết riêng phần validation.

Actions

Also available in: Atom PDF