당직근무 0.15.0 (웹 2026-11-25.4): 근무 순서 이름

- 옵션 → 근무 순서 이름: 당직 다음 날(비번)부터 순서 자리마다 그날 당직 서는 사람 이름. 근무 종류는 글자로만 보이고 당직 기초 설정 화면은 그대로
- 달력에 보일 것: 근무와 이름 둘 다 · 이름만 · 근무만(nameDisplay). 앱 달력·위젯·근무표 그림, 웹 달력·그림, 기본 달력 반영과 구독 제목
- 근무표 names(순서와 같은 길이) 저장·검사, 구버전 저장 때 보존, 소속 공유 제외. 날짜별 변경 날은 이름 없음
- 앱 0.15.0 / 설치 번호 24. APK 875878바이트, SHA-256 22f4070a33d0d4c553f0391cb13f473dbec73d2174ba7a5e653318b394c3c55e
- 검사: 서버 106개, 앱 단위 59개, 웹 이름 계산, 위젯 기기 검사(세 가지 표시)
This commit is contained in:
블리어 committed 2026-11-25 01:45:53 +00:00
1 parent 6c77fc998c
commit 8c455f4448
32 files changed
+432 -58

No files matched your search

+4 -2
View File
@@ -12,7 +12,7 @@ import site_admin
import work_team
from work_plan import validate_plan, SHIFTS
from work_names import validate_name_rule
from personal import validate_personal, mirror_display, validate_event_options, validate_week_start, preserve_week_start, preserve_regular_name
from personal import validate_personal, mirror_display, validate_event_options, validate_week_start, preserve_week_start, preserve_regular_name, validate_rotation_names, preserve_rotation_names
import hashlib
import hmac
import json
@@ -36,7 +36,7 @@ DATA = Path(os.environ.get("DUTY_DATA", ROOT / "data"))
DATA.mkdir(parents=True, exist_ok=True, mode=0o700)
ORIGIN = os.environ.get("DUTY_ORIGIN", "https://duty.itosm.co.kr").rstrip("/")
PREFIX = "/calendar"
SERVER_VERSION = "0.14.3"
SERVER_VERSION = "0.15.0"
COOKIE = "__Secure-duty_session"
pepper_file = DATA / "pairing.key"
if not pepper_file.exists():
@@ -497,6 +497,7 @@ def validate(op):
op["data"]["offAsHoliday"] = data["offAsHoliday"]
if kind == "rotation":
if "workPlan" in data: op["data"]["workPlan"] = validate_plan(data["workPlan"])
if "names" in data: op["data"]["names"] = validate_rotation_names(data["names"], len(data["pattern"]))
op["data"].update(validate_week_start(data))
return
if not isinstance(data.get("title"), str) or not 1 <= len(data["title"].strip()) <= 120:
@@ -595,6 +596,7 @@ async def mutations(request: Request):
if not op["deleted"]:
preserve_week_start(conn, client["calendar"], op["kind"], op["data"], current)
preserve_regular_name(op["kind"], op["data"], current)
preserve_rotation_names(op["kind"], op["data"], current)
if op["deleted"] and not op["data"] and current:
op["data"]=json.loads(current["data"])
conn.execute("INSERT INTO items VALUES(?,?,?,?,?,?) ON CONFLICT(calendar,id) DO UPDATE SET version=excluded.version,deleted=excluded.deleted,data=excluded.data", (client["calendar"], op["id"], op["kind"], version + 1, int(op["deleted"]), json.dumps(op["data"], ensure_ascii=False)))