Git Product home page Git Product logo

Comments (5)

trashmai avatar trashmai commented on June 19, 2024

@oahehc
POST to /project/bulk-update

[{
    "_id": "測試計畫1", // filter condition
    "projectTitle": "測試計畫1", // for access control
    "$set": { // set values
      "projectTitle": 不允許更改
      "shortTitle": "測1 // 計畫簡稱",
      "funder": "林務局 // 委辦單位",
      "projectId": "FB-test-cameratrap-01 // 計畫編號",
      "principalInvestigator": "測試principalInvestigator // 計畫主持人",
      "projectStartDate": "2018-10-15 // 計畫時間:起",
      "projectEndDate": "2018-12-10 // 計畫時間:迄",
      "adminArea": [ // 計畫地區, 見 WF 2.3.7
        "苗栗縣",
        "新竹縣"
      ],
      "abstract": "// 計畫摘要",
      "remarks": "// 備註"
  }
}]

from camera-trap-api.

oahehc avatar oahehc commented on June 19, 2024

@cjk-halodule
"projectTitle": 不允許更改 => 這部分請協助確認一下前端是不show欄位還是disable input

@trashmai

  1. 若部分欄位未傳, 是會保留原資料還是被改成空白?
  2. 其他 project 編輯功能(3.2,3.4...)會開新 api 還是一併整合在這支?
  3. "_id": "測試計畫1", // filter condition
    => _id 會改為由系統生成 unique key?
  4. "projectTitle": "測試計畫1", // for access control
    => 所以 project title 不允許重複, 否則權限抓取會有錯誤?

from camera-trap-api.

 avatar commented on June 19, 2024

Thanks @oahehc please disable input.

from camera-trap-api.

trashmai avatar trashmai commented on June 19, 2024

@oahehc

  1. 使用 /bulk-update 時, $set 只會改變有列出的部分,未傳的部分會保留db中的原有資料。
  2. 目前都合併在這支。(其他 model 的基本資料編輯方式也相同)
  3. 是 (暫時如此,如果3要改,4未來亦可統一改成使用 _id )

from camera-trap-api.

 avatar commented on June 19, 2024

@oahehc 目前 API 應已使用 _id, 請確認此票是否仍有需求?

from camera-trap-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.