Skip to content

Commit

Permalink
feat: Provide ability to see Services section XML (#1346)
Browse files Browse the repository at this point in the history
* feat: ability to see `Services` section's XML

Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>

* chore: update outdated services snapshot test file

Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>

* test: added integration test

Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>

* chore: fix type error in services.ts

Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>

---------

Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>
  • Loading branch information
juancho0202 authored Oct 31, 2023
1 parent 370f47a commit 83d1d61
Show file tree
Hide file tree
Showing 9 changed files with 287 additions and 1,672 deletions.
1 change: 1 addition & 0 deletions packages/open-scd/src/wizards/service-GSEControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function createGSEControlWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'GSE Control' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function createClientServerConfigurationsWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'Client Server Services' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
1 change: 1 addition & 0 deletions packages/open-scd/src/wizards/service-log-settingsgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export function createLogSettingsGroupServicesWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'Services' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
1 change: 1 addition & 0 deletions packages/open-scd/src/wizards/service-networking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function createNetworkingWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'Networking' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export function createReportConfigurationsWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'Report Settings' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
1 change: 1 addition & 0 deletions packages/open-scd/src/wizards/service-sampled-values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function createSampledValuesWizardPage(
? {
title: get('wizard.title.edit', { tagName: 'Sampled Values' }),
content: [...content],
element: services,
}
: null;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/open-scd/src/wizards/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function isEmptyObject<T = any>(
return (
target === null
? [false]
: Object.keys(target).flatMap(key => {
: Object.keys(target as Object).flatMap(key => {
const value: any = (target as any)[key];
if (typeof value === 'object') {
return isEmptyObject(value);
Expand Down
Loading

0 comments on commit 83d1d61

Please sign in to comment.