projecthub redux

最後編輯:2017-01-21 建立:2016-06-12 歷史紀錄

 

    CHIA-LIANG Kmetadata

 

  • 列表 + g0v.json or civic.json -> api endpoint (先用一堆 json 檔)
    • additional metadata
      • 從 awesome g0v 的結構加註新的 metadata
      • gh-pages 下的 CNAME
    • github.com/g0v/foo (g0v.json) -> (filesystem) g0v/foo.json
    • 自動定期更新
    • repo-hook -> 有 commit 更新

 

  • defined required fields
  • name - a string specifying the project's name.
  • name_zh -
  • status - a string indicating the status of the project. The value MUST be one of:
  • "Ideation" - brainstorming phase.
  • "Alpha" - initial prototyping phase and internal testing.
  • "Beta" - a product is being tested in public.
  • "Production" - finished Product, with development and maintenance ongoing.
  • "Archival" - finished Product, but no longer actively maintained.
  • tags - an array of tag strings to help people search for your project, which SHOULD have at least one item.
  • license
    Kirby Wustring value, identifier in : https://spdx.org/licenses/

pilot:

  • env.g0v.tw
  • budget.g0v.tw
  • 公司關係圖 ( no g0v.json )
  • 立委投票指南
  • 急診 ( no g0v.json )
  • http://g0v.tw/en-US/projects.html

 

    CHIA-LIANG Kmetadata editor

 

CHIA-LIANG Kone client side single page editor, which takes:

  • url params for pre-filled content
  • desired target repo (optional)
  • resulting repo and g0v.json location

 

shows:

 

produces:

  • final g0v.json
  • with github account linked, produces:
  • PR for existing g0v.json or civic.json at the target repo)
  • CHIA-LIANG Kcreate repo if not exists

 

POGA PWIP: https://poga.github.io/metadata-editor/

 

    CHIA-LIANG Kgiven hackpad / google sheet search prompt + prefill in editor

 

CHIA-LIANG Kfind hackpad (via kcwu backup) with keywords:

專案簡介、要解決的問題

 

  • open issue in awesome-g0v if not exists (use hackpad key)
    • link at a master awesome-g0v issue
    • also tag the primary hackpad editor if possible
    • provide a link to the editor with pre-fill (TBD)
      • the PR created by editor will link back to this issue
    • editor should have a callback to add comment to the issue with the resulting repo of this issue, add this to the awesome markdown

LEEWIP: https://github.com/g0v/hackpad-parser

Result: https://gist.github.com/jessy1092/0025f7638792f2bc34e382bc969e43fe

 

    JEFF Hg0vhelper

JEFF HSee: g0vhelper

 

    JEFF Hissues aggregator

 

JEFF HArcheology

 

CHIA-LIANG Koriginal hackpad: g0v tasks queue

JMEHSIEHnew hackpad: g0v issue tracker

 

JEFF Hg0v issue label 定義

 

CHIA-LIANG Krepo: https://github.com/youchenlee/g0v-issue-tracker

 

JEFF HWish List

 

CHIA-LIANG Kfor people to find tasks, filtered by:

  • repo language
  • required skill (from issue label)

 

repo issue label sync:

 

  • Decide new list of labels g0v/dev#15
  • show aggregated issues from repo listed in awesome-g0v
  • allow filtering by:
    • language
    • label
  • triage unlabelled

 

JEFF HDesign

 

POGA Phack.g0v.tw 加一頁 issue list, 提供 label 列表,按下後在 iframe 中開出 github issue search

 

    JEFF HLeverage github.com advanced search

 

利用 github.com 的 advanced search 找出符合條件的 issues。

    Jeff Hung這樣就不用養 backend 提供搜尋功能

 

Advanced search form 使用 GET method,form parameters 有:

 

*

 

 

 

範例:找出 github.com/g0v 下所有 projects 裡,有標 OCR 的 open issues:

  • From these owners: g0v
  • In the state: open
  • With the labels: OCR

會得到這個 link: https://github.com/search?utf8=%E2%9C%93&q=state%3Aopen+label%3AOCR&type=Repositories&ref=advsearch&l=&l=

再點 Issues 得到這個 link: https://github.com/search?l=&q=state%3Aopen+label%3AOCR&ref=advsearch&type=Issues&utf8=%E2%9C%93

 

    JmeHsieh上次聊了 cors 的問題,所以可能的解法還是得讓 server 去 call advance search, 然後 parse html dom。

 

 

JMEHSIEH最新進度

根據前面討論使用 github adv search 的話,會遇到兩個問題

  1. repo 帶在 url params 裡面會遇到 url too long 的 error
  2. 會有 cors 的問題,所以還是會需要一台 server 作為 proxy

 

所以目前採用自架 server 的方式

  1. 固定一段時間去 call github api 去的 repo, issues 的 json
  2. 把 json 寫進 database
  3. 提供 api 介面可 query by labels / language

 

github repo: https://github.com/JmeHsieh/issue_aggregator

demo: http://g0vissues.jmehsieh.com/

 

 

 

 

    CHIA-LIANG Kproject browser

 

CHIA-LIANG Kexisting:

  • https://www.codeforamerica.org/brigade/projects
  • (待捕)

 

Default, allow search for everything

for participants: show everything and allow filtering ?

 

  • allow showing sub-project
  • 一鍵加入列表或更新內容 Link to editor

 

Featured projects

 

for public: (show only ones with thumbnails, or projects in beta or production)

 

show subprojects (derived from g0v.json: with partOf: field)

 

LEE瀏覽器外掛

  • CHIA-LIANG K爬蟲類圖鑑 (metadata contains: parserFor:zxxx.gov.tw, serviceFor:ooo.gov.tw)
    • eg: 求職小幫手: 瀏覽勞動部時顯示:講個秘訣
    • eg: 教育部辭典: 顯示:講個秘訣,萌典很好用

 

 

    CHIA-LIANG Kg0vzilla

    CHIA-LIANG Kstatus / dashboard

    • TTCATbeta 版需要的東西
      • g0v domain
      • ga
      • etc...

 

    CHIA-LIANG Ktools for migrating g0v.json to civic.json

 

 

CHIA-LIANG Kspec by et: (待捕)