Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗜 Set soft limits for blog title and description #9250

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

aileen
Copy link
Member

@aileen aileen commented Nov 16, 2017

refs #8143

Add max length validations to settings:

  • blog.title: 150 chars
  • blog.description: 200 chars

The validateSettings fn in our validations checks for existing validations properties in our default-settings.json file, similar to other tables in our schema.js.

image

image

refs TryGhost#8143

Add max length validations to settings:
- `blog.title`: 150 chars
- `blog.description`: 200 chars

The `validateSettings` fn in our validations checks for existing `validations` properties in our `default-settings.json` file, similar to other tables in our `schema.js`.
@aileen
Copy link
Member Author

aileen commented Nov 16, 2017

This definitely needs client validation as well, which is currently not in place. Without those, the client returns the error that the setup was already completed. PR for this is coming.

The server side implementation of the two new soft limits work for the setup flow, as changing the title and description in settings.

@kirrg001
Copy link
Contributor

Where are the limits are coming from? 150 and 200? I can't find it.

@aileen
Copy link
Member Author

aileen commented Nov 16, 2017

@kirrg001 They exist so far only on our client side in the settings validation here. I also forgot where I found them in first place and spent like 15 minutes to find the again 😂

@kirrg001
Copy link
Contributor

Okay i got confused because of your comment

This definitely needs client validation as well, which is currently not in place.

@aileen
Copy link
Member Author

aileen commented Nov 16, 2017

This definitely needs client validation as well, which is currently not in place.

Ah, sorry. Client validation was missing for the setup flow only!!

@aileen
Copy link
Member Author

aileen commented Nov 16, 2017

Here's the mentioned client PR: TryGhost/Admin#909

@kirrg001 kirrg001 merged commit 1bb9d4f into TryGhost:master Nov 16, 2017
@aileen aileen deleted the settings-soft-limits branch April 10, 2018 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants