Skip to content

Conversation

@dobladez
Copy link
Contributor

@dobladez dobladez commented Feb 3, 2021

What does this PR do?

Fix spurious "undefined" string appearing when on SOQL query generation with no comments

What issues does this PR fix or reference?

W-8611529

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #162 (4f6cbe4) into develop (5bfbb2a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #162   +/-   ##
========================================
  Coverage    94.69%   94.69%           
========================================
  Files           64       64           
  Lines         2505     2506    +1     
  Branches       636      638    +2     
========================================
+ Hits          2372     2373    +1     
  Misses         131      131           
  Partials         2        2           
Flag Coverage Δ
language-server 98.32% <ø> (ø)
soql-builder-ui 91.34% <100.00%> (+<0.01%) ⬆️
soql-model 96.39% <100.00%> (ø)

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

Impacted Files Coverage Δ
...-ui/src/modules/querybuilder/services/soqlUtils.ts 84.00% <100.00%> (+0.12%) ⬆️
...es/soql-model/src/model/impl/headerCommentsImpl.ts 100.00% <100.00%> (ø)

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 5bfbb2a...4f6cbe4. Read the comment docs.

Copy link
Contributor

@jgellin-sf jgellin-sf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The truthy check in soqlUtils.ts is probably enough to fix the immediate issue, but the additional checks should protect against future problems.

Copy link
Contributor

@dehru dehru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This passes Qa for me

@dehru dehru merged commit c31be3b into develop Feb 3, 2021
@dehru dehru deleted the fix/soql-header-comments-undefined branch February 3, 2021 22:32
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.

3 participants