16 lines
1.4 KiB
Markdown
16 lines
1.4 KiB
Markdown
# Refresh pending relationship reviews
|
|
|
|
After applying `PlotLine/Sql/196_RelationshipReviewChronologyAndTypes.sql`, rebuild existing pending suggestions using the current classifier and stored scene analysis. This does not call AI, regenerate other modules, or change accepted/rejected decisions. Review-page GETs continue to read persisted pages.
|
|
|
|
Run on the dev host with permission to read `/etc/plotdirector/plotdirector.env`:
|
|
|
|
```sh
|
|
dotnet build tools/RefreshRelationshipReviews/RefreshRelationshipReviews.csproj
|
|
sudo dotnet tools/RefreshRelationshipReviews/bin/Debug/net10.0/RefreshRelationshipReviews.dll
|
|
sudo dotnet tools/RefreshRelationshipReviews/bin/Debug/net10.0/RefreshRelationshipReviews.dll --apply
|
|
```
|
|
|
|
The first invocation previews counts. `--apply` saves a snapshot of pending rows in `/var/tmp` before updating them through a stored procedure. The tool refuses databases other than `PlotDirector_Development` and refuses to update a book if any pending pair cannot be rebuilt. The procedure only updates pending rows in the same current generation, protecting decisions made during the refresh. No analysis runs should be active during the refresh.
|
|
|
|
Chapter input is deliberately reversed to verify that first/last appearance metadata and output chronology do not depend on processing order. New review preparations already use the corrected rules; the tool is only needed for older saved suggestions.
|