Code Monkey home page Code Monkey logo

app-data-dictionary's Introduction

Data Dictionary Extension

Usage

  • Install dependencies with Yarn: yarn install

  • To run a development server: yarn start

    In manifest for a LookML project on your Looker instance:

    application: data-dictionary-dev {
      label: "Data Dictionary (dev)"
      uri: "http://localhost:8080/bundle.js"
      entitlements: {
        local_storage: yes
        navigation: yes
        new_window: yes
        core_api_methods: ["run_inline_query", "lookml_model_explore", "all_lookml_models", "all_users", "me", "search_groups"]
      }
    }
    

    And you will also need to add a dummy model to the project.

      connection: "thelook"
    
  • To do a build: yarn build (You should commit the built file.)

Looker Data Dictionary Extension

It uses React and TypeScript for writing your extension, the React Extension SDK for interacting with Looker, and Webpack for building your code.

Getting Started for Development

  1. Clone or download a copy of this repo to your development machine

  2. Navigate (cd) to the template directory on your system

  3. Install the dependencies with Yarn.

    yarn install
    

    You may need to update your Node version or use a Node version manager to change your Node version.

  4. Start the development server

    yarn develop
    

    The extension is now running and serving the JavaScript at http://localhost:8080/bundle.js.

  5. Now log in to Looker and create a new project.

    This is found under Develop => Manage LookML Projects => New LookML Project.

    You'll want to select "Blank Project" as your "Starting Point". You'll now have a new project with no files.

  6. In your copy of the extension tablet you have manifest.lkml file.

    You can either drag & upload this file into your Looker project, or create a manifest.lkml with the same content. Change the id, label, or url as needed.

    application: data-dictionary {
      label: "Data Dictionary"
      url: "http://localhost:8080/bundle.js"
      entitlements: {
        local_storage: yes
        navigation: yes
        new_window: yes
        core_api_methods: ["run_inline_query", "lookml_model_explore", "all_lookml_models", "all_users", "me", "search_groups"]
      }
    }
    
  7. Create a model LookML file in your project. Use the name of the project as the model name (this is a convention).

    • Add a connection in this model. It can be any connection, it doesn't matter which.
    • Configure the model you created so that it has access to some connection.
  8. Connect your new project to Git.

  9. Commit your changes and deploy your them to production through the Project UI.

  10. Reload the page and click the Browse dropdown menu. You should see your extension in the list.

    • The extension will load the JavaScript from the url you provided in the application definition/
    • Reloading the extension page will bring in any new code changes from the extension template. (Webpack's hot reloading is not currently supported.)

Deployment

The process above requires your local development server to be running to load the extension code. To allow other people to use the extension, we can build the JavaScript file and include it in the project directly.

  1. In your extension project directory on your development machine you can build the extension with yarn build.
  2. Drag and drop the generated dist/bundle.js file into the Looker project interface
  3. Modify your manifest.lkml to use file instead of url:
    application: data-dictionary {
     label: "Data Dictionary"
     uri: "http://localhost:8080/bundle.js"
     entitlements: {
       local_storage: yes
       navigation: yes
       new_window: yes
       core_api_methods: ["run_inline_query", "lookml_model_explore", "all_lookml_models", "all_users", "me", "search_groups"]
     }
    }
    

app-data-dictionary's People

Contributors

annaserova avatar brln-looker avatar bryans99 avatar dependabot[bot] avatar fabio-looker avatar itzaprado avatar jeremytchang avatar noahamac avatar wilg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-data-dictionary's Issues

Bad Transaction Key in front of model name

Hello. My client is using the marketplace version of the data dictionary but someone here mentioned to submit this question here. Is there a reason that we see this in front of the model name
Capture

[Fix for inaccurate measure definitions] Include filters defined within a measures' LookML to the 'About this Field' section in the Data Dictionary

I'm hoping this is a relatively simple add - can anyone help with including the filters defined within the LookML of a measure to the information included in the Looker Data Dictionary? Without including the filters the definitions for any measures with filters are inaccurate and misleading. Here's an example:

LookML: I define the measure with filters for the measure Assigned Requests Count here:

Look ML example

Data Dictionary: There is no filter information included within the Data Dictionary for the same measure. This makes it look like the measure is a count distinct on all interaction_ids when it is actually a count distinct filtered on three separate dimensions.

data dictionary example

Ask: To fix this I want to add a section to the 'About this Field' section in the data dictionary that includes the filter information - what is the simplest way to do this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.