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

chore: increase contact us field limits #1887

Merged
merged 1 commit into from
May 21, 2024

Conversation

alexanderleegs
Copy link
Contributor

No description provided.

Copy link
Contributor

@seaerchin seaerchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but please check backend to see if it also enforces these limits

Comment on lines +169 to +179
const CONTACT_TITLE_MAX_LENGTH = 50
const CONTACT_DESCRIPTION_MAX_LENGTH = 400

// Locations
const LOCATION_TITLE_MIN_LENGTH = 1
const LOCATION_TITLE_MAX_LENGTH = 30
const LOCATION_ADDRESS_MAX_LENGTH = 30
const LOCATION_TITLE_MAX_LENGTH = 50
const LOCATION_ADDRESS_MAX_LENGTH = 50
const LOCATION_OPERATING_DAYS_MIN_LENGTH = 2
const LOCATION_OPERATING_DAYS_MAX_LENGTH = 30
const LOCATION_OPERATING_DAYS_MAX_LENGTH = 50
const LOCATION_OPERATING_HOURS_MIN_LENGTH = 2
const LOCATION_OPERATING_HOURS_MAX_LENGTH = 30
const LOCATION_OPERATING_HOURS_MAX_LENGTH = 50
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok on the frontend - but are these also coded into our backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes required for backend! Backend checks for type of input, but not the length - I think we're okay with this because it's more of a restriction to help users not misuse the fields - but Shaz was showing use cases where the current limit is insufficient

@alexanderleegs alexanderleegs merged commit 0836a4b into develop May 21, 2024
11 of 12 checks passed
@mergify mergify bot deleted the chore/increase-contact-us-field-limits branch May 21, 2024 04:28
@seaerchin seaerchin mentioned this pull request May 30, 2024
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.

2 participants