Skip to content

Commit

Permalink
remove console.log entries
Browse files Browse the repository at this point in the history
  • Loading branch information
scottreisdorf committed Nov 29, 2018
1 parent 2be7f04 commit 8b6d82f
Show file tree
Hide file tree
Showing 80 changed files with 140 additions and 176 deletions.
8 changes: 4 additions & 4 deletions ui/ui-app/src/main/resources/static/js/auth/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "users.table.controller" */ './users/UsersTableController')
.then(mod => {
console.log('imported UsersTableController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down Expand Up @@ -61,7 +61,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "user.details.controller" */ './users/user-details/UserDetailsController')
.then(mod => {
console.log('imported UserDetailsController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down Expand Up @@ -91,7 +91,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "groups.table.controller" */ './groups/GroupsTableController')
.then(mod => {
console.log('imported GroupsTableController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down Expand Up @@ -123,7 +123,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "groups.details.controller" */ './groups/group-details/GroupDetailsController')
.then(mod => {
console.log('imported GroupDetailsController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ export class UserDetailsController implements ng.IComponentController {
return item.name;
});
};


}

const module = angular.module(moduleName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export class KyloTimerDirective {

ngOnChanges(changes: SimpleChanges): void {
if (!changes.startTime.firstChange) {
console.log(changes.startTime);
this.time = changes.startTime.currentValue;
this.format();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "feedmgr.business-metadata.controller" */ './BusinessMetadataController')
.then(mod => {
console.log('imported BusinessMetadataController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class SelectDatasetStepComponent extends DatasourceComponent implements
}

onBrowserComponentFiltered(files:BrowserObject[]){
console.log('FINISHED UPDATING COMPONENT ',files)

this.cd.markForCheck();
}

Expand Down Expand Up @@ -127,7 +127,7 @@ onBrowserComponentFiltered(files:BrowserObject[]){
this.initDataSource();


console.log("DS Changed!!!")

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class CatalogService {
});
}
else {
console.log('returning list ',list)

return list;
}
}).catch((e:any) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ export class PreviewDatasetCollectionService {
this.datasetsSubject = new Subject<DatasetChangeEvent>();
this.datasets$ = this.datasetsSubject.asObservable();
this.id = _.uniqueId("previewDatasetCollection-")
console.log("NEW PreviewDatasetCollectionService ",this.id);

}

public subscribeToDatasetChanges(observer:PartialObserver<DatasetChangeEvent>):ISubscription{
return this.datasetsSubject.subscribe(observer);
}

public reset(){
console.log("reset datasets ",this.id)

this.datasets.forEach(dataset => dataset.collectionStatus = DatasetCollectionStatus.REMOVED);
this.datasets = [];
}
Expand All @@ -76,7 +76,7 @@ export class PreviewDatasetCollectionService {
public addDataSet(dataset:PreviewDataSet){
//only add if it doesnt exist yet
if(!this.exists(dataset)) {
console.log("ADDED Dataset ",this.id,dataset)

this.datasets.push(dataset);
dataset.collectionStatus = DatasetCollectionStatus.COLLECTED;
//notify the observers of the change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export class ConnectorComponent {
return [];
}))
.subscribe(() => {
console.log('validated');

});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class BrowserComponent implements OnInit, OnDestroy {
}

this.state.go(this.getStateName(), params, options).then((res:any) =>{
console.log('transitioned!! ',res)

},(err:any) => {
console.log('error ',err)
});
Expand Down Expand Up @@ -422,7 +422,7 @@ export class BrowserComponent implements OnInit, OnDestroy {
* @param value
*/
preview(row:BrowserObject,column:BrowserColumn,value:any) {
console.log('preview ',row,column,value)

this.selectionService.clearSelected(this.datasource.id);
this.selectionStrategy.toggleChild(this.node, row.name, true);
this.initSelection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ export class CatalogPreviewDatasetComponent implements OnInit, OnDestroy {
protected startLoading(){
this.loading = true;
this._tdLoadingService.register(CatalogPreviewDatasetComponent.LOADER);
console.log("START LOADING ",CatalogPreviewDatasetComponent.LOADER)


}

protected finishedLoading(){
this.loading = false;
this._tdLoadingService.resolve(CatalogPreviewDatasetComponent.LOADER);
console.log("FINISHED LOADING ",CatalogPreviewDatasetComponent.LOADER)

}


Expand Down Expand Up @@ -246,8 +246,4 @@ export class CatalogPreviewDatasetComponent implements OnInit, OnDestroy {

}
}




}
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,4 @@ export class DatasetSimpleTableComponent {
return widthMap;

}





}
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class PreviewSchemaComponent implements OnInit {
this.datasets.push(dataset)
}
else {
console.log("skipping collected dataset ",dataset,this)

}

})
Expand Down Expand Up @@ -345,7 +345,7 @@ export class PreviewSchemaComponent implements OnInit {
dataSet.collectionStatus = DatasetCollectionStatus.COLLECTED;
}
if(this.autoCollect && this.editable){
console.log('ADDING dataset ',dataSet)

this.addToCollection(dataSet);
}
});
Expand All @@ -366,7 +366,7 @@ export class PreviewSchemaComponent implements OnInit {

this.previewSchemaService.updateDataSetsWithCachedPreview([previewDataSet])
if(this.autoCollect && this.editable){
console.log('ADDING dataset ',previewDataSet)

this.addToCollection(previewDataSet);
}
if(this.previewDatasetCollectionService.exists(previewDataSet) && !previewDataSet.isCollected()){
Expand Down Expand Up @@ -426,7 +426,7 @@ export class PreviewSchemaComponent implements OnInit {
_.each(response.results.datasets,(dataset:PreviewDataSet,key:string)=> {
this.previewSchemaService.updateDataSetsWithCachedPreview([dataset])
if(this.autoCollect && this.editable){
console.log('ADDING dataset ',dataset)

this.addToCollection(dataset);
}
if(this.previewDatasetCollectionService.exists(dataset) && !dataset.isCollected()){
Expand All @@ -450,8 +450,6 @@ export class PreviewSchemaComponent implements OnInit {
}

}


}


Expand Down Expand Up @@ -582,11 +580,6 @@ export class SimpleTableComponent {
this.data = this.rows;
this.filter();
}





}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ export class SchemaParseSettingsDialog {
}

apply(){
console.log("APPLY ",this.selectedParser)

this.dialogRef.close(this.selectedParser)
}

cancel(): void {
this.dialogRef.close();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export abstract class AbstractSchemaTransformService {
let statusCheckTime = 300

let formatDetected = (data: TransformResponse):void => {
console.log('FORMAT DETECTED ', data,);

// this.result = data;
observer.next(data);
}
Expand Down Expand Up @@ -52,7 +52,7 @@ export abstract class AbstractSchemaTransformService {
}

let fetchProgress = (id: string) => {
console.log('PROGRESS FOR ', id)

this.http.get("/proxy/v1/spark/shell/transform/" + id).subscribe((data: any) => {
checkProgress(data);
})
Expand All @@ -61,7 +61,7 @@ export abstract class AbstractSchemaTransformService {

this.http.post(url, request)
.subscribe((data: any) => {
console.log('DATA', data)

checkProgress(data);
}, error1 => {
console.log("Preview Error",error1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class FileMetadataTransformService {
let cacheKey = datasource.id+"_"+paths.sort().toString();
if(this.cache[cacheKey]){
observable = Observable.of(this.cache[cacheKey]);
console.log("returning cached result of file metadata transform for ",paths);

}
else {
observable = new Observable<FileMetadataTransformResponse>((observer) => {
Expand All @@ -89,7 +89,7 @@ export class FileMetadataTransformService {
let statusCheckTime = 300

let formatDetected = (data: FileMetadataTransformResponse): void => {
console.log('FORMAT DETECTED ', data,);

this.detectionResult = {}

this.detectionResult.filePaths = paths;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class FileMetadataTransformService {
}

let fileMetadataProgress = (id: string) => {
console.log('PROGRESS FOR ', id)

this.http.get("/proxy/v1/spark/shell/file-metadata/" + id).subscribe((data: any) => {
checkProgress(data);
}, error1 => {
Expand All @@ -137,7 +137,7 @@ export class FileMetadataTransformService {

this.http.post("/proxy/v1/spark/shell/file-metadata", request)
.subscribe((data: any) => {
console.log('DATA', data)

checkProgress(data);
});

Expand All @@ -147,6 +147,4 @@ export class FileMetadataTransformService {
return observable;

}


}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class PreviewSchemaService extends AbstractSchemaTransformService{
dataset.clearPreviewError();
dataset.preview = cachedPreview.preview;
dataset.schema = cachedPreview.schema;
console.log("Updated dataset",dataset," with cached preview")

}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "admin.domain-types.controller" */ './DomainTypesController')
.then(mod => {
console.log('imported DefineFeedCompleteController mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down Expand Up @@ -69,7 +69,7 @@ class ModuleFactory {
loadMyCtrl: ['$ocLazyLoad', ($ocLazyLoad: any) => {
return import(/* webpackChunkName: "admin.domain-types-details.component" */ './details/details.component')
.then(mod => {
console.log('imported domainTypeDetailsComponent mod', mod);

return $ocLazyLoad.load(mod.default)
})
.catch(err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ import {FeedAccessControlService} from './feeds/define-feed-ng2/services/feed-ac
})
export class KyloFeedManagerModule {
constructor(injector: Injector) {
console.log("Loading KyloFeedManagerModule");

require("./module");
injector.get("$ocLazyLoad").inject(moduleName);
require("./module-require");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export class ImportFeedComponent implements OnInit, OnDestroy{
let control = nestedForm.get(prop.propertyKey);
if(control){
prop.propertyValue = control.value;
console.log('SET THE PROPERTY VALUE ',prop,prop.propertyValue)

}
}

Expand Down Expand Up @@ -634,7 +634,7 @@ export class ImportFeedComponent implements OnInit, OnDestroy{
let nestedForm: FormGroup = new FormGroup({})
this.formGroup.addControl(formName, nestedForm);
option.properties.forEach((prop:ImportProperty) => {
console.log("adding form control ",prop.propertyKey,prop)

nestedForm.addControl(prop.propertyKey, new FormControl(prop.propertyValue, [Validators.required]));
});
}
Expand Down Expand Up @@ -717,7 +717,7 @@ export class ImportFeedComponent implements OnInit, OnDestroy{
let dataSet =preview.toSparkDataSet();
this.catalogService.createDataSetWithTitle(dataSet).subscribe((ds:SparkDataSet) => {
//find or create dataset then
console.log("REMAP ",importProperty,importProperty.componentId,"TO ",dataSet, ds)

let valid = true;
let schemaNeeded = "";
//validate schema
Expand Down
Loading

0 comments on commit 8b6d82f

Please sign in to comment.