Last active
February 8, 2018 08:46
-
-
Save sbose78/cf4058464ab82d6ef913c00546c13872 to your computer and use it in GitHub Desktop.
fabric8-planner planner https://github.com/fabric8-ui/fabric8-planner/blob/master/src/app/services/iteration.service.ts#L224
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getIteration(iteration: any): Observable<IterationModel> { | |
if (Object.keys(iteration).length) { | |
let iterationLink = iteration.data.links.self; | |
return this.http.get(iterationLink) | |
.map(iterationresp => iterationresp.json().data) | |
.catch((error: Error | any) => { | |
this.notifyError('Error getting iteration data.', error); | |
return Observable.throw(new Error(error.message)); | |
}); | |
} else { | |
return Observable.of(undefined); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment