Skip to content

Commit

Permalink
feat(ui): disable variables for column names that affect the schema (#…
Browse files Browse the repository at this point in the history
…2235)

We'd like to schema of dataset to be predicitble. So we start
disallowing dynamic column names where it could happen.
  • Loading branch information
davinov authored Oct 18, 2024
1 parent 61ee728 commit 353c13c
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 54 deletions.
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/AbsoluteValueStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
data-path=".newColumn"
:errors="errors"
:warning="duplicateColumnName"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
/>
<StepFormButtonbar />
</div>
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/AddMissingDatesStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
placeholder="Select a column"
data-path=".datesColumn"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:columnNames="columnNames"
:selectedColumns="selectedColumns"
@setSelectedColumns="setSelectedColumns"
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/AddTextColumnStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
data-path=".newColumn"
:errors="errors"
:warning="duplicateColumnName"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
/>
<InputTextWidget
class="textInput"
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/AggregateStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
placeholder="Add columns"
data-path=".on"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:allowCustom="true"
/>
<ListWidget
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/FormulaStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
data-path=".newColumn"
:errors="errors"
:warning="duplicateColumnName"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
/>
<InputTextWidget
class="formulaInput"
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/RenameStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
:automatic-new-field="false"
data-path=".toRename"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
unstyled-items
:columnNames="columnNames"
:selectedColumns="selectedColumns"
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/SplitStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
placeholder="Enter a column"
data-path=".column"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:columnNames="columnNames"
:selectedColumns="selectedColumns"
@setSelectedColumns="setSelectedColumns"
Expand Down
6 changes: 0 additions & 6 deletions ui/src/components/stepforms/UnpivotStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
placeholder="Add columns to keep"
data-path=".keep"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:allowCustom="true"
/>
<MultiselectWidget
Expand All @@ -29,9 +26,6 @@
placeholder="Add columns to unpivot"
data-path=".unpivot"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:allowCustom="true"
/>
<CheckboxWidget
Expand Down
6 changes: 0 additions & 6 deletions ui/src/components/stepforms/WaterfallStepForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
data-path=".valueColumn"
:syncWithSelectedColumn="false"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:columnNames="columnNames"
:selectedColumns="selectedColumns"
@setSelectedColumns="setSelectedColumns"
Expand Down Expand Up @@ -96,9 +93,6 @@
placeholder="Add columns"
data-path=".groupby"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:allowCustom="true"
/>
<AutocompleteWidget
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/widgets/Aggregation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
placeholder="Select columns"
:data-path="`${dataPath}.columns`"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:allowCustom="true"
/>
<AutocompleteWidget
Expand Down
3 changes: 0 additions & 3 deletions ui/src/components/stepforms/widgets/CumSum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
:data-path="`${dataPath}[1]`"
:warning="duplicateColumnName"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
/>
</div>
</template>
Expand Down
15 changes: 0 additions & 15 deletions ui/src/components/stepforms/widgets/Rename.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
:syncWithSelectedColumn="false"
:data-path="`${dataPath}[0]`"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
:columnNames="columnNames"
:selectedColumns="selectedColumns"
@setSelectedColumns="$emit('setSelectedColumns', $event)"
Expand All @@ -22,9 +19,6 @@
:data-path="`${dataPath}[1]`"
:warning="duplicateColumnName"
:errors="errors"
:available-variables="availableVariables"
:variable-delimiters="variableDelimiters"
:trusted-variable-delimiters="trustedVariableDelimiters"
/>
</div>
</template>
Expand Down Expand Up @@ -58,15 +52,6 @@ export default class RenameWidget extends Vue {
@Prop({ type: Array, default: () => [] })
errors!: ErrorObject[];
@Prop()
availableVariables?: VariablesBucket;
@Prop()
variableDelimiters?: VariableDelimiters;
@Prop()
trustedVariableDelimiters?: VariableDelimiters;
@Prop({ default: () => [] })
selectedColumns!: string[];
Expand Down

0 comments on commit 353c13c

Please sign in to comment.