Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pu/mergeall #667

Merged
merged 85 commits into from
May 14, 2021
Merged

Pu/mergeall #667

merged 85 commits into from
May 14, 2021

Conversation

izulin
Copy link
Collaborator

@izulin izulin commented May 7, 2021

Context

Merge of PR #628 #629 #630 #652

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature or improvement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Additional language file or change to the existing one (translations)

Related issue(s):

Checklist:

  • My code follows the code style of this project,
  • My change requires a change to the documentation,
  • I described the modification in the CHANGELOG.md file.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented May 7, 2021

This pull request introduces 12 alerts and fixes 4 when merging 6a07bf1 into cf800ce - view on LGTM.com

new alerts:

  • 12 for Unused variable, import, function or class

fixed alerts:

  • 4 for Unused variable, import, function or class

@codecov
Copy link

codecov bot commented May 12, 2021

Codecov Report

Merging #667 (7e3d1d5) into develop (e624cc3) will increase coverage by 0.00%.
The diff coverage is 98.63%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #667   +/-   ##
========================================
  Coverage    92.43%   92.44%           
========================================
  Files          167      167           
  Lines        39090    39102   +12     
  Branches      3563     3565    +2     
========================================
+ Hits         36134    36146   +12     
  Misses        2950     2950           
  Partials         6        6           
Impacted Files Coverage Δ
src/Evaluator.ts 77.38% <60.00%> (ø)
src/Config.ts 98.81% <100.00%> (+0.01%) ⬆️
src/Lookup/ColumnBinarySearch.ts 92.30% <100.00%> (+0.50%) ⬆️
src/Lookup/RowSearchStrategy.ts 97.56% <100.00%> (+0.12%) ⬆️
src/interpreter/Interpreter.ts 56.52% <100.00%> (ø)

@@ -6,6 +6,7 @@
import {SimpleCellAddress} from '../../Cell'
import {RawCellContent} from '../../CellContentParser'
import {EmptyValue, InterpreterValue} from '../../interpreter/InterpreterValue'
import {Maybe} from '../../Maybe'
Copy link
Contributor

Choose a reason for hiding this comment

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

Added line is not used.

BTW EmptyCellVertex is also imported but never used can be removed as well

Copy link
Contributor

Choose a reason for hiding this comment

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

Or should the getCell type be updated?

- getCell(address: SimpleCellAddress): CellVertex | null
+ getCell(address: SimpleCellAddress): Maybe<CellVertex>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let us do the cleanup of imports: once, automatically, on the develop, once all the branches are merged. Webstorm can do this, but this will touch basically all the files. If we do it here, it will be hell to merge with follow-up branches.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Or should the getCell type be updated?

- getCell(address: SimpleCellAddress): CellVertex | null
+ getCell(address: SimpleCellAddress): Maybe<CellVertex>

at one point yes. This is on my internal todo-list.

src/Config.ts Outdated Show resolved Hide resolved
Comment on lines 161 to 163
expect(engine.getCellFormula(adr('A4'))).toEqual(undefined)
expect(engine.getCellFormula(adr('B3'))).toEqual(undefined)
expect(engine.getCellFormula(adr('B4'))).toEqual(undefined)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to check those cells? Is the description correct, matrix not array?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we'll do big unification of naming, also on internal todo list

])

expect(engine.getCellValue(adr('A1'))).toEqualError(detailedError(ErrorType.ERROR, ErrorMessage.ParseError))
expect(engine.getCellFormula(adr('A1'))).toEqual('{=TRANSPOSE(}')
expect(engine.getCellFormula(adr('A1'))).toEqual('=TRANSPOSE(')
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this tests is a duplicate of parse error above? Is the description correct with matrix and not array?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

afair fixed in the followup branch

src/Lookup/RowSearchStrategy.ts Outdated Show resolved Hide resolved
izulin and others added 4 commits May 14, 2021 17:04
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
Copy link
Contributor

@wojciechczerniak wojciechczerniak left a comment

Choose a reason for hiding this comment

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

Thanks for addressing all my comments

src/Config.ts Outdated Show resolved Hide resolved
@lgtm-com
Copy link
Contributor

lgtm-com bot commented May 14, 2021

This pull request introduces 1 alert and fixes 1 when merging 4c2851a into e624cc3 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link
Contributor

lgtm-com bot commented May 14, 2021

This pull request introduces 1 alert and fixes 1 when merging 7e3d1d5 into e624cc3 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@izulin izulin merged commit a4f6ee6 into develop May 14, 2021
@izulin izulin deleted the pu/mergeall branch May 14, 2021 18:57
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