Intermediate commit

This commit is contained in:
Giuseppe Digilio
2019-03-11 20:07:11 +01:00
parent 11e77086ae
commit 013d464294
50 changed files with 181 additions and 167 deletions

View File

@@ -253,11 +253,10 @@ export class RequestService {
}
/**
* This method will store the href of every GET request that gets configured in a local variable, and
* remove it as soon as it can be found in the store.
* This method remove requests that are on their way to the store.
*/
private clearRequestsOnTheirWayToTheStore(request: GetRequest) {
this.store.pipe(select(this.entryFromUUIDSelector(request.uuid)),
this.getByHref(request.href).pipe(
find((re: RequestEntry) => hasValue(re)))
.subscribe((re: RequestEntry) => {
if (!re.responsePending) {
@@ -265,6 +264,7 @@ export class RequestService {
}
});
}
/**
* Dispatch commit action to send all changes (for a certain method) to the server (buffer)
* @param {RestRequestMethod} method RestRequestMethod for which the changes should be committed