Skip to content

Commit

Permalink
fix: resolve issues (#10)
Browse files Browse the repository at this point in the history
* fix: added missing targets

* fix: dockerfile

* fix: remove unnecessary test code and fix helm value
  • Loading branch information
markuczy authored Oct 11, 2024
1 parent 5fb52f0 commit 562054c
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/onecx/docker-spa-base:1.3.0
FROM ghcr.io/onecx/docker-spa-base:1.6.0

# Copy nginx configuration
COPY nginx/locations.conf $DIR_LOCATION/locations.conf
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ app:
repository: 'onecx/onecx-search-config-ui'
routing:
enabled: true
path: /mfe/onecxSearchConfig/
path: /mfe/search-config/

operator:
# Microfrontend
Expand Down
94 changes: 47 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"lint": "nx lint",
"lint:fix": "nx lint --fix",
"test": "nx test",
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --code-coverage"
"test:ci": "nx test --watch=false --browsers=ChromeHeadless --code-coverage",
"sonar": "npx sonarqube-scanner -Dproject.settings=sonar-local-project.properties"
},
"private": true,
"husky": {
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"executor": "@nx/angular:webpack-browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/onecx-search-config",
"outputPath": "dist/onecx-search-config-ui",
"index": "./src/index.html",
"main": "./src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
PortalDialogService,
PortalMessageService,
} from '@onecx/portal-integration-angular';
import { AppConfigService } from '@onecx/angular-integration-interface';
import {
Configuration,
SearchConfigAPIService,
Expand Down Expand Up @@ -74,8 +73,6 @@ describe('OneCXColumnGroupSelectionComponent', () => {
})),
});

const appConfigSpy = createSpyObj('appConfig', []) as AppConfigService;

const searchConfigServiceSpy = {
...createSpyObj('searchConfigService', [
'getSearchConfigInfos',
Expand Down Expand Up @@ -219,10 +216,6 @@ describe('OneCXColumnGroupSelectionComponent', () => {
],
providers: [
DialogService,
{
provide: AppConfigService,
useValue: appConfigSpy,
},
{
provide: PortalDialogService,
useValue: portalDialogSpy,
Expand Down
11 changes: 1 addition & 10 deletions src/app/remotes/search-config/search-config.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
BASE_URL,
RemoteComponentConfig,
} from '@onecx/angular-remote-components';
import {
AppConfigService,
AppStateService,
} from '@onecx/angular-integration-interface';
import { AppStateService } from '@onecx/angular-integration-interface';
import { CommonModule } from '@angular/common';
import { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';
import { provideHttpClientTesting } from '@angular/common/http/testing';
Expand Down Expand Up @@ -76,8 +73,6 @@ describe('OneCXSearchConfigComponent', () => {
})),
});

const appConfigSpy = createSpyObj('appConfig', []) as AppConfigService;

const searchConfigServiceSpy = {
...createSpyObj('searchConfigService', [
'getSearchConfigInfos',
Expand Down Expand Up @@ -218,10 +213,6 @@ describe('OneCXSearchConfigComponent', () => {
],
providers: [
DialogService,
{
provide: AppConfigService,
useValue: appConfigSpy,
},
{
provide: PortalDialogService,
useValue: portalDialogSpy,
Expand Down

0 comments on commit 562054c

Please sign in to comment.