LookML view · dating-platform
The proposition_templates view: date idea templates with a fallback name rule
At a glance
Does Reads proposition templates: category, location, featured and official flags, created, expires and deleted dates, and a display name . One measure: count . Trust: Source-defined
Why A catalogue of date ideas that users can propose. The enterprise model explores it as date_ideas, joined to the propositions made from each template. Trust: InferredGrain One row per template. id is the primary key. Trust: Source-defined
Source dating_platform/proposal_templates.view.lookml 120 lines
Source: proposal_templates.view.lookml L1-10
Shape Trust: Source-defined
Every field as declared, with the dashboard tiles that read it. Computed from the source; nothing here is edited.
Table: ${TABLE}.proposition_templates
Relationships Trust: Source-defined
No joins, no upstream views and no dashboard tiles reference this view. It is an island in the model.
Relationships of proposition_templates
Text version proposition_templates is the base view of date_ideas: base view
Worth noticing
Names fall back to the slug Trust: Source-defined
name uses name when present, otherwise it turns slug into title case, so wine-tasting reads Wine Tasting.
Source: proposal_templates.view.lookml L77-79
Explored under another name Trust: Source-defined
The enterprise model exposes this view as the date_ideas explore and joins propositions on proposition_template_id.
Source: enterprise.model.lookml L49-54
What can change the answer 3
!
Caution: Template counts fan out in date_ideasTrust: Inferred
date_ideas joins propositions with no relationship, so Looker assumes many_to_one. One template has many propositions, so template rows repeat and are not deduplicated.
What goes wrong: Template count turns into a proposition count as soon as a propositions field is selected.
Read the guide: Join fanout
Source: enterprise.model.lookml L49-54
!
Caution: featured is both a yes/no and a time groupTrust: Source-defined
featured is a yes/no dimension over featured, and featured is also declared as a dimension_group over featured_at.
What goes wrong: References to featured can land on the flag or on the timeframes, so filters may not mean what the author intended.
Source: proposal_templates.view.lookml L40-50
i
Note: Table name built on the TABLE placeholderTrust: Inferred
sql_table_name: ${TABLE}.proposition_templates uses ${TABLE} inside its own definition, as the messages view does.
Source: proposal_templates.view.lookml L1-3
Parser checks 1 Trust: Source-defined
Mechanical findings from parsing the LookML. They are facts about the files. The cards above explain which ones matter.
Show all 1 check
name-collision 1 proposal_templates.view.lookml:43 proposition_templates.featured is declared as both dimension and dimension_group.
Related
Guides built on this file Related source files Source model