Skip to content

Fix incorrect creationDate for networks.#926

Merged
jglogan merged 1 commit into
apple:mainfrom
jglogan:creationdate-workaround
Dec 2, 2025
Merged

Fix incorrect creationDate for networks.#926
jglogan merged 1 commit into
apple:mainfrom
jglogan:creationdate-workaround

Conversation

@jglogan
Copy link
Copy Markdown
Contributor

@jglogan jglogan commented Dec 2, 2025

  • Fixes [Bug]: Network creationDate incorrect. #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

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

See above.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

- 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.
@jglogan jglogan merged commit 856d594 into apple:main Dec 2, 2025
3 checks passed
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Network creationDate incorrect.

2 participants