Optional slug and name params for workspace thread creation to use with API.
Adds validation to .new creation to ensure valid field upsert and sluggification of the slug input to prevent breaking the URL when viewed by the user.
Additional Information
Without slug param there is no way to identify thread by some 3rd party uuid4 with api. It's possible to store somewhere additional relation of "3rd party uuid4 - threadSlug", but with having ability of defining thread slug manually - this will be not required - thread slug will be equal to "3rd party uuid" so it will be easy to get required thread.
With thread name definition - it will be easy to use UI as "admin tool for viewing results of api based chats "
Developer Validations
[x] I ran yarn lint from the root of the repo & committed changes
Pull Request Type
original PR by @abrakadobr
Relevant Issues
closes #2507
What is in this change?
Optional slug and name params for workspace thread creation to use with API. Adds validation to
.new
creation to ensure valid field upsert and sluggification of theslug
input to prevent breaking the URL when viewed by the user.Additional Information
Without slug param there is no way to identify thread by some 3rd party uuid4 with api. It's possible to store somewhere additional relation of "3rd party uuid4 - threadSlug", but with having ability of defining thread slug manually - this will be not required - thread slug will be equal to "3rd party uuid" so it will be easy to get required thread.
With thread name definition - it will be easy to use UI as "admin tool for viewing results of api based chats "
Developer Validations
yarn lint
from the root of the repo & committed changes