Skip to content

chore(upstream): integrate pre-lockfile Seerr changes" - #51

Merged
constbogdan merged 27 commits into
downstream-mainfrom
chore/manual-upstream-pre-lockfile
Nov 3, 2026
Merged

constbogdan merged 27 commits into
downstream-mainfrom
chore/manual-upstream-pre-lockfile

Conversation

@constbogdan

Copy link
Copy Markdown
Owner

Summary

Manually integrate 26 upstream Seerr commits preceding the GitHub Actions lockfile migration into our maintained downstream-main branch.

This integration preserves native upstream Git ancestry, incorporates compatible upstream fixes, and retains downstream-specific functionality and safety guarantees.

Upstream range:

  • Previous integrated anchor: 103976d1b4d72fb2278995c2e9b9ab51891d5b8f
  • Upstream integration target: 6f63b08d5c610217c75580340ce78b69b8a0bd61
  • Downstream integration base: edcc0a66a9db456ce2e8da6f29ef14989a1cd0f4

Upstream PR seerr-team#3632 (GitHub Actions lockfile migration) and all subsequent commits are explicitly excluded. They will be reviewed in separate integration stages.

Upstream changes

This integration includes:

  • Security: Improved user-settings and media-response privacy filtering.
  • Plex: Improved PIN authentication retry behavior and protection against invalid Discover watchlist cache responses.
  • Jellyfin: Improved Season/Episode parent-Series dispatch.
  • Radarr: Availability-gated explicit searches.
  • Requests: Deterministic creation-date sorting and request-completion savepoint improvements.
  • API: Corrected Watchlist POST schema.
  • Scheduling: Corrected Plex watchlist synchronization intervals.
  • Frontend: Improved YouTube URL validation.
  • Maintenance: Upstream documentation, translations, CI helpers, Node version pin and tooling updates.

Conflict resolution

Five textual conflicts were resolved with deliberate semantic integration:

Component Resolution
Radarr Preserved downstream Overflow placement and tags while incorporating availability-gated searches
Media entity Preserved acquisition presentation alongside upstream privacy filtering
Jellyfin scanner Preserved downstream parent resolution, deduplication, coordination and completion semantics
Jellyfin scanner tests Retained both upstream and downstream regression coverage
MediaSubscriber Preserved sequential guarded lifecycle transitions and verified multi-request SQLite completion

All 15 additional clean semantic overlaps were reviewed.

Explicit downstream lifecycle decision — upstream seerr-team#3578

The expanded upstream automatic request-decline behavior was intentionally not adopted.

Media that remains present but becomes unmonitored without downloaded files does not automatically cause an approved request to be declined.

Existing downstream missing-from-all-acquisition-servers cleanup remains unchanged.

This preserves downstream request lifecycle, acquisition safety and historical-data semantics while retaining native upstream commit ancestry.

The decisions and rejected alternatives are documented in docs/UPSTREAM_RESOLUTION_DECISIONS.md.

Validation

Validation Result
Original downstream baseline 374 passed
Integrated candidate regression suites 408 passed
Fast validation 53 passed
Server/client typechecks Passed
Targeted ESLint Passed
Formatting and whitespace Passed
Translation consistency Passed
CI helper syntax checks Passed
Native merge ancestry and staged-tree verification Passed
Hosted Full validation Pending
Live runtime acceptance Pending

All original 374 baseline tests remain present and passing in the integrated candidate.

The locally validated staged tree is:

9023a2a45a4c37990d45e30a9006d9d3ccd9ff7a

Strategy C — GitHub Actions safety

  • All 19 inherited workflow files match the exact upstream integration target.
  • Downstream-owned validation and image-publication workflows remain unchanged.
  • The downstream-protected upstream-sync.yml remains unchanged.
  • The 22-file workflow inventory is preserved.
  • All 14 unsafe inherited workflows remain externally disabled.
  • Repository Actions default permissions remain read-only.
  • No upstream actions.lock was introduced.
  • No GitHub App permissions or repository settings were changed.

Integration and publication

This PR is intentionally submitted for human review.

  • Native merge ancestry is preserved.
  • No squash or rebase is intended.
  • No automatic merge is authorized.
  • Protected downstream-main requires successful hosted Downstream validation.
  • Docker image publication occurs only after an approved protected merge, subject to the existing release eligibility policy.
  • Production deployment is not part of this PR.

Remaining acceptance

  • Hosted Full validation passes against the published PR.
  • Confirm final PR head, tree and native merge parents.
  • Verify workflow inventory and external disabled states remain correct.
  • Review any hosted validation failures.
  • Obtain explicit approval for a normal merge commit into downstream-main.

This PR covers only the pre-lockfile upstream range. The lockfile migration and remaining upstream changes will be handled separately.

fallenbagel and others added 27 commits September 26, 2026 18:19
User.settings is an eager relation, so it rode along into every response embedding a User, exposing
pushover, pushbullet, telegram, discord and PGP values through the request, issue, issue comment,
blocklist, and watchlist endpoints. It now omits it by using User.toJSON(). GET /auth/me builds
settings from seven non-credential fields the web app reads, so locale and region defaults keep
working. Reported as a security advisory, GHSA-8j73-j6rc-q8xh.
Media.getMedia() loads the requests and issues relations for GET /movie/:id and GET /tv/:id, and the
User relations hanging off them are eager, so every authenticated user could read any other user's
email and plexId out of mediaInfo. The same payload carried full issue contents, including comment
bodies, to viewers who are refused GET /issue. Media.filter() now strips the nested users and
withholds the issues from anyone lacking the perms that the endpoing requires, and drops the issue
fields nothing reads. Reported as a security advisory, GHSA-xc6j-6p6h-p799.
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Bijaya Budhathoki <20866084+BBijaya@users.noreply.github.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: ezn24 <eznotsimple@gmail.com>
Co-authored-by: Bas Trebus <bas.trebus@maastrichtuniversity.nl>
Co-authored-by: Kisnov <gabrielmarfil0@gmail.com>
Co-authored-by: Mateusz Lesiak <mateusz.lesiak01@gmail.com>
Co-authored-by: Nils Karlsson Pyssling <nisse@users.noreply.translate.seerr.dev>
Co-authored-by: Serhiy <sergey.bobrov83@gmail.com>
Co-authored-by: SulliL <susu.leduc@gmail.com>
Co-authored-by: Thadah D. Denyse <thadahdenyse@protonmail.com>
Co-authored-by: Ulrik J <ulrikj@users.noreply.translate.seerr.dev>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: cowegner <carsten@tupti.de>
Co-authored-by: dtalens <dtalens@users.noreply.translate.seerr.dev>
Co-authored-by: ezn24 <eznotsimple@gmail.com>
Co-authored-by: ugyes <ferenc.bodi@live.com>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
@constbogdan
constbogdan marked this pull request as ready for review November 3, 2026 14:27
@constbogdan
constbogdan merged commit 60022ec into downstream-main Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.