261027_03_ENH: 파생 변수 데이터 개별 생성시 Status=10 조건을 뺌

This commit is contained in:
2026-10-27 14:43:48 +09:00
parent 4d4406ed2b
commit 0e78680571
3 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@
- Contact calls the legacy scoped project-list endpoint and skey-to-share sequence; KON/KON-KIWI survey.js calls respondent-derived recalculation at END. Preserve new-server-only migration scope: do not modify those consumer repositories automatically.
- GET /project/list without search keeps existing screen-list behavior. With projectType/intranetCode/userTeam, use the legacy linked query: first underscore code segment, R-team exact GKEY else exclude M101, keyword overrides code with pkey/title LIKE, newest first. Do not mix ordinary-screen year/must-view/status/company/din-owner filters or KIWI title prefix into linked results. Query userTeam is not an authentication claim; additionally enforce the authenticated read visibility rules below, without adding ordinary-screen business filters.
- POST /project/{projectType}/{pkey}/derived/respondent/{respondentId}/recalculate reuses current calculation in definition order, ensures the legacy empty derived row, scopes group clear/query/save to PKEY+IDKEY, reads actual completed responses only and uses the selected survey transaction. Preserve historical date values on no match and add no new SiteLog point.
- POST /project/{projectType}/{pkey}/derived/respondent/{respondentId}/recalculate reuses current calculation in definition order, ensures the legacy empty derived row, scopes group clear/query/save to PKEY+IDKEY, reads non-TEST responses regardless of Status (user decision 2026-10-27, allowing calculation before completion status is saved) and uses the selected survey transaction. Whole-project recalculation retains Status = 10. Preserve historical date values on no match and add no new SiteLog point.
- Local prefix search did not locate a PRJCT_/KRIC_SYS_ caller; do not claim production non-use or remove legacy registrations. Existing Common API Key auth covers new server-to-server calls; verified REPORT_URL covers CLIENT. Do not add unauthenticated system-name/prefix-to-JWT exchange or trust request-supplied identity. Incoming service-code kart-server API Key registration is separate from the outgoing Intranet key.
- Existing browser survey hooks need a server-side proxy/API Key integration at later cutover. Caller conversion, real API Key registration/traffic, shared DB checks, general authorization and deployment remain separate work.

View File

@@ -156,7 +156,7 @@ public class DerivedManagementService {
project,
() -> {
requireProject(project);
// Legacy creates an empty DERIVED_DATA row even if there is no eligible completed
// Legacy creates an empty DERIVED_DATA row even if there is no eligible
// response.
derivedRepository.ensureRespondent(project, idkey);
var definitions = derivedRepository.definitions(project);

View File

@@ -102,7 +102,7 @@
<![CDATA[
SELECT A.IDKEY, A.DATJSON, B.DATJSON AS derived_json FROM DATA A WITH(NOLOCK)
LEFT JOIN (SELECT DISTINCT IDKEY, PKEY, DATJSON FROM DERIVED_DATA) B ON A.PKEY = B.PKEY AND A.IDKEY = B.IDKEY
WHERE A.PKEY = #{pkey} AND A.IDKEY = #{idkey} AND A.Status = 10 AND A.SURVEY_TYPE <> 'TEST'
WHERE A.PKEY = #{pkey} AND A.IDKEY = #{idkey} AND A.SURVEY_TYPE <> 'TEST'
]]>
</select>
</mapper>