looker-open-source / pylookml

A pythonic api for automatic lookml
https://pylookml.readthedocs.io/en/latest/introduction.html
MIT License
45 stars 23 forks source link

Feature Request: Stage Commits and Deploy to master once #29

Open bryan-at-looker opened 4 years ago

bryan-at-looker commented 4 years ago

I'm looking for a way to stage all my files into a branch, preferably in one commit,

I'm writing many LookML files (>100) as part of an automation flow. At the end of file creation, I have an array of File classes that I want to push to production.

# files is an array of lookml.File class
for f in files:
  f.put()

This will commit and push one file to master and use the looker deploy webhook, which means looping through we're doing this 100+ times. In an ideal world there is an example or functionality of having a branch to write to, preferably each file update on the same commit, and one push to production and one deploy webhook