Commits

Tim Donohue authored and GitHub committed 70b456dbfc7 Merge
Merge pull request #1493 from DSpace/revert-1407-DSC-287-Show-an-error-page-if-the-REST-API-is-not-available

Revert "Show an error page if the rest api is not available"
No tags
gidlmaster

src/app/core/data/root-data.service.ts

Modified
99 99 * @param useCachedVersionIfAvailable If this is true, the request will only be sent if there's
100 100 * no valid cached version. Defaults to true
101 101 * @param reRequestOnStale Whether or not the request should automatically be re-
102 102 * requested after the response becomes stale
103 103 * @param linksToFollow List of {@link FollowLinkConfig} that indicate which
104 104 * {@link HALLink}s should be automatically resolved
105 105 */
106 106 findAllByHref(href: string | Observable<string>, findListOptions: FindListOptions = {}, useCachedVersionIfAvailable = true, reRequestOnStale = true, ...linksToFollow: FollowLinkConfig<Root>[]): Observable<RemoteData<PaginatedList<Root>>> {
107 107 return this.dataService.findAllByHref(href, findListOptions, useCachedVersionIfAvailable, reRequestOnStale, ...linksToFollow);
108 108 }
109 -
110 - /**
111 - * Set to sale the root endpoint cache hit
112 - */
113 - invalidateRootCache() {
114 - this.requestService.setStaleByHrefSubstring('server/api');
115 - }
116 109 }
117 110 /* tslint:enable:max-classes-per-file */

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut