SearchBuilderOptions()/SearchPaneOptions() include unrelated Left Joins
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- backend-api-design
Research direction
Start with the SearchBuilderController.cs sample and trace how SearchBuilderOptions() and SearchPaneOptions() generate their queries and inherit joins. Compare the generated SQL with the joins declared for the field and the parent query. Done means unrelated LEFT JOIN clauses no longer appear in the search builder query.
Written by the indexing model from the issue text.
Description
In the samples SearchBuilderController.cs adding addition joins show up in that search builder query:
.Field(new Field("users.site")
.Options(new Options()
.Table("sites")
.Value("id")
.Label("name")
)
)
.Field(new Field("sites.name")
.SearchBuilderOptions(new SearchBuilderOptions()
.Label("sites.name")
.Value("sites.name")
.LeftJoin("sites", "sites.id", "=", "users.site")
)
)
.LeftJoin("sites", "sites.id", "=", "users.site")
.LeftJoin("user_dept", "users.id", "=", "user_dept.user_id")
SELECT sites.name as 'value', sites.name as 'label'
FROM users
LEFT JOIN sites ON sites.id = users.site
LEFT JOIN user_dept ON users.id = user_dept.user_id
GROUP BY sites.name
- Dominant language
- C#
- Stars
- 19
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataTables/NET
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
DataTables/NET#27 · 1 comment ·
-
Async methods? Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
DataTables/NET#25 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DataTables/NET#24 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DataTables/NET#18 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
DataTables/NET#16 · 1 comment ·
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·