diff --git a/Behaver.cs b/Behaver.cs index 20976b8..6cb6d23 100644 --- a/Behaver.cs +++ b/Behaver.cs @@ -43,6 +43,7 @@ public class Behaver public async Task ActOn(Message message) { + //TODO: this is yet another hit to the database, and a big one. cache them in memory! there needs to be a feasibly-viewable amount, anyway. var matchingUACs = Rememberer.MatchUACs(message); var behaviorsActedOn = new List(); foreach (var behavior in Behaviors.ToList()) diff --git a/Models/UAC.cs b/Models/UAC.cs index 63f1469..d7a9751 100644 --- a/Models/UAC.cs +++ b/Models/UAC.cs @@ -20,4 +20,10 @@ public class UAC public List AccountInChannels { get; set; } public List Channels { get; set; } public List Users { get; set; } + ///"but past adam", you may ask. "if UACs are configured before runtime, why not write html into your source control, as part of the project, + ///with the benefit of an html editor?" + ///absolutely fair question. **But**: the plan is for external services, e.g., over kafka, to manage their own. So from Vassago's perspective, + ///it's variably before and after compile time. shrug.emote. + /// + public string Description { get; set; } } diff --git a/WebInterface/Views/UACs/Details.cshtml b/WebInterface/Views/UACs/Details.cshtml index 7fdbf62..5b7ba55 100644 --- a/WebInterface/Views/UACs/Details.cshtml +++ b/WebInterface/Views/UACs/Details.cshtml @@ -12,6 +12,10 @@ Display Name @Model.DisplayName + + Description + @Html.Raw(Model.Description) + Channels