-
Notifications
You must be signed in to change notification settings - Fork 50
[FIX] OT: Fix chart commands OT #6078
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
base: 16.0
Are you sure you want to change the base?
Conversation
ce32653
to
3f27f7b
Compare
Currently, we transform chart ranges upon the addition/deletion of headers in a sheet regardless if the range belongs to the said sheet. e.g. - given a chart with a range A1:A3 on sheet1 and a second A1:A3 on sheet2 - delete a the second row of sheet1 Both ranges are transformed and set to A1:A2. There is a double issue with the range on sheet2. 1. it's range zone is updated 2. the sheet prefix is removed, meaning that it no longer points towards the same sheet! Task: 4717724
3f27f7b
to
1ef25b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😔 sad day to be a command
let dataRangeZone: UnboundedZone | undefined; | ||
let sheetName: string | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let dataRangeZone: UnboundedZone | undefined; | |
let sheetName: string | undefined; | |
let newDataRange: string | undefined; |
nitpick, that way we don't have to have two let
variables hanging around
same in scorecard
src/plugins/core/chart.ts
Outdated
@@ -100,6 +100,7 @@ export class ChartPlugin extends CorePlugin<ChartState> implements ChartState { | |||
size: { width: fig.width, height: fig.height }, | |||
definition: chart.getDefinition(), | |||
sheetId: cmd.sheetIdTo, | |||
sheetMap: this.getters.getSheetMap(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We talked about filtering the map with only relevant sheet name to reduce the size. Is it annoying/not necessary ?
4306384
to
8112c7b
Compare
Task: 4717724
Description:
description of this task, what is implemented and why it is implemented that way.
Task: 4717724
review checklist