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

UUID's should be rendered Field::String #1404

Merged
merged 2 commits into from
Oct 5, 2020
Merged

UUID's should be rendered Field::String #1404

merged 2 commits into from
Oct 5, 2020

Conversation

tarellel
Copy link
Contributor

If you're using a database with with an attribute set as UUID datatype, when generating the dashboards views you'll be presented with an exception error when visiting any of the dashboards views. When using a UUID attribute, it should be rendered in the view as a a string. This prevents raising the exception error when processing the attributes in the _collection.html.erb template with the the render_field method.

@tarellel tarellel changed the title UUID's should be rendered as a string UUID's should be rendered Field::String Aug 23, 2019
@nickcharlton
Copy link
Member

Thanks!

Is there a test we could add to this to ensure the change is correct and doesn't get broken in future?

@nickcharlton nickcharlton added bug breakages in functionality that is implemented fields new fields, displaying and editing data labels Jan 2, 2020
@nickcharlton
Copy link
Member

After having just merged a PR for showing numbers correctly, I'm going to do the same here — we'll catch any issues in the future if it goes wrong.

@nickcharlton nickcharlton merged commit c032249 into thoughtbot:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug breakages in functionality that is implemented fields new fields, displaying and editing data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants