drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Confluence: Action to hide all layers and show one layer gets a refresh issue

Open mawid6 opened this issue 2 years ago • 5 comments

Preflight Checklist

  • [x ] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug Creating an action to hide all cells/layers, except one. Clicking that action: it updates the layer palette correctly, but all cells remain hidden.

To Reproduce Steps to reproduce the behavior:

  1. Create or use drawing with a few layers.
  2. Add an element (button) and add an action. Set action as below:
  3. Test action.

Expected behavior Elements in excluded layer appears.

Actual: Everything is hidden, nothing appears. But layers palette is correctly updated and shows the excluded layers as visible.

Code:

data:action/json,{
  "actions": [
    {
      "hide": {
        "cells": [
          "*"
        ],
        "excludeCells": [
          "1",
          "MxYWe1OhUYw2CJvPoIkA-9"
        ]
      }
    }
  ]
}

Screenshots

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 20.3.0

Desktop (please complete the following information):

  • OS: win Microsoft Windows [Version 10.0.19044.2728]
  • Browser chrome
  • Version 111.0.5563.111 (Official Build) (64-bit)

mawid6 avatar Mar 28 '23 11:03 mawid6

Thanks @mawid6, I was researching why this was happening to me, and stumbled across your post. Im having the exact same issue!

gax384 avatar Apr 12 '23 10:04 gax384

Similar issue for me on draw.io for Confluence Cloud. :(

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug When all layers and tags are visible and the below action is executed, all layers are hidden.

data:action/json,{
  "actions": [
    {
      "hide": {
        "tags": [
          ""
        ]
      }
    },
    {
      "show": {
        "tags": [
          "1"
        ]
      }
    }
  ]
}

To Reproduce Steps to reproduce the behavior:

  1. Create a new draw.io diagram in Confluence
  2. Create two or more layers with one of more shapes in each.
  3. Create a rectangle in either layer.
  4. Right-click rectangle and select Edit Link...
  5. Add the following action in the Drag URLs here box: data:action/json,{"actions":[{"hide":{"tags":[""]}},{"show":{"tags":["1"]}}]}
  6. Click Apply
  7. Click the rectangle to which the link was added
  8. Select Action
  9. The results in all layers being hidden and all tags to remain visible.

Expected behavior The below action should hide all tags and then show one tag. Instead, it hides all layers.

data:action/json,{"actions":[{"hide":{"tags":[""]}},{"show":{"tags":["1"]}}]}

Screenshots Before action execution: before-action-execution

After action execution: after-action-execution

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 21.1.8
  • draw.io for Confluence Cloud version 1.4.60-AC

Desktop (please complete the following information):

  • OS: Edition Windows 11 Pro Version 22H2 Installed on ‎2/‎21/‎2023 OS build 22621.1555 Experience Windows Feature Experience Pack 1000.22640.1000.0
  • Browser: Chrome Version 112.0.5615.86 (Official Build) (64-bit)

quinn-p-mchugh avatar Apr 14 '23 22:04 quinn-p-mchugh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Apr 14 '24 06:04 stale[bot]

Same exact issue but not only on Confluence, but also on the web version of the app on Edge Version 125.0.2535.92 (Official build) (64-bit)

ptoump avatar Jun 11 '24 11:06 ptoump

@ptoump Please add a test case.

alderg avatar Jun 12 '24 13:06 alderg