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 [DEV-9150] Fix double chart request #1971

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Conversation

jayb
Copy link
Collaborator

@jayb jayb commented Feb 28, 2025

[DEV-9150]

This removes a double data request for charts that load remote data via a dataUrl.

It's not clear to me what situation this loadDataFromConfig function is needed. It only loads remote data when 1) there's a dataUrl and 2) there are no url filters, but then this useEffect in CDCChartComponent also loads the remote data in that situation.

In my testing I didn't find any configurations where it's needed, but it's possible I missed something.

Testing Steps

sample config

Load a dataUrl chart locally. On the dev branch, there will be two network requests for the data file in the network tab, on this branch there will be one.

Ensure that the change does not break any other configurations, like dashboards, charts without dataUrl, etc.

Self Review

  • I have added testing steps for reviewers
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests are passing

Screenshots (if applicable)

Additional Notes

@jayb jayb added this to the 4.25.3 milestone Feb 28, 2025
@jayb jayb merged commit eae6ff4 into dev Mar 6, 2025
1 check failed
@jayb jayb deleted the fix/dev-9150-double-request branch March 6, 2025 17:16
Atash3000 added a commit that referenced this pull request Mar 7, 2025
* [DEV-10447] Add feature to hide title on Data-Bite

* Bump dompurify from 3.1.5 to 3.2.4 (#1965)

* Bump nanoid from 3.3.7 to 3.3.8 (#1779)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Publish

 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]

* Publish

 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]

* Publish

 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]
 - @cdc/[email protected]

* Bump dompurify from 3.1.5 to 3.2.4

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.1.5 to 3.2.4.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.1.5...3.2.4)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Doe <[email protected]>

* [viewport-issue] Fixed spelling (#1953)

* [DEV-10422] update COVE help links (#1943)

* Remove extra data request from charts (#1971)

* feature [DEV-10067]: update dropdown and buttons styles to match UX document (#1978)

* wip: update dropdown and buttons styles

* fix: apply text and clear filters button functionality

* FIX:[DEV-9662] Handle Line chart append text (#1969)

* [DEV-9662] Handle Line chart append text

* [DEV-9662] Add guards to CI

* [DEV-9662] Update colors

* [DEV-9662] add guards

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Doe <[email protected]>
Co-authored-by: Jay Boice <[email protected]>
Co-authored-by: Monroe <[email protected]>
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