Skip to content

Commit

Permalink
disable AP feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkoSekulic committed Oct 29, 2024
1 parent 33c435b commit 6e014ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ public async Task<AppScopesEntity> GetAppScopesAsync(AltinnRepoContext repoConte
cancellationToken.ThrowIfCancellationRequested();
var appScope = await _dbContext.AppScopes.AsNoTracking().SingleOrDefaultAsync(a => a.Org == repoContext.Org && a.App == repoContext.Repo, cancellationToken);

if (appScope is null)
{
return null;
}

return AppScopesMapper.MapToModel(appScope);
return appScope is null ? null : AppScopesMapper.MapToModel(appScope);
}

public async Task<AppScopesEntity> UpsertAppScopesAsync(AppScopesEntity appScopesEntity,
Expand Down
2 changes: 1 addition & 1 deletion backend/src/Designer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
"FeatureManagement": {
"EidLogging": false,
"AnsattPorten": true
"AnsattPorten": false
},
"OidcLoginSettings": {
"Authority": "http://studio.localhost/repos/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public AppScopesControllerTestsBase(WebApplicationFactory<Program> factory, Desi
""AnsattPorten"": true
}},
""AnsattPortenLoginSettings"": {{
""ClientId"": ""dummy"",
""ClientSecret"": ""dummy""
""ClientId"": ""non-empty-for-testing"",
""ClientSecret"": ""non-empty-for-testing""
}}
}}
");
Expand Down

0 comments on commit 6e014ea

Please sign in to comment.