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

fix annotations for columns with long data types #622

Merged
merged 2 commits into from
May 23, 2019
Merged

fix annotations for columns with long data types #622

merged 2 commits into from
May 23, 2019

Conversation

colbymelvin
Copy link
Contributor

@colbymelvin colbymelvin commented May 17, 2019

Addresses issue #621

@@ -943,7 +943,8 @@ def self.when_called_with(options = {})
[:active, :boolean, { limit: 1, comment: 'ACTIVE' }],
[:name, :string, { limit: 50, comment: 'NAME' }],
[:notes, :text, { limit: 55, comment: 'NOTES' }],
[:no_comment, :text, { limit: 20, comment: nil }]
[:no_comment, :text, { limit: 20, comment: nil }],
[:location, :geometry_collection, { limit: nil, comment: nil }]
Copy link
Contributor Author

@colbymelvin colbymelvin May 17, 2019

Choose a reason for hiding this comment

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

With this new column, this spec will fail with an ArgumentError: negative argument if you comment out the newly-added logic in lib/annotate/annotate_models.rb

@drwl
Copy link
Collaborator

drwl commented May 21, 2019

@colbymelvin Thanks for reporting the issue + working on a fix. I'm trying to understand the root cause more, but the PR looks fairly straight forward. I'll try and carve out some time tonight or tomorrow to review.

@drwl
Copy link
Collaborator

drwl commented May 23, 2019

Looks good to me. Thanks again for reporting the issue and submitting a PR.

@drwl drwl merged commit 55c23eb into ctran:develop May 23, 2019
@ilevin350
Copy link

Any idea when this fix will be cut into a production release of the gem?

@colbymelvin colbymelvin deleted the fix-negative-argument-large-columns branch October 7, 2019 21:04
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