-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ng: conditionally enable debugger_v2 (#3431)
Using the new experimentPlugin mechanism (#3344), we will control whether to show a plugin or not. Please use `http://localhost:6006/ng_index.html?experimentalPlugin=debugger-v2` to see the debugger-v2 in the future.
- Loading branch information
1 parent
572f9be
commit 5e40895
Showing
12 changed files
with
206 additions
and
13 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,19 @@ | ||
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
==============================================================================*/ | ||
|
||
import {State as CoreState} from './core/store/core_types'; | ||
import {State as FeatureFlagState} from './feature_flag/store/feature_flag_types'; | ||
|
||
export type State = CoreState & FeatureFlagState; |
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
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
54 changes: 54 additions & 0 deletions
54
tensorboard/webapp/webapp_data_source/tb_server_data_source_test.ts
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,54 @@ | ||
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
==============================================================================*/ | ||
import {TestBed} from '@angular/core/testing'; | ||
|
||
import {TBServerDataSource} from './tb_server_data_source'; | ||
import { | ||
TBHttpClientTestingModule, | ||
HttpTestingController, | ||
} from './tb_http_client_testing'; | ||
|
||
describe('tb_server_data_source', () => { | ||
describe('TBServerDataSource', () => { | ||
let dataSource: TBServerDataSource; | ||
let httpMock: HttpTestingController; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [TBHttpClientTestingModule], | ||
providers: [TBServerDataSource], | ||
}).compileComponents(); | ||
|
||
httpMock = TestBed.get(HttpTestingController); | ||
dataSource = TestBed.get(TBServerDataSource); | ||
}); | ||
|
||
describe('fetchPluginsListing', () => { | ||
it('fetches from "data/plugins_listing"', () => { | ||
dataSource.fetchPluginsListing([]).subscribe(jasmine.createSpy()); | ||
httpMock.expectOne('data/plugins_listing'); | ||
}); | ||
|
||
it('passes query parameter, "experimentalPlugin"', () => { | ||
dataSource | ||
.fetchPluginsListing(['foo', 'bar']) | ||
.subscribe(jasmine.createSpy()); | ||
httpMock.expectOne( | ||
'data/plugins_listing?experimentalPlugin=foo&experimentalPlugin=bar' | ||
); | ||
}); | ||
}); | ||
}); | ||
}); |