projecthub redux

metadata

pilot:

metadata editor

one client side single page editor, which takes:

shows:

produces:

WIP: https://poga.github.io/metadata-editor/

given hackpad / google sheet search prompt + prefill in editor

find hackpad (via kcwu backup) with keywords:

專案簡介、要解決的問題

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

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

g0vhelper

See: g0vhelper 

issues aggregator

Archeology

original hackpad: g0v tasks queue 

new hackpad: g0v issue tracker

g0v  issue label 定義 

repo: https://github.com/youchenlee/g0v-issue-tracker

Wish List

for people to find tasks, filtered by:

repo issue label sync:

Design

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

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

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

    name id data-search-prefix type default example / placeholder
    utf8 hidden
    q hidden state:open label:OCR
    type hidden Repositories
    ref hidden advsearch
    search_from user: text
    search_repos repo: text twbs/bootstrap, rails/rails
    search_date created: text YYYY-MM-DD, YYYY-MM-DD
    l search_language language: select
    search_stars stars: text 0..100, 200, >1000
    search_forks forks: text 50..100, 200, <5
    search_size size: text Repository size in KB
    search_push pushed: text <YYYY-MM-DD
    fork: select options: not, and (true), only (only) Return repositories [*] including forks.
    search_extension extension: text rb, py, jpg
    search_file_size size: text 100..8000, >10000 duplicate with search_size?
    search_path path: text /foo/bar/baz/qux
    fork: checkbox Return code from forked repositories duplicate with search_fork
    search_state state: select options: open/closed, open (open), closed (closed)
    search_comments comments: text 0..100, >442

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

    會得到這個 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

    最新進度

    根據前面討論使用 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/

    project browser

    existing:

    Default, allow search for everything

    for participants: show everything and allow filtering ?

    Featured projects

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

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

    瀏覽器外掛

    g0vzilla

    status / dashboard

    tools for migrating g0v.json to civic.json

    spec by et: (待捕)