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

ListSites.AltitudeUnits char limit too short #91

Closed
atn38 opened this issue Nov 21, 2019 · 4 comments
Closed

ListSites.AltitudeUnits char limit too short #91

atn38 opened this issue Nov 21, 2019 · 4 comments

Comments

@atn38
Copy link
Member

atn38 commented Nov 21, 2019

currently character limit is 10, need to be 100 to match that of DataSetAttributes.Unit which is the only other place with units in metabase

I'll update this issue with a patch shortly, posting to alert people.

@atn38
Copy link
Member Author

atn38 commented Nov 21, 2019

see 1276bba for patch40.

@gastil
Copy link
Contributor

gastil commented Nov 21, 2019

I do not understand. Not objecting, just want to understand. Altitude units are expected to be one of {feet, meters, miles, kilometers}. I cannot think of an altitude unit with more than 10 characters. So maybe Postgres complained that a foreign key to the unit dictionary needed to match the length of characters? Does EML actually use units in the schema like stmml units (customUnit or standardUnit)? I have only ever used <altitudeUnits>meter</altitudeUnits>. Perhaps a CHECK unitName in ('meters','kilometers','feet','miles') is better than an FK?

I looked at common patterns of usage. In 30 scopes (just Lter, not edi), the following units are used: meter, meters, foot, Foot_US.

@atn38
Copy link
Member Author

atn38 commented Nov 21, 2019 via email

atn38 added a commit that referenced this issue Jan 9, 2020
@atn38
Copy link
Member Author

atn38 commented Jan 10, 2020

closing

@atn38 atn38 closed this as completed Jan 10, 2020
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

No branches or pull requests

2 participants