Fixed #37
This commit is contained in:
27
.idea/.idea.HopFrame/.idea/workspace.xml
generated
27
.idea/.idea.HopFrame/.idea/workspace.xml
generated
@@ -12,7 +12,9 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="0648788e-7696-4e60-bf12-5d5601f33d8c" name="Changes" comment="">
|
<list default="true" id="0648788e-7696-4e60-bf12-5d5601f33d8c" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.HopFrame/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.HopFrame/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/HopFrame.Core/Config/TableConfig.cs" beforeDir="false" afterPath="$PROJECT_DIR$/src/HopFrame.Core/Config/TableConfig.cs" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/HopFrame.Core/Services/Implementations/ContextExplorer.cs" beforeDir="false" afterPath="$PROJECT_DIR$/src/HopFrame.Core/Services/Implementations/ContextExplorer.cs" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/testing/HopFrame.Testing/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/testing/HopFrame.Testing/Program.cs" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@@ -278,14 +280,7 @@
|
|||||||
<workItem from="1768753475773" duration="455000" />
|
<workItem from="1768753475773" duration="455000" />
|
||||||
<workItem from="1768753946559" duration="690000" />
|
<workItem from="1768753946559" duration="690000" />
|
||||||
<workItem from="1768756619311" duration="94000" />
|
<workItem from="1768756619311" duration="94000" />
|
||||||
</task>
|
<workItem from="1768847832546" duration="354000" />
|
||||||
<task id="LOCAL-00017" summary="Created tests for the core module">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1737212497960</created>
|
|
||||||
<option name="number" value="00017" />
|
|
||||||
<option name="presentableId" value="LOCAL-00017" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1737212497960</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00018" summary="Added more tests">
|
<task id="LOCAL-00018" summary="Added more tests">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
@@ -671,7 +666,15 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1768754560236</updated>
|
<updated>1768754560236</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="66" />
|
<task id="LOCAL-00066" summary="Fixed #38">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1768847968844</created>
|
||||||
|
<option name="number" value="00066" />
|
||||||
|
<option name="presentableId" value="LOCAL-00066" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1768847968844</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="67" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@@ -712,7 +715,6 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
|
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
|
||||||
<MESSAGE value="Added custom search functionality" />
|
|
||||||
<MESSAGE value="Added fully virtual properties" />
|
<MESSAGE value="Added fully virtual properties" />
|
||||||
<MESSAGE value="Added basic export and import feature" />
|
<MESSAGE value="Added basic export and import feature" />
|
||||||
<MESSAGE value="Finished converter plugin" />
|
<MESSAGE value="Finished converter plugin" />
|
||||||
@@ -737,6 +739,7 @@
|
|||||||
<MESSAGE value="fixed coverage percentage printing" />
|
<MESSAGE value="fixed coverage percentage printing" />
|
||||||
<MESSAGE value="fixed echo cmd" />
|
<MESSAGE value="fixed echo cmd" />
|
||||||
<MESSAGE value="Code cleanup + new pipeline setup" />
|
<MESSAGE value="Code cleanup + new pipeline setup" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Code cleanup + new pipeline setup" />
|
<MESSAGE value="Fixed #38" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Fixed #38" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -63,7 +63,7 @@ public sealed class TableConfigurator<TModel>(TableConfig config) {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines if the table should be ignored in the admin ui
|
/// Determines if the table should be ignored in the admin ui
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TableConfigurator<TModel> Ignore(bool ignore) {
|
public TableConfigurator<TModel> Ignore(bool ignore = true) {
|
||||||
InnerConfig.Ignored = ignore;
|
InnerConfig.Ignored = ignore;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ internal sealed class ContextExplorer(HopFrameConfig config, IServiceProvider pr
|
|||||||
|
|
||||||
public TableConfig? GetTable(string tableDisplayName) {
|
public TableConfig? GetTable(string tableDisplayName) {
|
||||||
foreach (var context in config.Contexts) {
|
foreach (var context in config.Contexts) {
|
||||||
var table = context.Tables.FirstOrDefault(table => table.DisplayName.Equals(tableDisplayName, StringComparison.CurrentCultureIgnoreCase));
|
var table = context.Tables
|
||||||
|
.Where(t => !t.Ignored)
|
||||||
|
.FirstOrDefault(table => table.DisplayName.Equals(tableDisplayName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
if (table is null) continue;
|
if (table is null) continue;
|
||||||
|
|
||||||
SeedTableData(table);
|
SeedTableData(table);
|
||||||
@@ -30,7 +32,9 @@ internal sealed class ContextExplorer(HopFrameConfig config, IServiceProvider pr
|
|||||||
|
|
||||||
public TableConfig? GetTable(Type tableEntity) {
|
public TableConfig? GetTable(Type tableEntity) {
|
||||||
foreach (var context in config.Contexts) {
|
foreach (var context in config.Contexts) {
|
||||||
var table = context.Tables.FirstOrDefault(table => table.TableType == tableEntity);
|
var table = context.Tables
|
||||||
|
.Where(t => !t.Ignored)
|
||||||
|
.FirstOrDefault(table => table.TableType == tableEntity);
|
||||||
if (table is null) continue;
|
if (table is null) continue;
|
||||||
|
|
||||||
SeedTableData(table);
|
SeedTableData(table);
|
||||||
|
|||||||
Reference in New Issue
Block a user