Comments (5)
@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.
@cjk-halodule
"projectTitle": 不允許更改 => 這部分請協助確認一下前端是不show欄位還是disable input
- 若部分欄位未傳, 是會保留原資料還是被改成空白?
- 其他 project 編輯功能(3.2,3.4...)會開新 api 還是一併整合在這支?
"_id": "測試計畫1", // filter condition
=> _id 會改為由系統生成 unique key?"projectTitle": "測試計畫1", // for access control
=> 所以 project title 不允許重複, 否則權限抓取會有錯誤?
from camera-trap-api.
Thanks @oahehc please disable input.
from camera-trap-api.
- 使用
/bulk-update
時,$set
只會改變有列出的部分,未傳的部分會保留db中的原有資料。 - 目前都合併在這支。(其他 model 的基本資料編輯方式也相同)
- 是
- 是 (暫時如此,如果3要改,4未來亦可統一改成使用 _id )
from camera-trap-api.
@oahehc 目前 API 應已使用 _id, 請確認此票是否仍有需求?
from camera-trap-api.
Related Issues (20)
- 修正計畫「 編輯設定」中的編輯狀態 HOT 1
- 初測延遲加上逐月的統計
- 修正篩選多物種時,只篩選出其中一種物種 HOT 2
- 上傳 csv,欄位錯誤的 error handling
- 批次上傳 Memory leak
- 帶 id 的 CSV 檔上傳,新增資料的處理
- 高海拔樣區和相機位置資料錯置 HOT 2
- 同一媒體檔案中缺漏資料的補充 HOT 1
- 敏感資料的處理
- 訂定計算結果匯出 CSV 格式
- 事業區、林班地、小區之圖籍資料
- 提供使用者判定之相機開始及結束工作時間,供計算選項考慮。
- 角況控制詞彙增加「無角」
- 計畫名稱及計畫簡稱不可重覆
- 資料分析-A. 相機工作時數 HOT 2
- 資料分析- B. 相對豐度指標的計算功能 - a: OI 值
- 資料分析- B. 相對豐度指標的計算功能 - b: 目擊事件
- 資料分析- B. 相對豐度指標的計算功能 - c: 捕獲回合比例
- 資料分析- C. 存缺(presence/absence)
- 資料分析- D. 活動機率(apparent probability of activity, APOA)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camera-trap-api.