Feature/description support fields length 1000 (#1267)
authorBRAINS YUM <43896676+McFlat@users.noreply.github.com>
Fri, 19 Oct 2018 06:54:01 +0000 (01:54 -0500)
committerChocobozzz <me@florianbigard.com>
Fri, 19 Oct 2018 06:54:01 +0000 (08:54 +0200)
commitd23e6a1c97a6ae3ca8d340a8c9adad268a5be57e
treee5a11500d446b585716d451dd274e8567d36cd2a
parente0628695c3425bf69b5d7a46b24dcdf31892d9b6
Feature/description support fields length 1000 (#1267)

* fix migrations to not use config constant values as it can introduce bugs later when they change; (fixes #1259)
remove constant fields imports from migrations

* add migrations to update description and support fields to 1000 (fixes #1258)

* fix client/server account and video_channel description/support fields to be max len 1000 (fixes #1258);
fix test Should fail with a too long description;
fix test Should fail with a long description;
fix test Should fail with a long description;
Remove USER.SUPPORT from constants since that field no longer exists;
null not false, in migrations/0280-description-support.ts;
video support field 1000, oops;

* rename migration 0280-description-support.ts -> 0285-description-support.ts;
update video support maxlength text
15 files changed:
client/src/app/shared/forms/form-validators/user-validators.service.ts
client/src/app/shared/forms/form-validators/video-channel-validators.service.ts
client/src/app/shared/forms/form-validators/video-validators.service.ts
server/initializers/constants.ts
server/initializers/migrations/0120-video-null.ts
server/initializers/migrations/0195-support.ts
server/initializers/migrations/0245-user-blocked.ts
server/initializers/migrations/0250-video-abuse-state.ts
server/initializers/migrations/0255-video-blacklist-reason.ts
server/initializers/migrations/0260-upload-quota-daily.ts
server/initializers/migrations/0285-description-support.ts [new file with mode: 0644]
server/tests/api/check-params/users.ts
server/tests/api/check-params/video-channels.ts
server/tests/api/check-params/video-imports.ts
server/tests/api/check-params/videos.ts