-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This update builds off of OnTopic Library 4.3.0 and the OnTopic Data Transfer 1.2.0 library in order to provide support for connecting to and bootstrapping empty repositories. Notably, this includes the ability to dynamically add or remove content type and attribute descriptors. Not only does this allow some configuration changes made via the **OnTopic Editor** to be immediately available to the interface, it also allows new or reference configurations to be imported using the **OnTopic Data Transfer** library integration. Finally, this update takes advantage of many performance and reliability updates to the underlying services, particularly regarding recursive saves (as done during `Import()`). Features - The editor will now tolerate binding to topics with missing content type descriptors (06f065b, 34cdeec). This allows it to display a default `Root` topic even if the `Container` content type hasn't yet been created. Of course, no editor form will be present in these scenarios. - Allow creation of the root topic on `Import()` (c51a141). Previously, the editor assumed that the root topic already existed. Bug Fixes - Ensured implicit topic references (i.e., attributes ending in 'Id' and pointing to a `Topic.Id`) can be resolved based on a single `Import()` by rearranging the `Import()` and `Save()` logic (a01e92e). - Changed the implicit default root from `Web` to `Root`; this not only allows support for an empty database (where `Web` won't yet exist), but also fixes issues when querying the `/JSON` service where it would only query the `Web` branch, thus making it impossible to reference e.g. the `Configuration` branch with a `QueryableTopicListAttribute` or `TopicReferenceAttribute` (1069b34). - Ensure the `TopicReferenceAttributeViewComponent` honors the current key, instead of being hard-coded to use `TopicID` (eb84431). - Expose new `ExportOptions.TranslateTopicPointers` opt-out to the `Export()` interface (5630bb7). - Fix link to the `ContentTypeDescriptor` from the editor interface (9b4ebf6). `TopicListAttributeViewComponent` - Ensure `DefaultLabel` isn't persisted as the value if not topic is selected (1be3eb3) - Resolve runtime exception when using `RelativeTopicBase`'s `ContentTypeDescriptor` (339fa6d) - Gracefully fail if the `TopicList`'s scope cannot be resolved (9ecf880) - Ensure `RelativeTopicBase` works correctly when creating new topics (7f027c6) - Introduce missing support for the `RelativeTopicPath` attribute (b727cf1) - Hide the `TopicListViewComponent` if no values are returned (753d0a4) Code Changes - Updated to use newly created `Topic.IsNew` property for detecting if topic references are valid (9a79cc8). Maintenance - Updated various dependencies, including client-side dependencies (4b996cc).
- Loading branch information
Showing
13 changed files
with
302 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 12 additions & 8 deletions
20
OnTopic.Editor.AspNetCore/Areas/Editor/Views/Editor/Components/TopicList/Default.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
@model TopicListAttributeViewModel | ||
|
||
@{ | ||
if (Model.TopicList.Count > 1) { | ||
Layout = "~/Areas/Editor/Views/Editor/Components/_Layout.cshtml"; | ||
} | ||
} | ||
|
||
<select | ||
asp-for ="Value" | ||
asp-items ="Model.TopicList" | ||
class ="@Model.AttributeDescriptor.CssClass form-control form-inline" | ||
disabled =@(!Model.AttributeDescriptor.IsEnabled) | ||
required =@Model.AttributeDescriptor.IsRequired | ||
> | ||
</select> | ||
@if (Model.TopicList.Count > 1) { | ||
<select | ||
asp-for ="Value" | ||
asp-items ="Model.TopicList" | ||
class ="@Model.AttributeDescriptor.CssClass form-control form-inline" | ||
disabled =@(!Model.AttributeDescriptor.IsEnabled) | ||
required =@Model.AttributeDescriptor.IsRequired | ||
> | ||
</select> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.