Skip to content

Conversation

@dehru
Copy link
Contributor

@dehru dehru commented Feb 3, 2021

What does this PR do?

When there is only one condition in the Filter section of the SOQL builder, and it is removed with the X button, the condition inputs should be cleared. This should be triggered when the app externally sets the condition to the default condition template value (no field, '=' operator, no value). The condition is set appropriately, but none of the display values that were being tracked in order to trigger re-rendering of the component. This PR adds a @track annotation to the _criteriaDisplayValue to force the component to render when the condition is set.

What issues does this PR fix or reference?

@W-8827875@

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #166 (d050fff) into develop (cc8e85c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #166   +/-   ##
========================================
  Coverage    94.44%   94.44%           
========================================
  Files           64       64           
  Lines         2519     2519           
  Branches       647      647           
========================================
  Hits          2379     2379           
  Misses         138      138           
  Partials         2        2           
Flag Coverage Δ
language-server 98.32% <ø> (ø)
soql-builder-ui 90.76% <ø> (ø)
soql-model 96.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rybuilder/whereModifierGroup/whereModifierGroup.ts 87.24% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc8e85c...d050fff. Read the comment docs.

@dehru dehru changed the title Jg/remove condition bug fix Track to force render on condition change - fix rebase conflict Feb 3, 2021
@dehru dehru merged commit 64d07e9 into develop Feb 3, 2021
@dehru dehru deleted the jg/removeConditionBug-fix branch February 3, 2021 23:49
dehru added a commit that referenced this pull request Feb 5, 2021
* Jhork: Support for Simple WHERE Expressions (#101)
* move rule to css common (#108)
* Preventing webview re-rendering when soql statement has not changed (#105)
* Revert "Disable WHERE in model (#113)"
* Type-aware where (#109)
* Fix preview not updating when autosave is off - issue 120 (#125)
* Recognize recoverable where errors (#116)
* Operator and Criteria Error Tooltips (#122)
* Support IN, NOT IN, INCLUDES, EXCLUDE operators (#123)
* Add smarter completin on GROUP BY clause and WHERE literals (#126)
* Feature/custom select (#148)
* Jhork/custom select fields (#111)
* Jhork/custom select from (#130)
* Jhork/custom select order by (#134)
* set the error overlay to be on top of all other form elements (#150)
* prepare to publish 0 .0.30 (#151)
* Feature/where (#154)
* Jhork: Support for Simple WHERE Expressions (#101)
* move rule to css common (#108)
* Preventing webview re-rendering when soql statement has not changed (#105)
* Revert "Disable WHERE in model (#113)"
* Type-aware where (#109)
* Recognize recoverable where errors (#116)
* Operator and Criteria Error Tooltips (#122)
* Support IN, NOT IN, INCLUDES, EXCLUDE operators (#123)
* Revert "Feature/where (#154)" (#157)
* Add support for line comments ( `//` ) at the top of SOQL files (#132)
* Jhork/where custom select (#161)
* Fix: 'undefined' in SOQL string (#162)
* Clear tooltip when object changes, fix empty soql statement error blocker (#165)
* Track to force render on condition change - fix rebase conflict (#166)
* do not send event when user still adding input' (#169)
* Jhork/clear modifier field bug fix (#168)
* handle a option selection event (#178)
* cler tooltip error when X is clicked (#180)
* Jhork/workflow updates (#163)
* Bump versions for release (#181)

Co-authored-by: Jonny Hork <jhork@salesforce.com>
Co-authored-by: dehru <599418+dehru@users.noreply.github.com>
Co-authored-by: Dehru Cromer <dehru.cromer@salesforce.com>
Co-authored-by: Fernando Dobladez <fernandodobladez@salesforce.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants