HUE-9369 [editor] Configuration to auto install sample queries and tables

Review Request #15218 — Created June 8, 2020 and submitted

romain
hue
master
HUE-9369
hue
johan, ranade, romain, Sreenath, yingc
commit 9185c050735da4e35d640b89ae7d739a6ad048e4
Author: Romain <romain.rigaux@gmail.com>
Date:   Thu Jun 4 10:08:15 2020 -0700

    HUE-9369 [editor] Configuration to auto install sample queries and tables
    
    At each startup (note: assumes connectivity with DB works) Hue will check and install those.
    
    Bit simpler, by default assuming the dialect list from the installed connectors.
    Assumes we improve examples format with a name id.
    
    Automatically filter out examples per dialect (already done).
    Take the opportunity to add required tables into the query sample data.
    
    e.g.
    
    [notebook]
      [[examples]]
      auto_load=true
      queries='Sample: Top salary', 'Queries 2'
      tables=
    
      [[interpreters]]
      ....

:100644 100644 b78a4f2e97 9ec2f401d3 M	apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
:100644 100644 f84a4b1b47 98aba1971b M	desktop/core/src/desktop/models.py
:100644 100644 1854b36356 bdb7cc7788 M	desktop/libs/notebook/src/notebook/__init__.py
:100644 100644 b679c1e020 5be9e05ddc M	desktop/libs/notebook/src/notebook/api.py
:000000 100644 0000000000 fdf40a9338 A	desktop/libs/notebook/src/notebook/apps.py
:100644 100644 d92f50266d 84eeea98fc M	desktop/libs/notebook/src/notebook/conf.py
:100644 100644 59a68f35f9 dd7cedf126 M	desktop/libs/notebook/src/notebook/models.py
:000000 100644 0000000000 d9294a7fb8 A	desktop/libs/notebook/src/notebook/models_tests.py

New test suite

johan
  1. Ship It!
  2. 
      
romain
Review request changed

Status: Closed (submitted)

Loading...