Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions PxWeb/Controllers/Api2/Admin/DatabaseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{
[ApiController]
//[ApiExplorerSettings(IgnoreApi = true)]
public class DatabaseController : ControllerBase

Check warning on line 27 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Change the paths of the actions of this controller to be relative and add a controller route with the common prefix. (https://rules.sonarsource.com/csharp/RSPEC-6931)

Check warning on line 27 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Change the paths of the actions of this controller to be relative and add a controller route with the common prefix. (https://rules.sonarsource.com/csharp/RSPEC-6931)

Check warning on line 27 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Change the paths of the actions of this controller to be relative and add a controller route with the common prefix. (https://rules.sonarsource.com/csharp/RSPEC-6931)
{
private readonly IDataSource _dataSource;
private readonly PxApiConfigurationOptions _configOptions;
Expand All @@ -51,7 +51,7 @@
[SwaggerResponse(statusCode: 202, description: "Accepted")]
[SwaggerResponse(statusCode: 401, description: "Unauthorized")]
[SwaggerResponse(statusCode: 405, description: "Method Not Allowed")]
public IActionResult Database([FromQuery(Name = "langdependent")] bool? langDependent, [FromQuery(Name = "sortorder")] string? sortOrder)
public IActionResult Database([FromQuery(Name = "sortorder")] string? sortOrder)
{
if (_dataSource.GetType() != typeof(PxFileDataSource))
{
Expand All @@ -60,7 +60,7 @@

_backgroundWorkerQueue.QueueBackgroundWorkItem(async token =>
{
await createMenuXml(langDependent, sortOrder, token);
await createMenuXml(true, sortOrder, token);
});

return new AcceptedResult();
Expand Down Expand Up @@ -124,7 +124,7 @@
{
if (langDependent == null)
{
return false;
return true;
}
else
{
Expand All @@ -136,7 +136,7 @@
{
if (string.IsNullOrWhiteSpace(sortOrder))
{
return "matrix";

Check warning on line 139 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Define a constant instead of using this literal 'matrix' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)

Check warning on line 139 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Define a constant instead of using this literal 'matrix' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)

Check warning on line 139 in PxWeb/Controllers/Api2/Admin/DatabaseController.cs

View workflow job for this annotation

GitHub Actions / build

Define a constant instead of using this literal 'matrix' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
}

switch (sortOrder.ToLower())
Expand Down