Skip to content

remove calculation data from spreadsheet copy - #4160

Open
EtienneLt wants to merge 3 commits into
mainfrom
remove-calculation-from-spreadsheet-copy
Open

remove calculation data from spreadsheet copy#4160
EtienneLt wants to merge 3 commits into
mainfrom
remove-calculation-from-spreadsheet-copy

Conversation

@EtienneLt

Copy link
Copy Markdown
Contributor

PR Summary

remove calculation data (average, sum, ...) when copying a sheet from the tab.

Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
@EtienneLt EtienneLt self-assigned this Aug 21, 2026
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Warning

Your free Security trial is over. An organization admin can activate billing to continue.

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@EtienneLt, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d9208159-4b67-46b4-ab26-079614eeae96

📥 Commits

Reviewing files that changed from the base of the PR and between 9b56967 and 7b6e9d7.

📒 Files selected for processing (1)
  • src/components/spreadsheet-view/spreadsheet/spreadsheet-toolbar/save/save-spreadsheet-button.tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
@sonarqubecloud

Copy link
Copy Markdown

},
};

return isCopy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you don't need to define cont varaiable isCopy, you can used directly like
csvCase === SpreadsheetSaveOptionId.COPY_CSV ?
gridRef.current?.api.getDataAsCsv(exportParams)
: gridRef.current?.api.exportDataAsCsv(exportParams);

const gridCsvFunction = (params?: any) => {
const exportParams = {
...params,
shouldRowBeSkipped: (rowParams: any) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

(owParams: ShouldRowBeSkippedParams)

? gridRef.current?.api.getDataAsCsv
: gridRef.current?.api.exportDataAsCsv;
const isCopy = csvCase === SpreadsheetSaveOptionId.COPY_CSV;
const gridCsvFunction = (params?: any) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i guess the type here (params?: ValueGetterParams)

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