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

Unable to use for 15-digit site ID's #187

Open
kkjones-usgs opened this issue Aug 10, 2020 · 2 comments
Open

Unable to use for 15-digit site ID's #187

kkjones-usgs opened this issue Aug 10, 2020 · 2 comments

Comments

@kkjones-usgs
Copy link
Contributor

The help text for the 'Site or Sites' field says that the field takes 8-15 digit site codes. I am able to successfully Request Data for 8 digit site ID's but when I enter a 15 digit site ID I get the error message: 'site list in invalid format'.

@balisujohn
Copy link

balisujohn commented Aug 18, 2020

It looks like the input validation regex I wrote for site ID verification only allowed 8-12 digit site ID's. I think that was an oversight, but there may have been a special reason we did not allow 15 digit ID's.

You're gonna want to update the regex on line 103 of inputvalidation.js.

https://github.com/usgs/nwisweb-tableau-data-connector/blob/master/src/inputValidation.js

Feel free to reach out with any other questions.

@kkjones-usgs
Copy link
Contributor Author

Thanks!

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