Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in General Database Executor and Code Exporting #374

Merged
merged 26 commits into from
May 6, 2021

Commits on Apr 17, 2021

  1. Update to executor documentation. (lux-org#363)

    Co-authored-by: 19thyneb <thyne.boonmark@gmail.com>
    Co-authored-by: Doris Lee <dorisjunglinlee@gmail.com>
    Co-authored-by: NiStannum <52202164+NiStannum@users.noreply.github.com>
    4 people committed Apr 17, 2021
    Configuration menu
    Copy the full SHA
    084cf77 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2021

  1. "All-column" vis when only few columns in dataframe lux-org#199 (lux-…

    …org#336)
    
    Co-authored-by: Caitlyn Chen <caitlynachen@berkeley.edu>
    Co-authored-by: Doris Lee <dorisjunglinlee@gmail.com>
    3 people committed Apr 18, 2021
    Configuration menu
    Copy the full SHA
    d6cca26 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2021

  1. documentation and cleaning

    * added notebook gallery
    * update README
    * removed scatterplot message in SQLExecutor
    * fixed typo in SQL documentation
    dorisjlee committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    e3a283c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    658c236 View commit details
    Browse the repository at this point in the history
  3. bump version

    dorisjlee committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    4d8899b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1dbbcb9 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Update Metadata Handling

    thyneb19 committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    5c6935f View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2021

  1. Added LuxTracer

    The LuxTracer can be used to keep track of executed code. It is currently being used in the executors to track which lines of code were used to generate individual charts' data.
    thyneb19 committed Apr 25, 2021
    Configuration menu
    Copy the full SHA
    c0ff273 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2021

  1. Added GeneralDatabaseExecutor

    This executor uses SQL query templates from a specified query file. Rather than having hard coded queries written in the executor itself, this executor leaves the query writing to users.
    
    Currently works with Postgresql.
    thyneb19 committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    7d79328 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2021

  1. Added additional code parameters to Vis objects

    Added the _trace_code and _query parameters to Lux Vis objects. The _trace_code parameter will store the code used to execute the Vis data, and the _query parameter will store the SQL query used to first aggregate the data for the Vis in the SQLExecutor case.
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    3a7d0b6 View commit details
    Browse the repository at this point in the history
  2. Updated Lux Tracing

    Lux now only traces the code when a user calls the to_code() function of a Vis object. It does so by starting the tracer and re-executing the Vis object.
    Cleaned up handling of for loops in the tracing processor.
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    8c380bc View commit details
    Browse the repository at this point in the history
  3. Update PandasExecutor.py

    Vis objects' _source parameter is now set within the execution function.
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    96cb9f0 View commit details
    Browse the repository at this point in the history
  4. Update test_pandas_coverage.py

    Updated the compare_vis() function to use .equals to compare the source dataframes.
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    6ef2e52 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c504998 View commit details
    Browse the repository at this point in the history
  6. Update AltairRenderer.py

    Fixed bug where found_variable could be an empty list and was not set to "df"
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    fb3b908 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8efea47 View commit details
    Browse the repository at this point in the history
  8. Started work on MYSQL generalized database executor

    Added functionality with scatter and bar charts. The query template file for compatibility with MYSQL is also included
    thyneb19 committed Apr 27, 2021
    Configuration menu
    Copy the full SHA
    f252c6a View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2021

  1. Updated GeneralDatabaseExecutor

    Updated to work with the MySQL case, need to change how the executor uses quotations around different Database queries.
    
    Updated the MySQL query template
    thyneb19 committed Apr 28, 2021
    Configuration menu
    Copy the full SHA
    7f36df7 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. Updated Lux Code Tracing

    Needed to update Executor files' code format to remove wrapped lines of code.
    
    Fixed code formatting for the Pandas executor visualizations.
    thyneb19 committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    d21b102 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2021

  1. Update PandasExecutor.py

    Changed the line formatting to fit the Lux Tracing use case
    thyneb19 committed May 1, 2021
    Configuration menu
    Copy the full SHA
    19ceaf4 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2021

  1. Configuration menu
    Copy the full SHA
    8bba390 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03cc858 View commit details
    Browse the repository at this point in the history
  3. Cleaned up Executors

    Removed unnecessary commented lines
    thyneb19 committed May 3, 2021
    Configuration menu
    Copy the full SHA
    121d6fb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b802545 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2021

  1. Update to General Database Executor and Query Templates

    Added in variable names to the templates to make it clearer what the inputs need to be
    thyneb19 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    db649fa View commit details
    Browse the repository at this point in the history
  2. Update Lux Config to default to SQL Executor

    When a SQL connection is made to the Lux config, now defaults to using the Postgres SQLExecutor rather than the GeneralDatabaseExecutor
    thyneb19 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    4c5632c View commit details
    Browse the repository at this point in the history