goadesign / goadesign/model

Filtered Views Example Broken

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
467
Forks
23
Avg merge
6m
Merged PRs (30d)
8

Description

I'm trying to figure out how to make a FilteredView, but I'm not understanding how it's done. I tried to run the example code provided for FilteredView from [here](https://github.com/goadesign/model/blob/2461d2ed73c9e307adfe0bc070b6950f82f56aac/dsl/views.go#L429-L444) but it errors out.

First, it complains that AutoLayout has the wrong number of arguments, so I set that to RankLeftRight to fix that issue. Next, it says `invalid use of FilteredView in views` and that's where I'm stuck in my own code. I'm not sure where to get the expr.View that it's expecting. The example uses SystemContextView, but that can't be right, it's a function so it can't implement the expr.View interface.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.