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

Feature/ Add api data fetching in other components #205

Merged
merged 12 commits into from
Nov 22, 2023

Conversation

ThatcherK
Copy link
Contributor

@ThatcherK ThatcherK commented Nov 13, 2023

  • Extending api data fetching to map indicators and tables.

  • Allow for setting of school geolocation data url/ ID via the CMS

@ThatcherK ThatcherK requested a review from wakibi November 14, 2023 09:20
@@ -22,8 +22,9 @@ const renderViz = (className) => {
dichart.showLoading();
const { keyFacts, location } = window.DIState.getState;

if (keyFacts && keyFacts.url) {
fetchData(keyFacts.url)
if (keyFacts && (keyFacts.url || keyFacts.dataID)) {
Copy link

Choose a reason for hiding this comment

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

Could use optional chaining here? And everywhere else we have keyFacts.dataID?

@ThatcherK ThatcherK force-pushed the feature/fetch-data-from-api branch from 7613f3c to 1101edb Compare November 16, 2023 08:21
@ThatcherK ThatcherK requested a review from wakibi November 16, 2023 08:22
@ThatcherK ThatcherK force-pushed the feature/fetch-data-from-api branch from 1101edb to 5c007f8 Compare November 22, 2023 05:53
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
13.2% 13.2% Duplication

@ThatcherK ThatcherK merged commit 689a124 into dev Nov 22, 2023
@ThatcherK ThatcherK deleted the feature/fetch-data-from-api branch November 22, 2023 10:06
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.

2 participants