Skip to content

Commit

Permalink
Merge branch 'master' into feature/SHIBUI-704
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 27, 2018
2 parents 43090c9 + 6c0130f commit 320bace
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void addIndexedDescriptorsFromBackingStore(AbstractMetadataResolver.EntityBackin
document.add(new StringField("tag", resourceId, Field.Store.YES));
indexWriter.addDocument(document);
}
indexWriter.commit();
} catch (IOException e) {
logger.error(e.getMessage(), e);
throw new ComponentInitializationException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class NewFilterComponent implements OnDestroy, OnInit {
this.statusChangeEmitted$
.pipe(takeUntil(this.ngUnsubscribe))
.subscribe(valid => {
console.log(valid);
this.isValid = valid.value ? valid.value.length === 0 : true;
});

Expand Down
8 changes: 8 additions & 0 deletions ui/src/app/metadata/filter/effect/collection.effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ export class FilterCollectionEffects {
tap(([filter, provider]) => this.router.navigate(['/', 'metadata', 'provider', provider, 'filters']))
);

@Effect()
addFilterSuccessReloadParent$ = this.actions$.pipe(
ofType<AddFilterSuccess>(FilterCollectionActionTypes.ADD_FILTER_SUCCESS),
map(action => action.payload),
withLatestFrom(this.store.select(fromProvider.getSelectedProviderId).pipe(skipWhile(id => !id))),
map(([filter, provider]) => new SelectProviderRequest(provider))
);

@Effect()
updateFilter$ = this.actions$.pipe(
ofType<UpdateFilterRequest>(FilterCollectionActionTypes.UPDATE_FILTER_REQUEST),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,18 @@ export class ProviderEditStepComponent implements OnDestroy {

this.valueChangeEmitted$.pipe(
map(changes => changes.value),
withLatestFrom(this.definition$),
skipWhile(([ changes, definition ]) => !definition || !changes),
map(([ changes, definition ]) => definition.parser(changes))
withLatestFrom(this.definition$, this.store.select(fromProvider.getSelectedProvider)),
filter(([ changes, definition, provider ]) => definition && changes && provider),
map(([ changes, definition, provider ]) => {
const parsed = definition.parser(changes);
return ({
...parsed,
metadataFilters: [
...provider.metadataFilters,
...(parsed.metadataFilters || [])
]
});
})
)
.subscribe(changes => this.store.dispatch(new UpdateProvider(changes)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class ProviderSelectComponent implements OnDestroy {
map(params => new SelectProviderRequest(params.providerId))
).subscribe(store);

this.route.params.subscribe(params => console.log(params));

this.provider$ = this.store.select(fromProviders.getSelectedProvider).pipe(skipWhile(p => !p));

this.provider$.subscribe(provider => this.setDefinition(provider));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<wizard (onNext)="next()" (onPrevious)="previous()" (onSave)="save()"></wizard>
<hr />
<div class="py-4">
<router-outlet></router-outlet>
<div class="col-11">
<router-outlet></router-outlet>
</div>
</div>
<wizard-summary
[summary]="summary$ | async"
(onPageSelect)="gotoPage($event)"
*ngIf="currentPage === 'summary'">
</wizard-summary>
</wizard-summary>
3 changes: 2 additions & 1 deletion ui/src/app/shared/component/info-icon.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
[triggers]="triggers"
[placement]="placement"
[attr.aria-flowto]="id"
role="tooltip">
role="tooltip"
container="body">
<i class="fa fa-fw fa-info-circle text-primary fa-lg"></i>
<span class="sr-only" translate="tooltip.instruction"></span>
</button>
6 changes: 2 additions & 4 deletions ui/src/app/shared/component/info-icon.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
border: none;
display: inline;
}
}


.popover .popover-body {
min-width: 160px;
}
}
3 changes: 2 additions & 1 deletion ui/src/app/shared/component/info-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export class InfoIconComponent {

id: string = String.fromCharCode(65 + Math.floor(Math.random() * 26)) + Date.now().toString();

triggers = 'mouseenter:mouseleave focus:blur';
// triggers = 'mouseenter:mouseleave focus:blur';
triggers = 'click';
container = 'body';
placement = ['top'];

Expand Down
29 changes: 8 additions & 21 deletions ui/src/assets/schema/provider/filebacked-http-advanced.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
"title": "",
"description": "",
"placeholder": "",
"widget": "hidden",
"default": ""
"widget": "hidden"
},
"connectionRequestTimeout": {
"type": "string",
Expand All @@ -84,7 +83,6 @@
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"connectionTimeout": {
Expand All @@ -106,7 +104,6 @@
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"socketTimeout": {
Expand All @@ -128,7 +125,6 @@
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"disregardTLSCertificate": {
Expand All @@ -151,52 +147,45 @@
],
"description": "False"
}
],
"default": false
]
},
"tlsTrustEngineRef": {
"type": "string",
"title": "",
"description": "",
"placeholder": "",
"widget": "hidden",
"default": ""
"widget": "hidden"
},
"httpClientSecurityParametersRef": {
"type": "string",
"title": "",
"description": "",
"placeholder": "",
"widget": "hidden",
"default": ""
"widget": "hidden"
},
"proxyHost": {
"type": "string",
"title": "label.proxy-host",
"description": "tooltip.proxy-host",
"placeholder": "",
"default": ""
"placeholder": ""
},
"proxyPort": {
"type": "string",
"title": "label.proxy-port",
"description": "tooltip.proxy-port",
"placeholder": "",
"default": ""
"placeholder": ""
},
"proxyUser": {
"type": "string",
"title": "label.proxy-user",
"description": "tooltip.proxy-user",
"placeholder": "",
"default": ""
"placeholder": ""
},
"proxyPassword": {
"type": "string",
"title": "label.proxy-password",
"description": "tooltip.proxy-password",
"placeholder": "",
"default": ""
"placeholder": ""
},
"httpCaching": {
"type": "string",
Expand Down Expand Up @@ -238,15 +227,13 @@
"title": "label.http-max-cache-entries",
"description": "tooltip.http-max-cache-entries",
"placeholder": "",
"default": 0,
"minimum": 0
},
"httpMaxCacheEntrySize": {
"type": "integer",
"title": "label.max-cache-entry-size",
"description": "tooltip.max-cache-entry-size",
"placeholder": "",
"default": 0,
"minimum": 0
}
}
Expand Down

0 comments on commit 320bace

Please sign in to comment.