- Delete 5 duplicate Java files in wrong nested cn/ directory
- Fix 15 raw List declarations with generic type params in OrganizationServiceImpl
- Apply (CloudwalkResult) raw cast to 107 fail() + 165 success() calls
across all 46 service files via ast-grep
- Remaining: 106 Object->cast and other manual-context errors
- Convert \uXXXX (single backslash) to actual Chinese characters
- Preserve \uXXXX (double backslash) regex patterns
- All logger messages, enum descriptions, and constants now readable
- Full business logic redesign with UC-01/UC-02 sequence diagrams
- Policy ALWAYS evaluated, intersect candidate with allow
- Scenario matrix covering all combinations
- v2.0.19 implementation with intersection fix
- Strip CFR header comments (Decompiled with CFR, Could not load)
- Remove redundant (Throwable)e casts in logger and throw calls
- Cleanup script removed after use
- Mark v2.0.17 as current production baseline in AGENTS.md
- Update service discovery architecture design doc: add §6-10 for
actual implementation state, preserve original as history (§1-5)
- Document key decisions: no ZK discovery, ConfigurationBasedServerList,
bootstrap aligned with V1
- Remove spring-cloud-starter-zookeeper-discovery from POM
(V1 doesn't have it, causes zookeeperRibbonClientConfiguration error)
- Remove ZK exclusions from AppApplication.java (no longer needed)
- bootstrap.properties now 100% identical to V1 production
- PersonFeignClient restored to placeholder-based name (no hardcoded URL)
- Remove NIWSServerListClassName/listOfServers (ConfigurationBasedServerList)
Bump version to 2.0.17
- Restore bootstrap to match production (discovery.enabled=false,
consul.host=371bfca4972c43d2aefcf302d0a4a277)
- Add spring.cloud.zookeeper.enabled=false to prevent
zookeeperRibbonClientConfiguration runtime error (child context)
- Remove ConfigurationBasedServerList overrides from app properties
(no longer needed with proper config alignment)
- Revert PersonFeignClient url hardcode back to placeholder name
Bump version to 2.0.16
- JAR name fixed to cw-elevator-application-V1.0.0.20211103.jar
matching V1 production naming convention exactly
- Release bundle directory uses version+date for identification
- Update release script and POM finalName accordingly
- V1 main class: cn.cloudwalk.elevator.AppApplication
- V2 was ElevatorApplication, now aligned to AppApplication
- Also update reference in test script
Second Registration bean conflict: ServiceRegistryEndpoint also needs
single bean. Exclude both ZK auto-configuration classes for ServiceRegistry.
- ZookeeperAutoServiceRegistrationAutoConfiguration (already excluded)
- ZookeeperServiceRegistryAutoConfiguration (added)
Bump version to 2.0.13
- ElevatorApplication startup failed: Registration bean conflict between
ZookeeperAutoServiceRegistration and ConsulAutoServiceRegistration
- Exclude ZookeeperAutoServiceRegistrationAutoConfiguration (ZK for
discovery only, not registration; Consul handles registration)
- Bump version to 2.0.12, rebuild deployment package
- Add missing org_id column (488b8ad049bb43408a6fbcc50bcb89ac)
- Fix allow_zone_ids to use snowflake zone_id 605560545117995008 (28F)
instead of orphan UUID that matched no known zone table
- Fix DB record: update zone_id + add org_id, bump policy_version to 2
Insert tenant_visitor_floor_policy for 7 property management orgs:
visitor default floor set to zone 605560541473144832 (6F).
SQL idempotent via ON DUPLICATE KEY UPDATE.
Document the investigation into how ConsulServerList was replaced by
ConfigurationBasedServerList with hardcoded IPs for Feign client service
discovery. Covers V1 vs V2 config gap, three upstream services, and
P0-P2 investigation items.
Former-commit-id: 15a0d8567de43f8741d50cbcddc2599383942754
- Add ZK discovery dep to parent POM (v1.1.0.RELEASE, Edgware-compatible)
- Add ZK discovery dep to starter POM for runtime classpath inclusion
- Architecture: discovery.enabled=false → Consul registration only
ZK DiscoveryClient → service lookup for Feign → Ribbon → ServerList
Closes gap between architecture design doc and implementation
Former-commit-id: 6b5898d0e07ca6ebf2ccbb69ace5fa77ac6f0749
- PersonFeignClient: add url=http://127.0.0.1:33011 to bypass Ribbon/Consul discovery
- application.properties: add ninca-common-component-organization.ribbon.listOfServers
- Add stub-person-service.py for simulating component-organization person/detail
Returns PersonResult with floorList and organizationIds for policy testing
NOTE: PersonFeignClient url change is test-only, revert before production
Former-commit-id: ff9a9ed68ec81fc2de68cc74cd22edcf38b510cb