# Migrating a TopLogic application from 7.9.7 to 7.9.8

Audience: an AI coding agent (or developer) upgrading a TopLogic application project.
Sources: release notes https://dev.top-logic.com/tl/content/releases/TL_7.9.8/ and the TopLogic
Trac tickets flagged `RequiresMigration` for milestone `TL_7.9.8` (ticket numbers are given as
`#NNNNN`; the per-ticket page is `https://dev.top-logic.com/tl/content/releases/TL_7.9.8/NNNNN/`).

7.9.8 is a maintenance release of the 7.9 line. Apart from the version bump it contains a single
migration step (#28357).

## How to use this document

1. Work through the sections in order. Section 1 must be done first (the project does not build
   otherwise).
2. Every step has a **Detect** line: run the search in the application's source tree. If it finds
   nothing, the step does not apply — skip it. Do not invent changes for steps that do not apply.
3. Configuration problems are reported as **configuration errors at application start or when a
   view is loaded** (not at compile time). After migrating, start the application, log in, and open
   every view; read the log for `ConfigurationException` / configuration errors.
4. The engine ships developer articles in its jars (`META-INF/tl-docs/**/*.md`). If the `tl-mcp`
   tools are available, read them with `read_doc`; they are the authoritative reference.
5. Ticket descriptions on Trac are partly German; this document translates the instructions.

Search commands below assume the project root as working directory and GNU grep.

---

## 1. Build and platform

### 1.1 Version bump — mandatory
Set the TopLogic version to `7.9.8` (parent `tl-parent-app` / `tl-parent-core` /
`tl-parent-app-internal` / `tl-parent-core-internal` / `tl-parent-all` version, or the `tl.version`
property).

Detect: `grep -rn -e '7\.9\.7' --include=pom.xml .`

---

## 2. Server configuration (`*.config.xml`)

### 2.1 Do not configure `IDEResources` as resources implementation (#28357) — mandatory if present
The implementation `com.top_logic.util.resource.analyzer.IDEResources` is meant for development in
the IDE only and must not be configured in a delivered application. The engine no longer
configures it in its own configurations (the application archetype used to generate it into
`WEB-INF/autoconf/model.<module>.config.xml`, which is why many applications contain it).

In the application's configuration of the service `com.top_logic.basic.util.ResourcesModule`,
remove the explicit instance class (the `class` attribute of `<instance>`). Keep the rest of the
configuration (e.g. the bundles) unchanged.

Before:
```xml
<config service-class="com.top_logic.basic.util.ResourcesModule">
  <instance class="com.top_logic.util.resource.analyzer.IDEResources">
    <bundles>
      <bundle name="my.app.messages"/>
    </bundles>
  </instance>
</config>
```

After:
```xml
<config service-class="com.top_logic.basic.util.ResourcesModule">
  <instance>
    <bundles>
      <bundle name="my.app.messages"/>
    </bundles>
  </instance>
</config>
```

If `IDEResources` is needed during development, include the configuration
`devel-dump-missing-resources.config.xml` from `tl-core` instead (development configuration only,
not in the delivered application).

Detect:
```
grep -rn -e 'IDEResources' --include=*.xml .
```

---

## 3. Verification checklist

1. Build the application with tests (`mvn clean install`); fix compile errors.
2. Re-run the detect command of step 2.1; it must find no `IDEResources` outside an explicitly
   development-only configuration.
3. Start the application and read the log for configuration errors (`ConfigurationException`,
   errors about `ResourcesModule`).
4. Log in and open the views; check that application labels are resolved (no missing-resource
   keys shown in place of texts), which confirms that the bundles of the `ResourcesModule`
   configuration are still loaded.
5. Report to the user which files were changed in step 2.1.
