Skip to content

[Bug] Сopying a sheet and styles #5967

@kenny-not-dead

Description

@kenny-not-dead

Before you submit this issue, have you checked the following

  • Is this really a problem?
  • I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

latest

Reproduction link

I hope I can describe this problem correctly, perhaps you may have similar behavior on your backend

When I enter data or apply a set of styles, when I subscribe to events, sheet.mutation.set-range-values ​​is generated. For example, taking applying a background, the event would look something like this:

Image

As we can see from this, there is information only about the style itself (without any style ID), and there are no events about creating a style by ID, which I will draw attention to below.

After clicking on Copy Sheet, the sheet.mutation.insert-sheet event is generated, the event would look something like this:

Image

Here it is necessary to pay attention to this part

Image

As you can see, the style in this cell was set by ID, by the way, it is the same cell to which we applied the background above. but, in this event there is nothing about this style by ID, there is no event before or after that could intificate it either

thus, it is currently impossible to obtain any information about the created style by its ID from events

I think this can be solved in two ways:

  • adding a separate event for the created style, specifying its ID
  • adding an array of styles by ID to the existing copy sheet event so it can be compared
  • replacing the style ID with specific style values

I could be wrong, but it seems to me that you may have a similar problem with your backend, especially if change events are recorded by the backend based on events received via a web socket.

Expected behavior

When reading events over a web socket, you can understand the generated style by its ID.

Actual behavior

When copying a sheet, the style is written as an ID, however, there are no events of its own or mentions in the event

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions