Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gaiaにプルリクを投げた話

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.
Avatar for TETRA2000 TETRA2000
December 19, 2015

 Gaiaにプルリクを投げた話

Avatar for TETRA2000

TETRA2000

December 19, 2015
Tweet

More Decks by TETRA2000

Other Decks in Technology

Transcript

  1. Gaiaとは https://developer.mozilla.org/en/docs/Mozilla/Firefox_OS/Platform/Architecture Gaia is the core web apps of the

    device, and user interface layer, all written in HTML5, CSS and JavaScript, with a number of exposed APIs to allow the UI code to interact with the phone hardware and Gecko functionality. だそうです。
  2. mozilla-b2g/gaia (GitHub) • gaia部分の独立したレポジトリがGitHubにある • Pull Request送れる ◦ “Bub [バグ番号]

    - [説明]”の形式のタイトルをつける (テストケース実行などは枚数の都合上、割愛)
  3. 実機にgaiaをインストール • なんといっても、実機が一番 • gaia部分だけを指定して、焼くことができる ◦ システムアプリを個別に焼くことも可能 gaia一括更新 “make reset-gaia”

    or “make install-gaia” アプリ個別更新 APP=calendar make install-gaia https://developer.mozilla.org/en- US/Firefox_OS/Developing_Gaia/Different_ways_to_run_Gaia#Using_Gaia_in_Simulator_via_WebIDE
  4. Bug 1217825 - [calendar]support for 0 minutes events • 文字通り、開始時間〜終了時間が0分の予定が表示されない

    • Googleカレンダーから読み込んだ際に発生したと書いてある ◦ (端末で0分の予定を作ろうとすると、開始日が勝手にずれて作れない ) • 2015/10/23に報告されて、割と放置されてる これを直してみる!!
  5. Bug 1181061 - You can't create an event starting and

    ending.. • 端末で0分の予定が作れないというバグ • GitHubをみるまで、気がつかなかった • バグの重複を確認しなかった... ◦ ちなみに、PRは見つけた日の2日前にマージされてた • ステータスは“RESOLVED FIXED” もしかして、もう全部直ってる!?!?
  6. カレンダーを起動してみると... I/Calendar( 4905): Content JS LOG: views/settings [calendar] "Will add

    calendar to settings view" {"remote":{"id":" /caldav/v2/****************%40virtual/events/","url":"/caldav/v2/****************/events/","name":"誕生日","color":"#bad600"," description":"Google の連絡先や Google+ の「あなたのサークル」内のユーザーの誕生日を表示します。また、Google の連絡先 に登録されている記念日や予定があれば、それも表示されます。","syncToken":"****************","privilegeSet":["read","read- free-busy","read-current-user-privilege-set","write-properties"]},"accountId":1,"localDisplayed":true,"lastEventSyncDate":" 2015-12-16T15:17:38.634Z","lastEventSyncToken":"****************","firstEventSyncDate":"2015-12-16T15:00:00.000Z"," _id":2} I/Calendar( 4905): at module.exports/< (app://calendar.gaiamobile.org/js/bundle.js:3543:5) I/Calendar( 4905): Content JS LOG: views/settings [calendar] "Will add calendar to settings view" {"remote":{"id":" /caldav/v2/****************/events/","url":"/caldav/v2/****************/events/","name":"日本の祝日","color":"#df4784"," description":"日本の祝日と行事","syncToken":"****************","privilegeSet":["read","read-free-busy","read-current-user- privilege-set","write-properties"]},"accountId":1,"localDisplayed":true,"lastEventSyncDate":"2015-12-16T15:17:38.637Z"," lastEventSyncToken":"****************","firstEventSyncDate":"2015-12-16T15:00:00.000Z","_id":3}
  7. dtendが無い!! I/Calendar( 3905): Content JS LOG: worker/manager [calendar] {"name":"worker","message":" service/caldav,

    [calendar] , {\"component\":[\"vevent\",[[\"dtstart\",{\"tzid\":\"Asia/Tokyo\"},\"date-time\",\" 2015-12-16T03:00:00\"],[\"dtstamp\",{},\"date-time\",\"2015-12-15T16:49:25Z\"],[\"uid\",{},\"text\",\" [email protected]\"],[\"created\",{},\"date-time\",\"2015-12-15T16:49:25Z\"],[\" description\",{},\"text\"],[\"last-modified\",{},\"date-time\",\"2015-12-15T16:49:25Z\"],[\"location\",{},\"text\"],[\" sequence\",{},\"integer\",0],[\"status\",{},\"text\",\"CONFIRMED\"],[\"summary\",{},\"text\",\"test\"],[\"transp\", {},\"text\",\"OPAQUE\"]],[[\"valarm\",[[\"action\",{},\"text\",\"DISPLAY\"],[\"description\",{},\"text\",\"This is an event reminder\"],[\"trigger\",{},\"duration\",\"-P0DT0H30M0S\"]],[]]]],\"_rangeExceptionCache\":{},\" exceptions\":{},\"rangeExceptions\":[]}"}