GithubHelp home page GithubHelp logo

Comments (13)

rwu823 avatar rwu823 commented on July 1, 2024

@cjk-halodule

權限有包含 'SysAdmin', 'ProjectInitiator', 嗎?

from camera-trap-api.

rwu823 avatar rwu823 commented on July 1, 2024

@cjk-halodule

發送電子郵件這塊有需要嗎?

from camera-trap-api.

 avatar commented on July 1, 2024

有喔

from camera-trap-api.

oahehc avatar oahehc commented on July 1, 2024

針對 API 有幾個疑問先提出

  1. 新增的欄位應該是跨project共用的, 放projectId是後端會同步將該欄位加入對應project中嗎?
  2. key 如果由後端 generate, 應該就不用傳空字串?然後reponse應該要有key?
  3. widget_select_options 目前是直接放 string array, 沒有用 object
  4. fieldStatus 是依照前端填入的值? 新增時預設都先填pending?
{
  "projectId" : "",
  "userId" : "OrcId-*",
  "key" : "", // (留空)
  "label" : "", // 角況
  "widget_type" : "", // select | string | datePicker
  "widget_date_format" : "", // YYYY-MM-DD hh:mm
  "widget_select_options" : [
    {
      "key" : "", // (留空)
      "label" : "", // 例如性別 M | F
    },
  ],
  "description" : "", // 備註內容
  "fieldStatus" : "", // pending | approved | rejected
}

from camera-trap-api.

 avatar commented on July 1, 2024
  1. yes, 但是狀態為 pending. 然後前端根據狀態決定是否顯示供使用。
  2. key 將會是後端人工決定命名,之後response 會有 key
  3. 那我後端會改成 object。key 和 label 分開之後國際化比較好做。前端就請根據物件格式顯示喔。
  4. 對。前端請在狀態為 approved 才提供使用。

from camera-trap-api.

oahehc avatar oahehc commented on July 1, 2024

3. 那我後端會改成 object。key 和 label 分開之後國際化比較好做。前端就請根據物件格式顯示喔。
ok, 待資料庫的資料更新格式後前端會再做調整

from camera-trap-api.

oahehc avatar oahehc commented on July 1, 2024

請問當 widget_type === string 時,
輸入格式這欄填寫內容應該存在哪個 key?

{
  "projectId" : "",
  "userId" : "OrcId-*",
  "key" : "", // (留空)
  "label" : "", // 角況
  "widget_type" : "", // select | string | datePicker
  "widget_date_format" : "", // YYYY-MM-DD hh:mm
  "widget_select_options" : [
    {
      "key" : "", // (留空)
      "label" : "", // 例如性別 M | F
    },
  ],
  "description" : "", // 備註內容
  "fieldStatus" : "", // pending | approved | rejected
}

image

from camera-trap-api.

 avatar commented on July 1, 2024

發現 data model 缺這個 key. 已加入widgetStringFormat並部署

from camera-trap-api.

 avatar commented on July 1, 2024
{
  "projectId" : "",
  "userId" : "OrcId-*",
  "key" : "", // (留空)
  "label" : "", // 角況
  "widget_type" : "", // select | string | datePicker
  "widget_date_format" : "", // YYYY-MM-DD hh:mm
  "widget_select_options" : [
    {
      "key" : "", // (留空)
      "label" : "", // 例如性別 M | F
    },
    {
      "key" : "", // (留空)
      "label" : "", // 例如年齡 juvenile | adult
    },
  ],
  "widgetStringFormat": "",
  "description" : "", // 備註內容
  "fieldStatus" : "", // pending | approved | rejected
}

from camera-trap-api.

oahehc avatar oahehc commented on July 1, 2024

這支 api 申請新欄位時 fieldStatus === pending
那用GET /data-field-available取得欄位時, 是否應該只會給 fieldStatus === approved 的資料?
https://github.com/TaiBIF/camera-trap-api/wiki/data-field-available

from camera-trap-api.

oahehc avatar oahehc commented on July 1, 2024
  1. 看起來 label 沒有成功存入
  2. 有些舊資料欄位已經不完整了, 建議有空時可以補一下資料
    image

from camera-trap-api.

 avatar commented on July 1, 2024

那用GET /data-field-available取得欄位時, 是否應該只會給 fieldStatus === approved 的資料?
#70

from camera-trap-api.

 avatar commented on July 1, 2024

Implemented in v1 as #117

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.