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

Redashの開発はじめました / How to get started Redash development

73e80d16abc7cc65e08d430c2eae811b?s=47 taminif
September 03, 2019

Redashの開発はじめました / How to get started Redash development

73e80d16abc7cc65e08d430c2eae811b?s=128

taminif

September 03, 2019
Tweet

Transcript

  1. Redashͷ։ൃ ͸͡Ί·ͨ͠ Redash Meetup 6.0.0 2019/09/03 େౡ ޫو@sbntaminif

  2. ࣗݾ঺հ • ΢ΣϒϦΦגࣜձࣾɹ։ൃGϦʔμʔ • ීஈ͸ژ౎Ͱಇ͍͍ͯ·͢ • ؔ੢NodeֶԂ&SkyWay Meetup Organizer •

    ࢥ͍੾ͬͯ͜ͷMeetupʹඈͼࠐΜͰ͖·ͨ͠
  3. Redash͸OSSͰ͢ ։ൃʹࢀՃ͍ͨ͠ https://github.com/getredash/redash/blob/master/CONTRIBUTING.md

  4. ࣗ෼ͷMacbook Proʹ ؀ڥߏஙͯ͠Έͨ

  5. ߏஙํ๏͸ ެࣜυΩϡϝϯτࢀর Docker্Ͱ͸ͳ࣮͘ػʹߏங https://redash.io/help/open-source/dev-guide/setup

  6. खॱͦͷ··Ͱ ϩʔΧϧͰಈ͍ͨʂ

  7. ͦͷ··MacͰಈ͍͍ͯΔ MySQLʹ઀ଓ͢Δ

  8. ͋Εʁ

  9. MySQLͷ Datasource͕ͳ͍ɾɾɾ

  10. ͳͥʁʁ

  11. Redash͸OSSͰ͢ ιʔείʔυΛಡΜͰΈΔ

  12. query_runnerϑΥϧμͷதʹ ֤Datasourceͷ઀ଓͷͨΊͷ࣮૷͕͋Δ https://github.com/getredash/redash/tree/master/redash/query_runner

  13. import logging import os import threading from redash.query_runner import TYPE_FLOAT,

    TYPE_INTEGER, TYPE_DATETIME, TYPE_STRING, TYPE_DATE, BaseSQLQueryRunner, InterruptException, register from redash.settings import parse_boolean from redash.utils import json_dumps, json_loads try: import MySQLdb enabled = True except ImportError: enabled = False ɾ ɾ ɾ mysql.pyͷίʔυ
  14. import logging import os import threading from redash.query_runner import TYPE_FLOAT,

    TYPE_INTEGER, TYPE_DATETIME, TYPE_STRING, TYPE_DATE, BaseSQLQueryRunner, InterruptException, register from redash.settings import parse_boolean from redash.utils import json_dumps, json_loads try: import MySQLdb enabled = True except ImportError: enabled = False FOBCMFEͷ஋ʹΑͬͯ ࢖༻Մೳ͔Ͳ͏͔Λ൑ఆ MySQLdb͕ͳ͍͜ͱ͕Θ͔ͬͨ ͳͥMySQLdb͕ͳ͍ͷ͔ʁʁ
  15. pip install -r requirements_all_ds.txt MySQLdbΛࢦఆͯ͠Πϯετʔϧ pip install MySQL-python -> MySQL-python͚ࣦͩഊ͢Δ

    -> ΋ͪΖΜࣦഊ͢Δ
  16. ࠔͬͨ࣌ͷStackOverflow https://stackoverflow.com/questions/12218229/my-config-h-file-not-found-when-intall-mysql-python-on-osx-10-8

  17. mysql-connector-cΛ࢖ͬͯ MySQL-pythonΛΠϯετʔϧ https://stackoverflow.com/questions/12218229/my-config-h-file-not-found-when-intall-mysql-python-on-osx-10-8

  18. Datasource͕දࣔ͞Εͨ

  19. PRૹͬͯΈͨ

  20. Ϛʔδ͞Ε·ͨ͠❗

  21. Let’s Contributing!

  22. ͋Γ͕ͱ͏͍͟͝·ͨ͠