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
## Why make this change?
- Closes#3263
- Closes#3264
- Closes#3265
Currently some of the logs for autoentities are not completely clear or
they are too noisy. Which is why the messages need to be changed.
## What is this change?
This changes the log messages so they are more clear by adding `' '` to
the definition names from the autoentities, and stating that they are
definition names beforehand. We also change the name from `Autoentities`
to `autoentities` in the logs so that they are all consistent.
Lastly we also change some of the logs from `Information` to `Debug`.
## How was this tested?
Tested locally since all the changes are related to the messages written
in the logs.
_logger.LogError("Autoentities simulation is only supported for MSSQL databases. Current database type: {DatabaseType}.",runtimeConfig.DataSource.DatabaseType);
3271
+
_logger.LogError("The autoentities simulation is only supported for MSSQL databases. Current database type: {DatabaseType}.",runtimeConfig.DataSource.DatabaseType);
3272
3272
returnfalse;
3273
3273
}
3274
3274
@@ -3360,7 +3360,7 @@ public static bool TrySimulateAutoentities(AutoConfigSimulateOptions options, Fi
3360
3360
/// <param name="results">The simulation results keyed by filter (definition) name.</param>
_logger.LogError("Skipping autoentity generation: entity_nameor object is null or empty for autoentity pattern '{AutoentityName}'.",autoentityName);
332
+
_logger.LogError("Skipping autoentity generation: 'entity_name', 'object', or 'schema' is null or empty for autoentities definition '{autoentityName}'.",autoentityName);
Copy file name to clipboardExpand all lines: src/Service.Tests/Configuration/ConfigurationTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5611,7 +5611,7 @@ public async Task TestAutoentitiesAreGeneratedIntoEntities(bool useEntities, int
5611
5611
/// <returns></returns>
5612
5612
[TestCategory(TestCategory.MSSQL)]
5613
5613
[DataTestMethod]
5614
-
[DataRow("publishers","uniqueSingularPublisher","uniquePluralPublishers","/unique/publisher","Entity with name 'publishers' already exists. Cannot create new entity from autoentity pattern with definition-name 'PublisherAutoEntity'.",DisplayName="Autoentities fail due to entity name")]
5614
+
[DataRow("publishers","uniqueSingularPublisher","uniquePluralPublishers","/unique/publisher","Entity with name 'publishers' already exists. Cannot create new entity from autoentities definition 'PublisherAutoEntity'.",DisplayName="Autoentities fail due to entity name")]
5615
5615
[DataRow("UniquePublisher","publishers","uniquePluralPublishers","/unique/publisher","Entity publishers generates queries/mutation that already exist",DisplayName="Autoentities fail due to graphql singular type")]
5616
5616
[DataRow("UniquePublisher","uniqueSingularPublisher","publishers","/unique/publisher","Entity publishers generates queries/mutation that already exist",DisplayName="Autoentities fail due to graphql plural type")]
5617
5617
[DataRow("UniquePublisher","uniqueSingularPublisher","uniquePluralPublishers","/publishers","The rest path: publishers specified for entity: publishers is already used by another entity.",DisplayName="Autoentities fail due to rest path")]
0 commit comments