Skip to content

Delegate value reading to ConfigVariableContent#8

Merged
prachigauriar merged 1 commit intomainfrom
prachi/config-variable-content
Mar 5, 2026
Merged

Delegate value reading to ConfigVariableContent#8
prachigauriar merged 1 commit intomainfrom
prachi/config-variable-content

Conversation

@prachigauriar
Copy link
Copy Markdown
Contributor

  • Extract value fetching, watching, and encoding logic from
    ConfigVariableReader into a new ConfigVariableContent type that
    describes how each ConfigVariable maps to and from ConfigContent
    primitives. This separates the “what type is this value” concern
    from the reader’s get/fetch/watch orchestration.
  • Add CodableValueRepresentation for JSON and property list values
  • Add ConfigVariableDecodingFailedEvent for telemetry on decode errors
  • Add accessors for RawRepresentable and RawRepresentable
    values, as well as ExpressibleByConfigInt and
    ExpressibleByConfigString
  • Remove completed Architecture Plan and Implementation Plan docs

  - Extract value fetching, watching, and encoding logic from
    ConfigVariableReader into a new ConfigVariableContent type that
    describes how each ConfigVariable maps to and from ConfigContent
    primitives. This separates the “what type is this value” concern
    from the reader’s get/fetch/watch orchestration.
  - Add CodableValueRepresentation for JSON and property list values
  - Add ConfigVariableDecodingFailedEvent for telemetry on decode errors
  - Add accessors for RawRepresentable and RawRepresentable
    values, as well as ExpressibleByConfigInt and
    ExpressibleByConfigString
  - Remove completed Architecture Plan and Implementation Plan docs
@prachigauriar prachigauriar force-pushed the prachi/config-variable-content branch from 6f09b48 to 569d434 Compare March 5, 2026 22:08
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

Code Coverage Report

Overall Coverage: 99.78% (1,778 of 1,782)

DevConfiguration: 99.78% (1,778 of 1,782)
File Coverage Covered Lines Executable Lines
CodableValueRepresentation.swift 100.00% 63 63
ConfigVariable.swift 100.00% 68 68
ConfigVariableAccessFailedEvent.swift 100.00% 4 4
ConfigVariableAccessSucceededEvent.swift 100.00% 5 5
ConfigVariableContent.swift 100.00% 1,437 1,437
ConfigVariableDecodingFailedEvent.swift 100.00% 5 5
ConfigVariableMetadata.swift 100.00% 30 30
ConfigVariableReader.swift 97.10% 134 138
EventBusAccessReporter.swift 100.00% 32 32

@prachigauriar prachigauriar merged commit 7b4b0c4 into main Mar 5, 2026
5 of 6 checks passed
@prachigauriar prachigauriar deleted the prachi/config-variable-content branch March 5, 2026 22:47
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.

1 participant