You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make use of DataModel::Provider in writes (#34754)
* Implement DM::Provider::Write usage
* Fix compile
* Fix java builds
* Update src/app/InteractionModelEngine.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Make codegen data model call increasing the cluster data version
* Restyle
* Make sure that attribute changed information can be propagated out of ember
* Optimize storage size of WriteHandler
* Restyle
* Make the code more obvious identical with what was there before
* Change Provider to not double-call the dirty and version increase
* Update src/app/InteractionModelEngine.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Cleaner usage: no need of a separate function that is used in one place only
* Attempt an API update
* Fix typos in the Accessors src
* Fix typo and regen
* More fixes on accessors
* Update signature for emAfWriteAttributeExternal
* Add a comment about all the checks being vague
* Update src/app/util/af-types.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/af-types.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-storage.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/zap-templates/templates/app/attributes/Accessors-src.zapt
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/mock/CodegenEmberMocks.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/zap-templates/templates/app/attributes/Accessors-src.zapt
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/zap-templates/templates/app/attributes/Accessors-src.zapt
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* zap regen and restyle
* Update src/app/zap-templates/templates/app/attributes/Accessors-src.zapt
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-table.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-storage.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-storage.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-table.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-table.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-storage.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/util/attribute-table.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Rename ChangedPathListener to AttributesChangedListener
* Remove chip:: and chip::app
* Update constructors of AttributePathParams and add nodiscard according to the linter to never call const methods without considering their return value
* Restyled by clang-format
* Remove auto-inserted include
* Update again and zap regen: removed extra namespace prefixes in accessors.h/cpp
* Add comment about uint8_t non-const usage...
* Another rename given that the listener is now an attributes and not a path listener
* Update src/app/util/attribute-table.h
Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
* Update after merge to have more things compile
* Everything compiles now
* Restyle
* Make unit tests pass: mocks also have to call the change listeners
* Comment update to talk more about AttributesChangedListener
* Restyle
* Add support for a previous path write ... this is similar to what ACL caching and tokenizing currently does, but in a explicit manner describing the ACL use case
* Remove some extra added includes
* Another include fix
* Follow the comment and do not restrict the cache to ACL cluster, since this is what current ember does
* More self code review changes
* Make tests pass, more code cleanup
* Match ordering to ember-compatibility functions. This is ODD because we check attribute existance before access!
* Adjust test ordering and add a large note that we are probably doing the wrong thing, however tests force us to do the wrong thing
* Fix unit test
* Remove odd comment
* Add a few ending endifs
* Renamed ScopedExchangeContext
* Update src/app/InteractionModelEngine.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/WriteHandler.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/WriteHandler.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/data-model-provider/OperationTypes.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/data-model-provider/OperationTypes.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/data-model-provider/OperationTypes.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update src/app/codegen-data-model-provider/CodegenDataModelProvider_Write.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Restyle to reorder includes
* Add issue link
* Update equality logic
* Rename member to mLastSuccessfullyWrittenPath
* Update argument logic
* Make ActionContext private in IME so it is not such a public API
* Clean up comments
* fix up compares
* Restyle
---------
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
0 commit comments