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

Add API key field to covidcast imports #55

Merged
merged 9 commits into from
Nov 19, 2024
Merged

Add API key field to covidcast imports #55

merged 9 commits into from
Nov 19, 2024

Conversation

rzats
Copy link
Contributor

@rzats rzats commented Aug 12, 2024

Closes #47:

  • Adds an API key field to the COVIDCast signal import dialog.
  • This displays previously hidden private signals in the dropdown, making them available for visualization.

@rzats rzats requested review from melange396 and dshemetov August 12, 2024 22:13
@rzats rzats requested a review from melange396 August 16, 2024 12:49
@rzats
Copy link
Contributor Author

rzats commented Aug 16, 2024

@melange396 also fixed!

Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

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

This works, but it doesnt do its verification until the focus is moved off of the input field, and it doesnt repopulate the metadata until verified... The delay can be confusing and will be frustrating, unless perhaps we include a "working" indicator or similar. Did you explore triggering the key verification on typing (the on:input event instead of on:change)?

src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
@rzats
Copy link
Contributor Author

rzats commented Sep 24, 2024

@melange396

This works, but it doesnt do its verification until the focus is moved off of the input field, and it doesnt repopulate the metadata until verified... The delay can be confusing and will be frustrating, unless perhaps we include a "working" indicator or similar. Did you explore triggering the key verification on typing (the on:input event instead of on:change)?

I moved the key verification to on:input with a debounce that makes sure it only activates once the user stopped typing for 500ms. The timer can be adjusted, try it out and see what you think!

@rzats rzats requested a review from melange396 September 24, 2024 12:33
Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

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

One small comment. Otherwise, the oninput w/ delayed request looks great!

src/components/dialogs/dataSources/COVIDcast.svelte Outdated Show resolved Hide resolved
@rzats rzats requested a review from melange396 October 1, 2024 13:48
src/api/EpiData.ts Outdated Show resolved Hide resolved
@rzats rzats requested a review from melange396 October 10, 2024 14:05
Copy link
Contributor

@melange396 melange396 left a comment

Choose a reason for hiding this comment

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

LGTM!

@rzats rzats merged commit 2ede365 into dev Nov 19, 2024
6 checks passed
@rzats rzats deleted the rzatserkovnyi/api-key branch November 19, 2024 17:25
@melange396 melange396 mentioned this pull request Dec 9, 2024
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.

Add "API Key" field to COVIDcast imports
2 participants