-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kamu 168 set transform add event from UI (#106)
* Add SetTransformComponent. * Add search and fix qraphql schema. * Add material-tree module. * Add schema for input datasets. * Add templates for the queries. * Add the ability to edit queries and to save event. * Add navigation for input datasets. * Add unit tests. * Add owner name to the input datasets tree node.
- Loading branch information
1 parent
bdc45ff
commit 75dbd5a
Showing
64 changed files
with
2,444 additions
and
158 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { TestBed } from "@angular/core/testing"; | ||
import { ApolloTestingModule } from "apollo-angular/testing"; | ||
import { EngineApi } from "./engine.api"; | ||
import { Apollo, ApolloModule } from "apollo-angular"; | ||
|
||
describe("EngineApi", () => { | ||
let service: EngineApi; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
providers: [EngineApi, Apollo], | ||
imports: [ApolloModule, ApolloTestingModule], | ||
}); | ||
service = TestBed.inject(EngineApi); | ||
}); | ||
|
||
it("should be created", () => { | ||
expect(service).toBeTruthy(); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Injectable } from "@angular/core"; | ||
import { EnginesGQL, EnginesQuery } from "./kamu.graphql.interface"; | ||
import { ApolloQueryResult } from "@apollo/client"; | ||
import { Observable } from "rxjs"; | ||
import { first, map } from "rxjs/operators"; | ||
|
||
@Injectable({ | ||
providedIn: "root", | ||
}) | ||
export class EngineApi { | ||
constructor(private enginesGQL: EnginesGQL) {} | ||
|
||
public getEngines(): Observable<EnginesQuery> { | ||
return this.enginesGQL.watch().valueChanges.pipe( | ||
first(), | ||
map((result: ApolloQueryResult<EnginesQuery>) => { | ||
return result.data; | ||
}), | ||
); | ||
} | ||
} |
Oops, something went wrong.