feat(seo): 사이트맵 재생성 알림·폴링 폴백 + 코어 7.0.6 확정
이슈 후속(S7) 마감 + 릴리스 버전 확정. 기능(S7): - 사이트맵 전체 재생성 완료/실패 시 실행 관리자에게 알림(수동 실행 한정). 스케줄러·증분·봇 재생성은 알림 없음(triggered_by 부재 시 skip). - 최종 실패 전용 알림 + 재생성 전용 큐 + WS 진행상황 payload 봉투 정정. - Reverb OFF 폴링 폴백 경로 수정(실브라우저 폴링에서만 드러난 결함). 버전(D28 — 정정, D20 번복): - 릴리스를 7.0.5→7.0.6(patch)로 확정. 7.1.0(minor)은 다른 브랜치에서 별도 진행. - config/app.php + .env + README + INSTALL + CHANGELOG + 모듈 3 requires 를 7.0.6 로. - D19 SEO 캐시 이행 업그레이드 스텝을 Upgrade_7_0_6 로 리네임. 이유: 스텝 버전 게이팅이 version<=toVersion 이라, 7.1.0 이름이면 7.0.5→7.0.6 업그레이드에서 이행이 실행되지 않는다. 검증: composer test-smoke OK(2·29) · 재생성 알림/업그레이드 이행/진행상황 테스트 green · version-sync/version-bump(new-bump)/extension-require green · audit 0 error.
This commit is contained in:
1 parent
3dd34104cc
commit
124433148c
35 files changed
+698
-53
No files matched your search
@@ -254,3 +254,44 @@ test('#481 - SEO 탭 진입 시 sitemap 상태 API 가 진행상황/실시간
|
||||
expect(body?.data).toHaveProperty('progress');
|
||||
expect(body?.data).toHaveProperty('last_updated_at');
|
||||
});
|
||||
|
||||
// @scenario tab=seo, permitted=yes
|
||||
// @effects regenerate_is_async
|
||||
test('#481 - 재생성 후 실시간/폴링 모드에 맞게 진행상황이 갱신된다', async ({ page }) => {
|
||||
const token = issueToken('core.settings.read', 'core.settings.update');
|
||||
await authenticatePage(page, token);
|
||||
|
||||
// 상태(GET) 응답을 가로채 실시간 여부 판정 + 재조회 횟수 카운트 (앱의 인증 요청 기준)
|
||||
let realtimeEnabled: boolean | null = null;
|
||||
let statusGets = 0;
|
||||
page.on('response', async (r) => {
|
||||
if (r.url().includes('/api/admin/seo/sitemap/status') && r.request().method() === 'GET') {
|
||||
statusGets += 1;
|
||||
if (realtimeEnabled === null) {
|
||||
try { realtimeEnabled = (await r.json())?.data?.realtime_enabled === true; } catch { /* ignore */ }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
await gotoSeoTab(page);
|
||||
await expect.poll(() => realtimeEnabled, { timeout: 20_000 }).not.toBeNull();
|
||||
|
||||
// 여기부터 재생성 이후의 폴링만 센다
|
||||
statusGets = 0;
|
||||
await page.locator('#sitemap_last_updated_block button').first().click();
|
||||
await page.waitForResponse((r) => r.url().includes('/api/admin/seo/sitemap/regenerate'), { timeout: 20_000 });
|
||||
|
||||
const pollingMode = realtimeEnabled === false;
|
||||
|
||||
// 8초 관찰
|
||||
await page.waitForTimeout(8_000);
|
||||
|
||||
if (pollingMode) {
|
||||
// Reverb OFF: startInterval 폴링이 상태를 반복 재조회해야 한다.
|
||||
// 회귀(폴링 미시작) 시 재생성 직후 refetch 1회로 멈춰 배지가 갱신되지 않는다.
|
||||
expect(statusGets).toBeGreaterThanOrEqual(2);
|
||||
} else {
|
||||
// 실시간(WebSocket) 모드면 폴링하지 않는다 — 재생성 직후 refetch 수준
|
||||
expect(statusGets).toBeLessThanOrEqual(2);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user