Re-organizing Projects Folders

Hey guys,

I'm thinking about running some changes to our main project. The first thing I thought is to re-organize the views/models into new folders. For example, this is how it's organized today:

  • client 1
    - models folder
    - views folder

  • client 2
    - models folder
    - views folder

...

I'm thinking about do this:

  • models
    - client 1 models folder
    - client 2 models folder
    - ...

  • Views
    - client 1 views folder
    - client 2 views folder
    - ...

I am using this doc as reference: https://github.com/brooklyn-data/co/blob/main/looker_style_guide.md#pr-template

Also, I would love to chat with you guys about best practices and tips. 😄

Solved Solved
0 6 1,377
1 ACCEPTED SOLUTION

Ok, that makes sense. I would structure it this way.

prabhakaran_mai_1-1688570724991.png

Model Folder - Same as you suggested

`views_and_explore`
- explores - I would like to have explores created in separate files, instead of creating all in Model files directly.
Read this article on setting up separate explores.

views
- base_views_folder - This will have common views that you would be using across all clients
- client_specific_folder - This will have additional views that are specific to the client, also it can have a customized version of the base tables (Think extension or refinements).

Also, read this article on Hub and Spoke model and see if this would make sense for your case.
https://www.googlecloudcommunity.com/gc/Technical-Tips-Tricks/Advanced-LookML-Hub-and-Spoke-modeling... 

Regards,
Prabha Arivalagan

View solution in original post

6 REPLIES 6