Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Business Intelligence with Looker Cookbook

You're reading from   Business Intelligence with Looker Cookbook Create BI solutions and data applications to explore and share insights in real time

Arrow left icon
Product type Paperback
Published in May 2024
Publisher Packt
ISBN-13 9781800560956
Length 256 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Khrystyna Grynko Khrystyna Grynko
Author Profile Icon Khrystyna Grynko
Khrystyna Grynko
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Chapter 1: Getting Started with Looker FREE CHAPTER 2. Chapter 2: Configuring Views and Models in a LookML Project 3. Chapter 3: Working with Data in Explores 4. Chapter 4: Customizing and Serving Dashboards 5. Chapter 5: Making Dashboards Interactive through Dynamic Elements 6. Chapter 6: Troubleshooting Looker 7. Chapter 7: Integrating Looker with Other Applications 8. Chapter 8: Organizing the Looker Environment 9. Chapter 9: Administering and Monitoring Looker 10. Chapter 10: Preparing to Develop Looker Applications 11. Index 12. Other Books You May Enjoy

Connecting Looker to Git

LookML projects are version-controlled using Git, which allows LookML developers to track changes, collaborate on the project, see the history, revert to previous versions, and configure CI/CD.

Getting ready

Make sure you are on your LookML project (Figure 1.24). To get to your LookML environment, you can click on the menu on the left (the Explore, Develop, and Admin tabs), then click on Develop and choose your project (test_project in our case).

How to do it...

The steps for this recipe are as follows:

  1. On your LookML page, click on Configure Git in the upper right-hand corner of the page (almost any Git provider will work, including GitHub, GitLab, and Bitbucket).
Figure 1.25 – Configure Git

Figure 1.25 – Configure Git

  1. If you don’t yet have a Git repository where you want your LookML project to live, you can click on Set up a bare repository instead (Figure 1.25).

Important note

For secure and reliable version control, consider using your own Git repository hosted outside of your Looker server. This ensures that your LookML code and its history are safe, even if something happens to the Looker instance or server.

  1. On the Configure Bare Git Repository page, click on Create Repository.
  2. After clicking on Create Repository, click on Back to project.

How it works...

Once your LookML project is connected to Git, you can start tracking changes to your files. Any changes you make will be saved to your local Git branch. When you are ready to share your changes with other developers, you can push your branch to the remote repository.

Other developers can then pull your changes to their local branches and merge them into their own work. If there are any conflicts, Git will help you to resolve them.

When you are ready to deploy your changes to production, you can merge your development branch into the production branch. Looker will then automatically deploy the latest changes to your production environment.

There’s more...

You can use your existing Git repository for Looker. For this, provide your repository URL on the Configure Git page (Figure 1.25). You can create a new repository on one of the supported Git platforms: GitHub, GitLab, Bitbucket, Phabricator Diffusion and others.

On the Configure Git page (Figure 1.25), there are links to the instructions on how to create your repository in any of the listed Git platforms.

You have been reading a chapter from
Business Intelligence with Looker Cookbook
Published in: May 2024
Publisher: Packt
ISBN-13: 9781800560956
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image