Commit 2f8e0b5
committed
Fallback to topic graph is
Ideally, all `AttributeDescriptor`s will be available via as a result of the recent updates which update the cache of both `GetContentTypeDescriptors()` (a9ea634) and `ContentTypeDescriptor.AttributeDescriptors` (b0c5a5e) on `Save()`, `Delete()`, and `Move()`.
When doing recusive `Save()`s of large topic graphs—as is common when importing data using the new **OnTopic Data Exchange**—it is possible, however, that the `AttributeDescriptors` cache will be out-of-date if a `ContentTypeDescriptor` has been updated in memory, but not persisted at the time that a dependency `Topic` tries to implement it.
We face a similar issue with content types, and thus update the `GetContentTypeDescriptors()` reactively in `GetAttributes()` and `GetUnmatchedAttributes()` (408d01a). We can do something similar for `AttributeDescriptors` in `GetAttributes()`.
This satisfies the attributes-related requirements of the newly proposed feature enhancement: Discover in-memory ContentTypeDescriptor, AttributeDescriptor on Save() (#18).GetAttributes() can't find AttributeDescriptor
1 parent c0c8dd9 commit 2f8e0b5
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
495 | 501 | | |
496 | 502 | | |
497 | 503 | | |
| |||
0 commit comments