|
|
656c2e7341
|
Changed LogMemoryStore from active refresh (setInterval) to passive refresh on-access (60 min TTL)
|
2026-01-29 00:30:34 +07:00 |
|
|
|
7955c855bc
|
fix: extend OrgStructureCache TTL and add graceful shutdown cleanup
- Extended OrgStructureCache TTL from 10 to 30 minutes (reduce cleanup frequency)
- Added orgStructureCache.destroy() in graceful shutdown handler
- Updated documentation to reflect changes
Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
|
2026-01-29 00:05:56 +07:00 |
|
|
|
e4cfac2eb2
|
add: docs and backup file
|
2026-01-28 23:10:50 +07:00 |
|
|
|
1a324af483
|
fix: api /super-admin/{id} memory cache
|
2026-01-28 18:26:03 +07:00 |
|
|
|
7c70229579
|
fix: query use Promise all
|
2026-01-28 17:48:28 +07:00 |
|
|
|
5dcb59632f
|
fix: Api GET /super-admin/{id}
|
2026-01-28 17:43:26 +07:00 |
|
|
|
e068aafe3a
|
fix: เพิ่ม Graceful Shutdown - ป้องกัน connection in app file, Log Mnddleware + Memory Store
|
2026-01-28 17:22:10 +07:00 |
|
|
|
a194d8594b
|
fix: connection pool settings
|
2026-01-28 16:59:09 +07:00 |
|
|
|
bca25a7a52
|
feat: optimize detailSuperAdmin API to fix database connection issue
ปัญหา: API GET /api/v1/org/super-admin/{id} ทำให้ระบบดับเพราะ N+1 queries
- เดิม: >1,000,000 queries (100 orgRoots × 10 children × 10 counts/level)
- ใหม่: ~10 queries (query รวมครั้งเดียว + 5 org queries)
การเปลี่ยนแปลง:
1. สร้าง OrganizationController-optimized.ts
- getPositionCounts(): query posMaster ทั้งหมดครั้งเดียว
- สร้าง maps (orgRootMap, orgChild1Map, etc.) สำหรับ lookup
- ลด queries จาก 1,000,000+ → ~10 queries
2. เพิ่ม import สำหรับ helper functions ใน OrganizationController.ts
- import { getPositionCounts, getCounts, getRootCounts }
- ต้อง replace ฟังก์ชัน detailSuperAdmin ด้วย optimized version
- ดู OPTIMIZED_FUNCTION.ts สำหรับฟังก์ชันใหม่
ไฟล์ที่เพิ่ม:
- src/controllers/OrganizationController-optimized.ts (helper functions)
- OPTIMIZED_FUNCTION.ts (optimized function reference)
- src/utils/log-memory-store.ts (from earlier log middleware fix)
หมายเหตุ: ฟังก์ชัน detailSuperAdmin ใน OrganizationController.ts
ยังไม่ถูก replace (ต้องทำ manual) - ดู OPTIMIZED_FUNCTION.ts
Co-Authored-By: Claude (glm-4.7) <noreply@anthropic.com>
|
2026-01-28 13:45:52 +07:00 |
|
|
|
b64a8bb26d
|
API Get Profile For Logs
Build & Deploy on Dev / build (push) Successful in 1m0s
@Get("user-logs/{keycloakId}")
|
2026-01-28 12:04:49 +07:00 |
|
harid
|
ecd002456e
|
Merge branch 'develop-Bright' into develop
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-28 11:02:38 +07:00 |
|
harid
|
43ae825ac0
|
tuning api (ตัด profileSalary เส้นที่ไม่ได้ใช้งาน)
|
2026-01-28 11:02:11 +07:00 |
|
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
|
a0a79bf6b6
|
Merge branch 'feat/issues' into develop
Build & Deploy on Dev / build (push) Successful in 1m5s
|
2026-01-28 10:58:00 +07:00 |
|
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
|
042dba505f
|
fix(issue):save_created_Update_user
|
2026-01-28 10:57:25 +07:00 |
|
harid
|
987f8ef81a
|
tuning api (ตัด profileSalary เส้นที่ไม่ได้ใช้งาน)
Build & Deploy on Dev / build (push) Successful in 1m8s
|
2026-01-28 10:45:38 +07:00 |
|
|
|
ca433d5711
|
ปรับ insert DNA ใน createPosMasterHistory
Build & Deploy on Dev / build (push) Successful in 1m0s
|
2026-01-28 09:36:30 +07:00 |
|
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
|
9c8960676a
|
Merge branch 'feat/issues' into develop
Build & Deploy on Dev / build (push) Successful in 1m4s
|
2026-01-28 09:23:21 +07:00 |
|
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
|
dd01e2a79d
|
#migrate add ssues
|
2026-01-28 09:22:52 +07:00 |
|
harid
|
2a2635ad83
|
Add workflow ขอแก้ไขข้อมูลทะเบียนประวัติ (ลูกจ้างประจำ) #2222
Build & Deploy on Dev / build (push) Successful in 1m3s
Fix เพิ่มรายการแต่ไม่แสดงใน Tab รายการตำแหน่ง/เงินเดือนหลังจากแก้ไขแล้ว #2243
|
2026-01-27 18:09:31 +07:00 |
|
harid
|
217ec1d7f6
|
Fix Error Task #2248
Build & Deploy on Dev / build (push) Successful in 1m8s
|
2026-01-27 13:14:05 +07:00 |
|
harid
|
64a7010d0a
|
Update #2233
Build & Deploy on Dev / build (push) Successful in 1m1s
|
2026-01-26 17:07:00 +07:00 |
|
harid
|
1ade81a048
|
Fix เลขที่ตำแหน่งไม่แสดง #2230 + Add api สำหรับใบลา #2233
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-26 15:42:56 +07:00 |
|
|
|
6e6253887f
|
#2231
Build & Deploy on Dev / build (push) Successful in 58s
|
2026-01-26 14:14:58 +07:00 |
|
harid
|
78778e0eb0
|
test เพิ่มฟังก์ชั่นให้ยิงไประบบ exprofile #2190
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-23 17:32:11 +07:00 |
|
harid
|
38e2ec6586
|
api getKeycloak ทำไว้ใช้สำหรับระบบลงเวลา
Build & Deploy on Dev / build (push) Successful in 1m1s
|
2026-01-22 11:15:09 +07:00 |
|
harid
|
0203a9105f
|
fix กจ. ไม่เห็นรายชื่อผู้สอบผ่านหลังจากเผยแพร่โครงสร้าง Task #2219
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-21 16:09:03 +07:00 |
|
harid
|
ae3a634595
|
Task #2208 กรณีขอแก้ไขข้อมูลทะเบียนประวัติ และ IDP และคนขออยู่ในสำนักปลัดกรุงเทพมหานคร
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-21 13:53:29 +07:00 |
|
mamoss
|
757da877f6
|
add command code 20
Build & Deploy on Dev / build (push) Successful in 1m3s
|
2026-01-21 08:00:21 +07:00 |
|
harid
|
b1210d51e8
|
Task #2207 กรณีคนขอโอนอยู่ในสำนักปลัดกรุงเทพมหานคร
Build & Deploy on Dev / build (push) Successful in 1m2s
|
2026-01-20 16:40:10 +07:00 |
|
|
|
7423a4f8b5
|
add function post retire data to exprofile system
|
2026-01-20 15:03:39 +07:00 |
|
harid
|
648fb33cc2
|
tuning api Get org/dotnet/keycloak/{keycloakId}
Build & Deploy on Dev / build (push) Successful in 59s
|
2026-01-19 16:49:24 +07:00 |
|
harid
|
f6b03752e1
|
Migrate เพิ่มฟิลด์ privac + API update status privac #2186
Build & Deploy on Dev / build (push) Successful in 1m0s
|
2026-01-16 17:54:11 +07:00 |
|
harid
|
b8421d29ed
|
ส่งฟิลด์ตำแหน่งทางการบริหาร #2195
Build & Deploy on Dev / build (push) Successful in 1m0s
|
2026-01-15 11:49:08 +07:00 |
|
|
|
c4e6bafa4d
|
fix
Build & Deploy on Dev / build (push) Successful in 1m1s
|
2026-01-15 09:35:34 +07:00 |
|
harid
|
6312b940a3
|
API ค้นหา กจ.
Build & Deploy on Dev / build (push) Successful in 1m4s
|
2026-01-14 17:42:33 +07:00 |
|
|
|
5e5c194e33
|
fix: ancestorDNA save ตอนเพิ่มอัตรากำลังในแบบร่าง
Build & Deploy on Dev / build (push) Successful in 58s
|
2026-01-14 16:09:35 +07:00 |
|
|
|
709a4e1ac6
|
fix: trim()
Build & Deploy on Dev / build (push) Successful in 1m4s
|
2026-01-14 15:41:10 +07:00 |
|
harid
|
96a2d34c1f
|
fix โคลนสิทธิ์เมนู task #2160
Build & Deploy on Dev / build (push) Successful in 1m0s
|
2026-01-13 14:57:43 +07:00 |
|
|
|
7a25dc98aa
|
fix: รักษาการแทนหายเมื่อเผยแพร่โครงสร้าง
Build & Deploy on Dev / build (push) Successful in 1m2s
|
2026-01-13 10:59:55 +07:00 |
|
mamoss
|
39c6f6fdd1
|
set datetimezone
Build & Deploy on Dev / build (push) Successful in 1m2s
|
2026-01-13 04:28:58 +07:00 |
|
mamoss
|
07d03f5134
|
search report leave
Build & Deploy on Dev / build (push) Successful in 1m4s
|
2026-01-13 03:20:09 +07:00 |
|
mamoss
|
6bfe89b5a3
|
org history employee
|
2026-01-13 01:37:02 +07:00 |
|
harid
|
82527f0f49
|
fix ข้อมูลหน่วยงานที่สังกัดอยู่ไม่แสดง #2185
Build & Deploy on Dev / build (push) Successful in 1m2s
|
2026-01-12 13:55:56 +07:00 |
|
mamoss
|
e040409fa5
|
report group posno and dna
Build & Deploy on Dev / build (push) Successful in 1m3s
|
2026-01-11 16:33:20 +07:00 |
|
mamoss
|
b110575136
|
report leave
Build & Deploy on Dev / build (push) Successful in 1m1s
|
2026-01-11 15:17:14 +07:00 |
|
mamoss
|
21bef607a1
|
export report leave
Build & Deploy on Dev / build (push) Successful in 1m2s
|
2026-01-09 19:00:21 +07:00 |
|
harid
|
f4be31ed08
|
test(4) #2160
|
2026-01-09 18:40:10 +07:00 |
|
|
|
53d6be09d5
|
Merge branch 'main' into develop
* main:
update search dna
search dna
|
2026-01-09 17:20:42 +07:00 |
|
harid
|
804ee8a639
|
test(3) #2160
|
2026-01-09 16:38:42 +07:00 |
|
harid
|
65789c6ac6
|
test(3) #2160
|
2026-01-09 16:37:24 +07:00 |
|