src/app/data/issue-graph/issue-graph-api.service.ts
Responsible for retrieval and conversion of data needed for graph rendering from backend.
Methods |
constructor(getFullIssueGraphDataQuery: GetIssueGraphDataGQL, addConsumedInterfaceMutation: AddConsumedInterfaceGQL, removeConsumedInterfaceMutation: RemoveConsumedInterfaceGQL, getSearchIssueGraphDataQuery: GetIssueGraphDataForSearchGQL)
|
|||||||||||||||
Parameters :
|
addConsumedInterface |
addConsumedInterface(component: string, componentInterface: string)
|
Make the interface with interfaceId a consumed interface of the component with id componentId
Returns :
Observable<any>
|
loadIssueGraphData | ||||||||||||||||||||
loadIssueGraphData(projectId: string, categories: SelectedCategories, labels: FilterLabel[], texts: string[])
|
||||||||||||||||||||
Queries backend for data needed to render graph when given parameters restricting what information is requested. This method handels the construction of the parameters to the graphql query, and makes the query. To carry out the conversion from backend to frontend format, it invokes GraphDataFactory.graphDataFromGQL
Parameters :
Returns :
Observable<GraphData>
|
removeConsumedInterface |
removeConsumedInterface(component: string, componentInterface: string)
|
Remove the interface with interfaceId from consumed interfaces of the component with id componentId
Returns :
Observable<any>
|
textsToRegex | ||||||
textsToRegex(texts: string[])
|
||||||
Creates a regular expression denoting a language of the union of the strings in texts textsToRegex(["newest issues", "test"]) == "(newest issues | test)""
Parameters :
Example :
Returns :
string
|