Redash v6 ã§è¿½å ããããªã¼ãã³ã³ããªã¼ãã®ç¡å¹åã«ã¤ãã¦æåã¨ã³ã¼ãã追ã£ã¦ã¿ã
ãã®è¨äºã¯ Redash Advent Calendar 19æ¥ç®ã®è¨äºã§ããå¤åå ã§ã師走ã ã¼ããæãå§ãã¾ããã
ãé¡
Redashãå ¥åè£å®ï¼ã¹ããããã¨ãï¼ãåºã¦ããªããªã£ã¦ãã¾ã£ã¦å°ã£ã...ã·ã¼ã¯ã¬ããã¢ã¼ãã ã¨ã¡ããã¨åãï¼ãã£ãã·ã¥ã¯ãªã¢ã¨ãã¹ã¼ããªãã¼ããã¦ãåºã¦ããªã...è¬ ð¢ï¼è§£æ±ºæ¹æ³ç¥ã£ã¦ãã人ããããæãã¦ãã ãã...ï¼
— mario (@mario_kada) 2018å¹´12æ17æ¥
ãã®åé¡ã¨é¢ä¿ãããã©ããã¯ãããã¾ãããããªã¼ãã³ã³ããªã¼ãã¨èãã¦ãå æ¥ãªãªã¼ã¹ããã Redash v6 (æ£ç¢ºã«ã¯ 6.0.0-beta ãã追å )ã§ä»¥ä¸ã®æ©è½ã追å ããããã¨ãæãåºãã¾ããã
If the live autocomplete in the code editor annoys you, you can disable it now
ä»æ¥ã¯ãã®æ©è½ã«ã¤ãã¦æ¤è¨¼ãã¤ã¤ããã£ããã¨å®è£ ã追ã£ã¦ã¿ã¾ãã
æ¤è¨¼ç°å¢ã¯ docker-compose
ã§èµ·åããDocker ã¤ã¡ã¼ã¸ã¯ redash/redash:6.0.0.b8537
ã使ç¨ãã¾ããã
å½±é¿ç¯å²
ãã®æ©è½ã¯ã¯ã¨ãªç·¨éç»é¢ã«å½±é¿ãããã¾ãã
以ä¸ã¯ãªã¼ãã³ã³ããªã¼ããç¡å¹ã«ããåã®ç»é¢ã§ãä»ã¾ã§ã®ãã¼ã¸ã§ã³ã¨åãããªã¼ãã³ã³ããªã¼ããæå¹ã«ãªã£ã¦ãã¾ãã
ä¸è¨ã®ç»é¢ã§è¡¨ç¤ºããã¦ãããé·ã®ãã¼ã¯ããªã¼ãã³ã³ããªã¼ãã®æå¹ã»ç¡å¹ãåãæ¿ãããã°ã«ã«ãªã£ã¦ãã¦ãç¡å¹ã«ããã¨éæ¢ç»ã§ã¯ãããã«ããã§ããã以ä¸ã®ç»é¢ã®ããã«ãªã¼ãã³ã³ããªã¼ããå¹ããªããªãã¾ãã
ãªã¼ãã³ã³ããªã¼ãã®è¨å®ã¯ã©ãã«ä¿æããã¦ãããï¼
Chrome ã®éçºè ãã¼ã«ãªã©ã§è¦ãã¨ããã«åããã¾ãããLocalStorage ã«ä¿æããã¦ãã¾ãã
liveAutocompleteDisabled
ã false
ã ã¨ãªã¼ãã³ã³ããªã¼ããæå¹ã«ãªãããã§ãã
ãªã¼ãã³ã³ããªã¼ããå¶å¾¡ãã¦ããã®ã¯ã©ã®ã³ã¼ããï¼
client/app/components/QueryEditor.jsx
㧠liveAutocompleteDisabled
ãæä½ãã¦ãã¾ãã
redash/QueryEditor.jsx at v6.0.0 · getredash/redash · GitHub
Redash ã¯ç¾å¨ Angular ãã React ã¸ã®ç§»è¡ãé²ãã¦ãã¦ãã¯ã¨ãªã¨ãã£ã¿å¨ãã v6.0.0 æç¹ã§ã¯ React ã®ã³ã³ãã¼ãã³ãã«æ¸ãæãã£ã¦ãã¾ãã
ãã®ã³ã³ãã¼ãã³ãã®ãªãã§ãªã¼ãã³ã³ããªã¼ãã®ãã¿ã³ãã¯ãªãã¯ããããã³ãã³ã³ãã¼ãã³ãã® State ã¨ä¸ç·ã«ãã©ã¦ã¶ã® Local Storage ãæ¸ãæãã¦ããããã§ãã
toggleAutocomplete
ã§å¼ã°ãã¦ãã localOptions.set
㯠Redash ç¬èªã®ãã®ã§ãWeb Storage API ãèãã©ãããããã®ã®ããã§ããã
redash/localOptions.js at v6.0.0 · getredash/redash · GitHub
ã¾ã¨ã
ã¾ã¨ãã¨æ¸ãã¤ã¤ãããã¨ãã£ãã¾ã¨ãã¯ããã¾ãããããªã¼ãã³ã³ããªã¼ãå¨ãã®å®è£ ãèªãã ãã¨ã§ãã¾ãå°ã Redash ã«ã¤ãã¦ã®ç解ãæ·±ã¾ãã¾ããã
ãããå ãã¤ã¼ãã®ããããªã®ã§ããããããéãã§ãã
ãç¥ãã
Redash ã«ã¤ãã¦ã®çåãªã©ã Twitter ã§æ¾ãããã¨ãããã®ã§ãããã§ããã°ãã©ã¼ã©ã ã¸ã®æ稿ããã¦ããã ããã¨ãããããã§ãï¼æ¥æ¬èªã§OKï¼