Fix incorrect creationDate for networks. by jglogan · Pull Request #926 · apple/container

@jglogan

- When the API service enumerates creation dates,
  the configuration value from the network helper
  is used instead of the persistent config value,
  so the creation date winds up being the current
  time. The short term fix is for the API server
  to return NetworkState values that combine
  the API server's persistent network config with
  the network status returned from the helper.
- The longer term refinement could be to define
  a uniform model for resources where each resource
  type has Metadata (id/Identifiable, creationDate,
  labels), and type-specific configuration and
  state/status.

realrajaryan

approved these changes Dec 2, 2025

@jglogan jglogan deleted the creationdate-workaround branch

December 2, 2025 22:41

saehejkang pushed a commit to saehejkang/container that referenced this pull request

Jan 27, 2026
- Fixes apple#925.
- When the API service enumerates creation dates, the configuration
value from the network helper is used instead of the persistent config
value, so the creation date winds up being the current time. The short
term fix is for the API server to return NetworkState values that
combine the API server's persistent network config with the network
status returned from the helper.
- The longer term refinement could be to define a uniform model for
resources where each resource type has Metadata (id/Identifiable,
creationDate, labels), and type-specific configuration and state/status.

## Type of Change
- [x] Bug fix
- [ ] New feature  
- [ ] Breaking change
- [ ] Documentation update

## Motivation and Context

See above.

## Testing
- [x] Tested locally
- [ ] Added/updated tests
- [ ] Added/updated docs