$30 off During Our Annual Pro Sale. View Details »

YAPC::Fukuoka 前夜祭LT / Yet Another Pawoo Commit logs

YAPC::Fukuoka 前夜祭LT / Yet Another Pawoo Commit logs

Yet Another Pawoo Commit logs
2017-06-03 YAPC::Fukuoka 前夜祭LT

Harukasan
PRO

July 01, 2017
Tweet

More Decks by Harukasan

Other Decks in Technology

Transcript

  1. :"1$'VLVPLB
    લ໷ࡇ-5
    @harukasan / MICHII Shunsuke
    2017-06-30

    View Slide

  2. YAPC::Fukuoka։࠵

    View Slide

  3. )BSVLBTBOಓҪढ़հ

    ϐΫγϒ ג
    ϦʔυΤϯδχΞ *NBHF'MVYࣄۀ੹೚ऀ

    ෱ԬΦϑΟεͰ͸ͳ͘౦ژຊࣾۈ຿
    ೥෱Ԭݝٱཹถࢢੜ·Ε

    ٱཹถߴઐˠ۝޻େ ൧௩
    ˠஜ೾େӃˠϐΫγϒೖࣾ

    ීஈ͸3VCZͱ(Pͱ͢͜͠4DBMBΛॻ͘ΠϯϑϥܥΤϯδχΞ

    ීஈ͸ࣇͷ෕

    View Slide

  4. View Slide

  5. Mastodon hosted by

    View Slide

  6. ੈք࠷େڃͷϚετυϯΠϯελϯε
    ʘ 174,324ਓ͕ɺ4,491,047ճύ΢ͬͯ·͢ʗ

    View Slide

  7. mstdn.jp
    ͨ͘͞ΜͷΠϯελϯε͕ϦϞʔτϑΥϩʔʹΑͬͯͭͳ͕Δ෼ࢄ4/4
    .BTUPEPO
    mastodon.social
    mastodon.cloud
    friends.nico
    qiitadon.com
    DPOOFDUJPOT
    music.pawoo.net

    View Slide

  8. tootsuite/mastodon
    pixiv/mastodon
    ಠࣗػೳΛೖΕͭͭ

    VQTUSFBNʹ΋ίϯτϦϏϡʔτ
    ओͳಠࣗػೳ
    QJYJW࿈ܞ
    ϝσΟΞλΠϜϥΠϯ
    ͓͢͢ΊϢʔβʔ
    J04"OESPJEΞϓϦ
    1VTI௨஌

    View Slide

  9. .BTUPEPO͕Α͘ͳΔ͜ͱͰ

    .BTUPEPOίϛϡχςΟ͕ൃల͠

    1BXPP΋ൃల͍ͯ͘͠

    View Slide

  10. .BTUPEPO͕Α͘ͳΔ͜ͱͰ

    .BTUPEPOίϛϡχςΟ͕ൃల͠

    1BXPP΋ൃల͍ͯ͘͠
    :"1$

    View Slide

  11. :FU"OPUIFS1BXPP$PNNJUMPHT
    Pawoo͔ΒMastodon΁ͷߩݙʢݟ͚ͭͨ΍͚ͭͩʣ

    View Slide

  12. 2017-04-15 20:16 alpaca-tc
    ActiveRecord::Relation does not respond to `#id` (#1834)
    - ෆ۩߹मਖ਼

    View Slide

  13. 2017-04-15 20:17 Keiji, Yoshimi
    fixed privacy mistake of japanese translation of privacy.change (#1832)
    - ຋༁मਖ਼

    View Slide

  14. 2017-04-16 04:17 alpaca-tc
    ActiveRecord::NotFound is not defined (#1864)
    - ෆ۩߹मਖ਼

    View Slide

  15. 2017-04-16 21:05 Yuki Nakagawa
    Enlarge font size to avoid autozooming of iPhone. (#1911)
    - iPhoneͰΦʔτζʔϜ͕ޮ͔ͳ͍Α͏ʹϑΥϯταΠζΛେ͖͘͢Δ

    View Slide

  16. 2017-04-16 21:55 alpaca-tc
    Fixed NoMethodError in UnfollowService (#1918)
    - ෆ۩߹मਖ਼

    View Slide

  17. 2017-04-16 23:28 alpaca-tc
    Add presence validation to Import (#1928)
    - όϦσʔγϣϯ࿙Ε

    View Slide

  18. 2017-04-16 23:33 abcang
    fix regex filter (#1845)
    - ਖ਼نදݱϑΟϧλʔ͕HTMLλάʹ΋Ϛονͯ͠͠·ͬͯͨ໰୊ͷमਖ਼

    View Slide

  19. 2017-04-17 01:04 alpaca-tc
    Check @recipient.user at the first (#1939)
    - ෆ۩߹मਖ਼

    View Slide

  20. 2017-04-17 11:23 Keiji, Yoshimi
    reduce unneed query when post without attachements. (#1907)
    - ͍Βͳ͍ΫΤϦ͕ඈΜͰͨͷΛվળ

    View Slide

  21. 2017-04-17 11:32 geta6
    Improve streaming server with cluster (#1970)
    - node.jsͷετϦʔϛϯάαʔόΛϚϧνϓϩηεͷΫϥελʹมߋ
    - ͦΕ·ͰγϯάϧϓϩηεͩͬͨͷͰετϦʔϛϯά͕

    ΊͬͪΌ͸΍͘ͳͬͨ
    https://speakerdeck.com/geta6/mastodonfalsenodefalsehanasi

    View Slide

  22. 2017-04-17 17:29 saturday06
    Assign user locale on signup (#1982)
    - ϝʔϧ͕ӳޠͰૹΒΕͯ͠·͍ͬͯͨͷΛ

    Accept-LanguageΛΈΔΑ͏ʹमਖ਼

    View Slide

  23. 2017-04-17 17:37 Yuki Nakagawa
    Optimize user setting page for mobile browser (#1924)
    - ϞόΠϧσόΠεͰͷݟ͑ํ͕͓͔͔ͬͨ͠ͱ͜ΖΛमਖ਼

    View Slide

  24. 2017-04-17 22:54 alpaca-tc
    Required foreign keys (#2003)
    - ෆ۩߹मਖ਼

    View Slide

  25. 2017-04-15 23:59 Keiji Yoshimi
    cache blockings for reducing queries.
    - ϒϩοΫҰཡΛΩϟογϡ͢ΔΑ͏ʹͨ͠

    View Slide

  26. 2017-04-18 20:10 geta6
    Add hasMore field to account timeline (#2066)
    - Ұ൪Լ·ͰεΫϩʔϧ͢Δͱແݶʹinfinite scroll͠Α͏ͱ

    XHR͠·͘Δ໰୊Λमਖ਼

    View Slide

  27. 2017-04-18 23:03 Keiji, Yoshimi
    Translate onboarding dialog to japanese (#2062)
    - ຋༁

    View Slide

  28. 2017-04-18 23:04 ik-fib
    Add "Mastodon" to user agent (#2073)
    - UAͰ൑ఆ͍ͯ͠ΔΠϥετίϛϡχέʔγϣϯαʔϏεͷͨΊʹ

    MastodonͷUAΛݟΔΑ͏ʹ͢Δ

    View Slide

  29. 2017-04-19 21:52 abcang
    Fix html escape characters in the URL (#2138)
    - ෆ۩߹मਖ਼

    View Slide

  30. 2017-04-19 21:58 alpaca-tc
    Replace User.count -> User.confirmed.count (#2127)
    - ϝʔϧೝূ͕͢ΜͰ͍ͳ͍Ϣʔβ΋Ϣʔβ਺ʹΧ΢ϯτ͍ͯͨ͠ͷΛमਖ਼

    View Slide

  31. 2017-04-19 22:39 geta6
    Automatically change the size of textarea (#2128)
    - ೖྗϑΟʔϧυͷαΠζΛࣗಈతʹ৳͹ͨ͠ΓॖΊͨΓ͢Δ

    View Slide

  32. 2017-04-19 23:40 matsurai25
    fix search text 'zero' (#2150)
    - ຋༁

    View Slide

  33. 2017-04-19 23:41 matsurai25
    fix Japanese search result translation (#2149)
    - ຋༁

    View Slide

  34. 2017-04-20 02:20 fsubal
    fix broken style when follower has long description (#2159)
    - ελΠϧ่Εͷमਖ਼

    View Slide

  35. 2017-04-20 05:19 alpaca-tc
    Extract error messages to locale file (#2162)
    - όϦσʔγϣϯΤϥʔ͕຋༁͞Εͳ͍ͷΛͳ͓ͨ͠

    View Slide

  36. 2017-04-21 00:13 Keiji, Yoshimi
    it may be mentions_status_id_index is duplicated of
    index_mentions_on_status_id index. (#2224)
    - ΠϯσοΫε͕ॏෳ͍ͯͨ͠

    View Slide

  37. 2017-04-22 00:26 ik-fib
    Add Mastodon version to user agent (#2253)
    - UAʹϚετυϯͷόʔδϣϯ΋͍ΕΔΑ͏ʹ͢Δ

    View Slide

  38. 2017-04-23 00:28 Keiji, Yoshimi
    update emojione-picker for fixed warnings. (#2324)
    - warningΛফ͢

    View Slide

  39. 2017-04-24 22:10 alpaca-tc
    Add index to statuses_tags#status_id (#2394)
    - ΠϯσοΫε௥Ճ

    View Slide

  40. 2017-04-25 22:06 alpaca-tc
    Localize with i18n for Devise::FailureApp (#2309)
    - ຋༁͕͏·͋ͨͬͯ͘ͳ͍ͷΛमਖ਼

    View Slide

  41. 2017-04-26 10:47 Keiji, Yoshimi
    attach_media should be in transaction of creation status (#2426)
    - τϥϯβΫγϣϯʹͳ͍ͬͯͳͯ͘λΠϛϯάʹΑͬͯෆ੔߹Λ

    ىͨ͜͠Ωϟογϡ͕Ͱ͖͍ͯͨͷΛमਖ਼

    View Slide

  42. 2017-04-29 17:50 alpaca-tc
    Remove uneeded `ORDER BY` query (#2615)

    - T/O

    View Slide

  43. 2017-04-29 21:29 alpaca-tc
    Expand uploaded thumbnail (#2611)
    - ελΠϧमਖ਼

    View Slide

  44. 2017-05-04 06:36 alpaca-tc
    localize 'throttled' (#2755)
    - ຋༁

    View Slide

  45. 2017-05-04 11:39 abcang
    changed to run foreman with vagrant (#2742)
    - Vagrantfileͷमਖ਼
    - ͪͳΈʹMastodon͸DockerͰ΋VagrantͰ΋։ൃͰ͖Δ

    View Slide

  46. 2017-05-04 22:53 abcang
    fix DB_URL (#2778)
    - DATABASE_URLΛnode.jsͷετϦʔϛϯάαʔόͰ΋࢖͏Α͏ʹ͢Δ

    View Slide

  47. 2017-05-05 00:49 abcang
    Enable disableHostCheck option of webpack-dev-server (#2790)
    - webpack-dev-server͕͚͜ΔͷΛमਖ਼

    View Slide

  48. 2017-05-05 06:44 alpaca-tc
    Delete records in smaller transaction (#2802)
    - ڊେͳτϥϯβΫγϣϯΛ෼ׂ

    View Slide

  49. 2017-05-06 04:31 alpaca-tc
    Fixes propTypes warning introduced by #2774 (#2824)
    - ෆ۩߹मਖ਼

    View Slide

  50. 2017-05-06 04:32 alpaca-tc
    Fixes unknown mime type (#2822)
    - ෆ۩߹मਖ਼

    View Slide

  51. 2017-05-06 11:03 alpaca-tc
    Optimize follower_accounts and following_accounts (#2820)
    - ϑΥϩʔϢʔβ෼JOIN͍ͯͨ͠ͷΛIN۟ʹॻ͖׵͑ͯߴ଎Խ

    View Slide

  52. 2017-05-06 19:55 alpaca-tc
    Handling failed http response (#2823)
    - ෆ۩߹मਖ਼

    View Slide

  53. 2017-05-06 23:31 alpaca-tc
    Optimize MuteService and AfterBlockService (#2836)
    - Α͘Θ͔Βͳ͔͚ͬͨͲ࠷దԽͨ͠Β͍͠

    View Slide

  54. 2017-05-07 00:03 alpaca-tc
    Refactor domain_blocks_controller (#2843)
    - ϦϑΝΫλϦϯά

    View Slide

  55. 2017-05-07 04:55 alpaca-tc
    Fixes slow query in notifications api (#2851)
    - ࠷దԽ

    View Slide

  56. 2017-05-07 06:06 alpaca-tc
    Hotfix convert string from symbol (#2856)
    - ෆ۩߹मਖ਼

    View Slide

  57. 2017-05-07 23:40 alpaca-tc
    Refactor account.rb (#2881)
    - ϦϑΝΫλϦϯά

    View Slide

  58. 2017-05-08 02:00 alpaca-tc
    Add effective index to subscriptions (#2885)
    - ΠϯσοΫεͷॱ൪͕ҧͬͯͯ͏·͘࢖͑ͯͳ͔ͬͨ

    ΠϯσοΫεͷॱ൪Λม͑ͨ
    - [callback_url, account_id] -> [account_id, callback_url]

    View Slide

  59. 2017-05-08 10:52 alpaca-tc
    Render sidekiq scheduler (#2898)
    - SidekiqεέδϡʔϥʔͷWeb UIΛ֬ೝͰ͖ΔΑ͏ʹ͢Δ

    View Slide

  60. 2017-05-09 12:15 alpaca-tc
    Remove rails_12factor (#2901)
    - 12factor gemΛ࡟আ͢Δ
    - ͜ΕͰ੩తϑΝΠϧͷ഑৴ΛແޮʹͰ͖ΔΑ͏ʹͳͬͨ

    - rails_12factor͸12factor appsͰ͋Δ͜ͱΛڧ੍͠Α͏ͱ͢Δ΍ͭ

    View Slide

  61. 2017-05-10 01:17 abcang
    Fixed bug that timeline can not be displayed by InvalidURIError
    (#2947)
    - ෆ۩߹मਖ਼

    View Slide

  62. 2017-05-11 03:33 alpaca-tc
    Add `account_id DESC` to optimize PrecomputeFeedService (#2967)
    - ORDER BYʹΧϥϜΛ௥Ճͯ͠ɺ

    ͦͷΧϥϜͷΠϯσοΫεΛ͔ͭ͏Α͏ʹ͢Δ࠷దԽ
    - MySQLͩͬͨΒFORCE INDEX͔ͭ͑Δͷʹ……

    View Slide

  63. 2017-05-13 22:56 alpaca-tc
    Fixes NoMethodError: undefined method 'first' for nil:NilClass
    (#3036)
    - ෆ۩߹मਖ਼

    View Slide

  64. 2017-05-13 22:56 Shunsuke Michii
    Fix og:url. (#3031)
    - ෆ۩߹मਖ਼

    View Slide

  65. 2017-05-16 09:54 alpaca-tc
    Optimize Status#permitted_for 24x (#3069)
    - ΫΤϦ࠷దԽ
    - ͳΜ͔24ഒ͸΍͘ͳͬͨΒ͍͠

    View Slide

  66. 2017-05-16 10:35 alpaca-tc
    Order by symbol value (#3077)
    - order('id asc') -> order(id: :desc)

    View Slide

  67. 2017-05-16 19:06 alpaca-tc
    Improve Account#triadic_closures (#3079)
    - ΫΤϦ࠷దԽ

    View Slide

  68. 2017-05-16 19:12 Shunsuke Michii
    Make faster ProcessFeedService (#3080)
    - urlΧϥϜʹ͸ΠϯσοΫε͕͋ͬͨͷʹ

    uriΧϥϜʹΠϯσοΫε͕ͳ͔ͬͨ

    View Slide

  69. 2017-05-16 19:12 geta6
    Enable to handle app immediately after closing modal (#3082)
    - ϞʔμϧΛΫϩʔζͨ͠ͱ͖ϑΣʔυΞ΢τ͢ΔͷΛ଴ͨͣʹ

    εΫϩʔϧͰ͖ΔΑ͏ʹ͢Δ

    View Slide

  70. 2017-05-17 10:00 alpaca-tc
    Add filter to AccountFilter (#2968)
    - ؅ཧը໘Ͱ͍ΖΜͳ΍ͭͰݕࡧͰ͖ΔΑ͏ʹ͢Δ

    View Slide

  71. 2017-05-17 22:36 alpaca-tc
    Render translated view (#3093)
    - ෆ۩߹मਖ਼

    View Slide

  72. 2017-05-17 22:38 alpaca-tc
    Refactor Status#ancestors/descendants (#3092)
    - ϦϑΝΫλϦϯά

    View Slide

  73. 2017-05-19 18:41 alpaca-tc
    Define instance method outside #included (#3128)
    - ϦϑΝΫλϦϯά

    View Slide

  74. 2017-05-20 03:19 abcang
    Unify the method of extracting tags (#3138)
    - "#ςετɾςετ"͕"#ςετ"ͰϚονͯ͠͠·͍ͬͯͨͷΛमਖ਼

    View Slide

  75. 2017-05-24 02:45 alpaca-tc
    Toggle sensitive from admin page (#3261)
    - admin͕NSFWΛηοτͰ͖ΔΑ͏ʹमਖ਼

    View Slide

  76. 2017-05-24 22:36 abcang
    Add test when hashtag and URL are concatenated (#3279)
    - ςετ௥Ճ

    View Slide

  77. 2017-05-25 21:14 alpaca-tc
    Refactor Setting (#3302)
    - ϦϑΝΫλϦϯά

    View Slide

  78. 2017-05-31 22:10 alpaca-tc
    Account.find_remote should be raise ActiveRecord::RecordNotFound
    (#3476)
    - ෆ۩߹मਖ਼

    View Slide

  79. 2017-06-06 00:02 Shunsuke Michii
    Add th.json. (#3588)
    - λΠޠͰϦΫΤετ͢Δͱམͪͯͨ

    View Slide

  80. 2017-06-17 05:38 abcang
    Fix ogp url (#3802)
    - ෆ۩߹मਖ਼

    View Slide

  81. 2017-06-19 17:28 alpaca-tc
    Fixes streaming callbacks of HashtagTimeline (#3849)
    - ෆ۩߹मਖ਼

    View Slide

  82. 2017-06-19 18:29 alpaca-tc
    Unobserve status on unmount (#3851)


    - ෆ۩߹मਖ਼

    View Slide

  83. 2017-06-29 20:04 abcang
    rescue HTTP::ConnectionError (#3992)


    - ෆ۩߹मਖ਼

    View Slide

  84. ͓ΘΓ

    View Slide

  85. .BTUPEPOʮ1BXPPʯͰ

    Ұॹʹֵ໋Λى͜͢ΤϯδχΞืू
    https://www.wantedly.com/projects/96771

    View Slide