Skip to content

Do not update descriptionHtml if details blocks are changed

Himanshu Kapoor requested to merge himkp-glql-block-in-details into master

What does this MR do and why?

Do not update descriptionHtml if details blocks are changed

In issue descriptions, on each poll, do not update the description html if the only change that happened was that details blocks were opened or closed. This prevents GLFM blocks like GLQL from re-rendering.

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen Recording 2024-09-03 at 13.38.17.mov Screen Recording 2024-09-03 at 13.37.28.mov

How to set up and validate locally

  1. Enable feature flag :glql_integration.
  2. Assign yourself some issues.
  3. Create a few GLQL blocks in <details> blocks in an issue description:
<details>
<summary>Details</summary>

```glql
assignee = currentUser()
```
</details>

<details>
<summary>Details</summary>

```glql
assignee = currentUser()
```
</details>


<details>
<summary>Details</summary>

```glql
assignee = currentUser()
```
</details>


<details>
<summary>Details</summary>

```glql
assignee = currentUser()
```
</details>


<details>
<summary>Details</summary>

```glql
assignee = currentUser()
```
</details>
  1. Save the description.
  2. Try to open or close the details block. The GLQL block should not re-render
Edited by Himanshu Kapoor

Merge request reports