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

Fix row duplicate mechanism #729

Merged
merged 28 commits into from
Nov 15, 2020
Merged

Fix row duplicate mechanism #729

merged 28 commits into from
Nov 15, 2020

Conversation

EugeneAndrosovPaser
Copy link
Contributor

@EugeneAndrosovPaser EugeneAndrosovPaser commented Nov 14, 2020

Fix row duplication mechanism

Description

When you want to copy row - formulas copied as a reference from the previous row. If you want to change formulas in the current row they also would be changed in the original row.

Motivation and Context

This fix makes a deep copy of the original row to prevent its behavior.

How Has This Been Tested

It was tested manually and using it in my project.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

EugeneAndrosovPaser and others added 28 commits August 19, 2020 13:38
Add header options to pivot table opts
Add Style name options to pivot table opts
Add header options to pivot table opts
Add Style name options to pivot table opts
…ovided. (qax-os#708)

fix to create pivot table in case there is no input from Columns

Co-authored-by: Jin Kim <jinhyuk.kim@cerence.com>
Co-authored-by: xuri <xuri.me@gmail.com>
* extend cell value load to support custom datetime format

* cleanup incorrect imports

* fix numeric values conversion as done in legacy Excel

* fix tests coverage

* revert temporary package name fix

* remove personal info from test XLSX files

* remove unused dependencies

* update format conversion in parseTime

* new UT to increase code coverage

* Resolve code review issue for PR qax-os#703

* Rename broken file name generated by unit test

Co-authored-by: xuri <xuri.me@gmail.com>
* use io.Copy from stream temp file to zip Writer

* fix nil

* log

* build

* delete log

* fix compatibility for office

* Update go module

Co-authored-by: lijingfeng <lijingfeng@laiye.com>
Co-authored-by: xuri <xuri.me@gmail.com>
…ith KingSoft WPS

- Avoid to create duplicate style
- Update unit test for the auto filter
- Init code scanning alerts
… lexer panic on retrieving the top token type
…ex returned by NewSheet in some case, fix panic on formatted value with no built-in number format ID
* optimize marshal

* optimize mem alloc

* add benchmark testing

* add NewSheetWithRowNum testing

* sync struct fields order

* add BenchmarkNewSheetWithStreamWriter

* delete NewSheetWithRowNum and benchmark test
Add header options to pivot table opts
Add Style name options to pivot table opts
# Conflicts:
#	go.mod
#	go.sum
#	sheetpr_test.go
@codecov-io
Copy link

codecov-io commented Nov 14, 2020

Codecov Report

Merging #729 (f722a63) into master (2514bb1) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #729   +/-   ##
=======================================
  Coverage   96.72%   96.72%           
=======================================
  Files          31       31           
  Lines        8571     8571           
=======================================
  Hits         8290     8290           
  Misses        160      160           
  Partials      121      121           
Impacted Files Coverage Δ
rows.go 94.35% <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 2514bb1...f722a63. Read the comment docs.

@xuri xuri merged commit 2be4bfd into qax-os:master Nov 15, 2020
@xuri
Copy link
Member

xuri commented Nov 15, 2020

LGTM, thanks for your PR.

@xuri xuri added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 15, 2020
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants