Commit 71aed77
Introduce the CodeDrivenDataModelProvider (project-chip#39974)
* Add the CodeDrivenDataModelProvider with Unit Tests
* Restyled by clang-format
* Fix unused variable
* Attempt to fix clang-tidy error
* Restyled by clang-format
* Removed SetPersistentStorageDelegate and moved it to ctor
* Remove unit tests from building for efr32, failing in CI
* Restyled by clang-format
* Move codedriven/tests to the right place in BUILD.gn
* Update src/data-model-providers/codedriven/CodeDrivenDataModelProvider.cpp
rename endpointProvider to endpoint
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* More endpointProvider -> endpoint renames
* Update comment "using code" -> "dynamically at runtime"
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update comment about "outlive their registration."
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update comment on CodeDrivenDataModelProvider.h "ProviderMetadataTree implementation"
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Add comment on CodeDrivenDataModelProvider.h "/* DataModel::Provider implementation */"
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Log all cluster paths on startup failure
* Fix comment about EndpointProvider
* Review suggestion: Removed outStatus from GetServerCluster
* Fix ServerClusters(EndpointId) to return correct clusters; add unit test
* Moved clusters to data model provider
* renamed GetServerCluster to GetServerClusterInterface for consistency
* Added endpoint ID assignment logic
* removed GetServerCluster and ServerClusters from the EndpointInterface
and SpanEndpoint
* Added more unit tests for everything that was changed.
* Restyled by whitespace
* Restyled by clang-format
* Remove cluster on shutdown
* removed unused iterator
* Update code to return CHIP_ERROR_KEY_NOT_FOUND instead of Status::Failure
* Update UnsupportedEndpoint error code; check for EndpointID validity in ServerClusters()
* Minor nit from code review
* nit from code review: use std::max
* Addressed latest round of review suggestions from Andrei; Removed endpoint id from SpanEndpoint; Removed mNextAvailableEndpointId; Removed validation for paths/endpoints; Renamed variables from epProvider to endpoint; Fixed comments and added TODO about markDirty()
* Restyled by whitespace
* Restyled by clang-format
* Make PersistentStorageDelegate a reference instead of a pointer
* Attempt to make clang tidy happy
* Apply Boris' NITs from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update SpanEndpoint to get const refs; remove default arg from EndpointRegistration; Move Get methods to private
* Fixed ordering of clusters/endpoints; added more checks and tests to verify the new behavior
* fix CI coverage failure
* Restyled by whitespace
* Restyled by clang-format
* Fix merge issues with master; Updated serverClsuterContext to references; store the interactionContext
* Fix one more conflict with master
* Reuse LogOnlyEvents
* Restyled by clang-format
* make clang tidy happy
* Start clusters on first endpoint added
* Update src/data-model-providers/codedriven/CodeDrivenDataModelProvider.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Restyled by whitespace
---------
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>1 parent e086a20 commit 71aed77
13 files changed
Lines changed: 1912 additions & 687 deletions
File tree
- src
- data-model-providers/codedriven
- endpoint
- tests
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments