Git Product home page Git Product logo

data-mode's Introduction

mode logo


Welcome!

Welcome to the beta version of the Mode-GitHub integration. The purpose of this beta is to gather your input and improve the final version of this feature. We will be making improvements as we go, so please note that this version does not represent the final build. Please direct feedback to the #github-early-access channel in the Mode Customers Slack team or via email to [email protected].

Thanks for participating!

Overview

With this integration, you will be able to connect Mode to a GitHub repo of your choice. This will create a two-way sync between Mode and GitHub, where changes made in Mode can be pushed to the GitHub repo, and changes made in GitHub will automatically push to Mode.

Mode -> GitHub

Edit reports in Mode as usual. When you are ready to sync changes to GitHub, click Report > Push to GitHub, enter a commit messages to describe the changes and your updates will be pushed to GitHub.

GitHub -> Mode

Any commit to master in your GitHub repo will automatically trigger a sync to Mode. You can commit changes directly to master or create a branch in GitHub to work on code without impacting production reports. Changes must be committed to master in order to be reflected in Mode.

Changes to this README won't be synced to any content in Mode, so feel free to edit and update it as needed.

Repository Structure

When initialized, the repository will be structured as shown below:

Mode/                          // All Mode orgs get installed into "Mode" directory in the repo
├── org-foo/                   // Directory name is org username
|  ├── definitions/
|  |  ├── definition-1.sql
|  |  └── definition-2.sql
|  ├── spaces/
|  |  └── space_foo/
|  |      ├── report_foo.token/
|  |      |   ├── query-1.token.sql
|  |      |   ├── query-2.token.sql
|  |      |   ├── index.html
|  |      |   ├── settings.yml
|  |      |   └── python-notebook/
|  |      |       ├── cell-1.token.py
|  |      |       └── cell-2.token.py
|  |      ├── report_bar.token/
|  |      |   ├── query-1.token.sql
|  |      |   ├── query-2.token.sql
|  |      |   ├── index.html
|  |      |   ├── settings.yml
|  |      |   └── python-notebook/
|  |      |       ├── cell-1.token.py
|  |      |       └── cell-2.token.py
|  |      └── archived/
|  |          └──report_old.token/
|  |             ├── query-1.token.sql
|  |             ├── query-2.token.sql
|  |             ├── index.html
|  |             └── settings.yml
|  ├── themes/
|  |  ├── theme-1.css
|  |  └── theme-2.css
|  └── README.md

All code synced from your Mode Analytics organization to your Github repository will be stored under a top-level directory called 'Mode'. This is to allow you to nest other analytics code (e.g. dbt, airflow, etc.) within this repository.

Repository Contents

What gets synced when you initialize your Mode/GitHub integration?

  • Spaces - All shared and private Spaces will be automatically synced. No personal or community Spaces will be synced.
  • Reports - All reports in applicable spaces.
  • Themes - All report themes.
  • Definitions - All definitions.

User Administration

Please also note that administration of users will be up to you. Anyone making changes through the Mode UI can sync those changes. However, if users want to make changes in GitHub they'll need to be added to the repo in GitHub.

Visibility of your GitHub Repository

  • If you have non-Mode data in the GitHub repository used for the Mode-GitHub integration, please be aware that Mode has visibility to the entire repository.
  • Reports in private spaces will be synced to your GitHub repo. Anyone with access to the GitHub repo will be able to see the files associated with these reports (though they still won't have access to the reports in Mode unless they're added to the corresponding spaces).

Important notes

Please do not start your commit messages with [Mode] as this could cause the integration to malfunction.

Additional Documentation

For help getting set up, see Setting up GitHub to integrate with Mode.

For details about how the integration works, see Using Mode with GitHub.

data-mode's People

Contributors

samenovak avatar tayloramurphy avatar

Watchers

 avatar

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.