mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-12 19:18:32 -05:00
Adding Derived Columns to ADS Flatfile Import (#16795)
* Adding derived column boilerplate * brandan preliminary frontend changes * empty commit * added new param * updating contracts, dialogue changes * utils changes, saving timeout attempt * pushing for aasim * Cleaning up code and fixing the issue in theory * changing button, did not solve independent scroll * Fixing the scroll bar issue * updating flat file service * adding override keyword to overrriden method * improving UI * pushing changes associated with resolved comments * localizing strings, editing comments * all comments resolved * Fixing a test * updating import package Updating azure MFA bug * Clearing navigation validator Fixing broken table name change * fixed prose test * removing unused code from tests * Fixed PR comments * Fixing some PR comments * WIP * Fixing transformation code and create derived column dialog styling * removing unused code * Adding comment for console log * fixed table styling * Adding some aria labels * Fixed some code cleanup issues * update import service Co-authored-by: Aasim Khan <aasimkhan30@gmail.com> Co-authored-by: bnhoule <t-bhoule@microsoft.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import { ImportDataModel, ColumnMetadata } from '../wizard/api/models';
|
||||
import { FlatFileProvider, PROSEDiscoveryParams, InsertDataParams, GetColumnInfoParams, ChangeColumnSettingsParams, PROSEDiscoveryResponse, InsertDataResponse, ChangeColumnSettingsResponse, GetColumnInfoResponse } from '../services/contracts';
|
||||
import { FlatFileProvider, PROSEDiscoveryParams, InsertDataParams, GetColumnInfoParams, ChangeColumnSettingsParams, PROSEDiscoveryResponse, InsertDataResponse, ChangeColumnSettingsResponse, GetColumnInfoResponse, LearnTransformationParams, LearnTransformationResponse, SaveTransformationParams, SaveTransformationResponse } from '../services/contracts';
|
||||
|
||||
export class ImportTestUtils {
|
||||
|
||||
@@ -170,6 +170,10 @@ export class TestImportDataModel implements ImportDataModel {
|
||||
schema: string;
|
||||
filePath: string;
|
||||
fileType: string;
|
||||
transPreviews: string[][];
|
||||
originalProseColumns: ColumnMetadata[];
|
||||
derivedColumnName: string;
|
||||
newFileSelected: boolean;
|
||||
}
|
||||
|
||||
export class TestFlatFileProvider implements FlatFileProvider {
|
||||
@@ -186,6 +190,12 @@ export class TestFlatFileProvider implements FlatFileProvider {
|
||||
sendChangeColumnSettingsRequest(params: ChangeColumnSettingsParams): Thenable<ChangeColumnSettingsResponse> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
sendLearnTransformationRequest(params: LearnTransformationParams): Thenable<LearnTransformationResponse> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
sendSaveTransformationRequest(params: SaveTransformationParams): Thenable<SaveTransformationResponse> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user