Comments (13)
我覺得需要做 authorization,用 mixins/bulkUpdate( https://github.com/TaiBIF/camera-trap-api/blob/master/common/mixins/bulkWrite.js#L14-L18 )的話會讓任何人都能修改,例如 A 帳號去改 B 帳號的資料。
from camera-trap-api.
Proposed format to attached to user object:
"settings": {
"setting": {
"hotkeys": [
{
"speciesName": "", // 物種名稱,從各計畫的 species_list 取得
"hotkey": "" // 快速鍵
},
{
"speciesName": "",
"hotkey": ""
},
]
},
}
考慮到每個使用者可能有不同計畫的編輯需要,因此清單應該不需要和個別計畫綁在一起。
from camera-trap-api.
@rwu823 請在 #31 使用者新增時把 10.1.2 的快速鍵設定寫入 user 物件?
from camera-trap-api.
aa0a653 已完成
API 用法
GET /ctp-user/me
如果有設定過會多一組 speciesKeys
欄位(會關連此 user 在所有計畫中有辨識出的物種), null 即由前端決定預設鍵
"speciesKeys" : {
"空拍": "AR",
"工作照": "WP",
"定時測試": null,
"鼬獾": null,
"水鹿": null,
"山羌": null
}
更新與重置 hotkeys
PATCH /ctp-user/me/update
全所有 keys 送進來:
{
"speciesKeys" : {
"物種" : "KEY",
"物種2" : "KEY2",
"物種3" : "KEY3",
}
}
重置為 default keys
{
"speciesKeys" : null
}
from camera-trap-api.
這支 API success 的 response 有點怪, 建議回更新成功後的 user profile
from camera-trap-api.
@rwu823 ?
from camera-trap-api.
PATCH /ctp-user/me/update
type PATCH 似乎沒設定 CORS
from camera-trap-api.
在 f3b4c9 中加入 PATCH - 再看看是否 okay 了?
from camera-trap-api.
PATCH /ctp-user/me/update
response 200, 但 data 沒有更新, update 完再 get 還是舊的資料
from camera-trap-api.
Kelp 更新過後請 @oahehc 再試一次?我可以幫忙確認。
from camera-trap-api.
還是一樣, submit success, 但 refresh 後 /me
中的 speciesKeys 還是舊資料沒有更新成功
from camera-trap-api.
資料是有更新的,只是預設值不會拿掉。
已經改成有設定 speciesKeys 後移除預設值。
from camera-trap-api.
Implemented in v1 as #96
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.