mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-03 16:39:54 +00:00
Resolve "Backend fails hard when importing table data with very long column name"
This commit is contained in:
parent
56e6e5d211
commit
22c2f80f12
15 changed files with 366 additions and 17 deletions
web-frontend/modules/database/components/field
|
@ -34,6 +34,12 @@
|
|||
>
|
||||
This field name is not allowed.
|
||||
</div>
|
||||
<div
|
||||
v-else-if="$v.values.name.$dirty && !$v.values.name.maxLength"
|
||||
class="error"
|
||||
>
|
||||
This field name is too long.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
|
@ -70,11 +76,14 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { required } from 'vuelidate/lib/validators'
|
||||
import { required, maxLength } from 'vuelidate/lib/validators'
|
||||
|
||||
import form from '@baserow/modules/core/mixins/form'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { RESERVED_BASEROW_FIELD_NAMES } from '@baserow/modules/database/utils/constants'
|
||||
import {
|
||||
RESERVED_BASEROW_FIELD_NAMES,
|
||||
MAX_FIELD_NAME_LENGTH,
|
||||
} from '@baserow/modules/database/utils/constants'
|
||||
|
||||
// @TODO focus form on open
|
||||
export default {
|
||||
|
@ -119,6 +128,7 @@ export default {
|
|||
values: {
|
||||
name: {
|
||||
required,
|
||||
maxLength: maxLength(MAX_FIELD_NAME_LENGTH),
|
||||
mustHaveUniqueFieldName: this.mustHaveUniqueFieldName,
|
||||
mustNotClashWithReservedName: this.mustNotClashWithReservedName,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue