fix(stalker): reject replaced late edit targets

This commit is contained in:
4gray committed 2026-08-09 18:23:34 +02:00
1 parent e4bee6da40
commit fabffcc902
10 files changed
+102 -17

No files matched your search

@@ -669,6 +669,10 @@ describe('PlaylistInfoComponent', () => {
stalkerDeviceId2: 'STORED-DEVICE-2',
stalkerSignature1: 'STORED-SIGNATURE-1',
stalkerSignature2: 'STORED-SIGNATURE-2',
}),
expect.objectContaining({
portalUrl: 'https://portal.example.com/c',
stalkerSerialNumber: 'STORED-SERIAL',
})
);
});
@@ -413,7 +413,8 @@ export class PlaylistInfoComponent {
) {
const result =
await this.stalkerConnectionEditor.resolveConnection(
normalizedPlaylist
normalizedPlaylist,
this.playlist
);
if (
result.status !==
@@ -41,7 +41,8 @@ export interface StalkerResolvedConnectionApplyOptions {
export interface StalkerPlaylistConnectionEditor {
resolveConnection(
playlist: PlaylistMeta
playlist: PlaylistMeta,
sourcePlaylist?: PlaylistMeta
): Promise<StalkerPlaylistConnectionResult>;
/** Atomically persists a resolved edit, then synchronizes in-run state. */
applyResolvedConnection(