# Bug OP-20713 - Embedded work package tables apply saved configuration only after a hard refresh

Project: OpenProject
Status: in development
URL: https://community.openproject.org/work_packages/OP-20713

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Modules and project features / Search, Modules and project features / Work packages, Modules and project features / Wiki |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Alexander Coles |
| Accountable |  |
| Product manager |  |
| Developers | Alexander Coles |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

Reproduced by Christophe in Firefox while reviewing [PR <mention class="mention" data-id="26117" data-type="work_package" data-text="#26117">#26117</mention>](https://github.com/opf/openproject/pull/26117#pullrequestreview-5751336315). The reviewer observed that OpenProject 17.9 applied these changes without a hard refresh.

### Steps to reproduce

1.  Sign in as an administrator who can edit work package type forms. In **Administration → Work packages → Types**, choose a type in use and open its **Form configuration**.
2.  Add and save a **Related work packages table** section if the form does not already have one. Open a work package of that type with related rows and note how the table is highlighted.
3.  In the same browser tab, return to the type’s form configuration. Edit the related table, select **Highlighting → Entire row by → Status**, apply the table configuration, and save the type form.
4.  Follow a link back to the work package in the same tab. Compare the table with the saved settings, then do a hard refresh (**Cmd+Shift+R** in the reported Firefox session).

### What is the buggy behavior?

After following a link back to the work package, the embedded table still uses the previous highlighting. Its rows only take on the status colors after a hard refresh. The reviewer reported the same stale behavior after selecting **No highlighting** or changing **Baseline** or **Columns**.

### What is the expected behavior?

Opening the work package shows the saved related-table configuration immediately.

### Important note

The review report is attached to commit `0f5540bb5a3f00fc403981df470dd821ee4f1cd3` of the PR branch. The exact deployed build was not recorded. The Stage browser retest is pending. The suspected cause is that `SchemaCacheService` retains the schema and its embedded queries across Turbo navigation. OP-20430 removed the global-search request that used to fetch embedded schemas.

### **Logs**

No console output supplied.

### Screenshots and other files

The Firefox observations are in the linked review.

### Environment information

  - **OpenProject installation type** — PR review environment, exact installation not recorded.
  - **OpenProject version** — PR <mention class="mention" data-id="26117" data-type="work_package" data-text="#26117">#26117</mention> review branch. The reviewer compared it with OpenProject 17.9.
  - **Browser** — Firefox, exact version not recorded.
  - **Operating system** — Not explicitly recorded.
  - **Language** — English labels in the review.
