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

Update Harvest node machine name field settings to limit length and replace single hypen #2784

Merged
merged 2 commits into from
Jan 4, 2019

Conversation

rhabbachi
Copy link
Contributor

@rhabbachi rhabbachi commented Dec 29, 2018

connects #2635

We ran into similar issues as stated in #2635, when a site admin tries to be too explicit with the Harvest Source name and hits database field limitations in terms of length and allowed characters.

How to reproduce

See #2635

QA Steps

  1. Open node/add/harvest-source.
  2. Input "harvest-machine-name-that-is-too-long-to-be-true-because-this-is-really-really-really-long" into the Title field.

Result: the machine name should show "harvest_machine_name_that_is_to"

Merge process

  • N/A

Reminders

  • There is test for the issue.
  • Coding standards checked.
  • Review docs.getdkan.com (or in /docs) to see if it still covers the scope of the PR and update if needed.

@janette
Copy link
Member

janette commented Jan 4, 2019

This is great @rhabbachi can you also update the help text to include the character limit in case the user is adding similar long source names

A URL-safe version of the text. It may only contain lowercase letters, numbers and underscores and may not exceed 31 characters. Leave blank to re-generate.

warning

https://github.com/GetDKAN/dkan/blob/7.x-1.x/modules/dkan/dkan_harvest/dkan_harvest.features.field_base.inc#L146

@rhabbachi
Copy link
Contributor Author

@janette Done!

@janette
Copy link
Member

janette commented Jan 4, 2019

Fabulous! Thank you @rhabbachi

@janette janette merged commit db926da into GetDKAN:7.x-1.x Jan 4, 2019
dafeder pushed a commit that referenced this pull request Apr 24, 2020
…eplace single hypen (#2784)

* Update Harvest node machine name field setting to limit length and hyphen

* Update the help text to include the character limit
dafeder pushed a commit that referenced this pull request Apr 24, 2020
…eplace single hypen (#2784)

* Update Harvest node machine name field setting to limit length and hyphen

* Update the help text to include the character limit
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

3 participants