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(hub-common): add trackCacheUpdate by default when polling download API #1670

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

sansth1010
Copy link
Contributor

@sansth1010 sansth1010 commented Sep 26, 2024

Bug: When there is no cache for a dataset whose service have editor tracking disabled and download is requested. Cache generation process is completed, a notice that "cache may be outdated" is present. This might be confusing to the user because user just finished generated a cache. The notice is not expected immediately after cache generation.

This fixes the bug by pending trackCacheUpdate query params which contains the response to hide notice when download job is complete.

  1. Description:

  2. Instructions for testing:

  3. Closes Issues: # (if appropriate)

  4. Updated meaningful TSDoc to methods including Parameters and Returns, see Documentation Guide

  5. used semantic commit messages

  6. PR title follows semantic commit format (CRITICAL if the title is not in a semantic format, the release automation will not run!)

  7. updated peerDependencies as needed. CRITICAL our automated release system can not be counted on to update peerDependencies so we must do it manually in our PRs when needed. See the updating peerDependencies section of the release instructions for more details.

@sansth1010 sansth1010 changed the title fix(hub-common): add trackCacheUpdate by default when polling Hub dow… fix(hub-common): add trackCacheUpdate by default when polling download API Sep 26, 2024
Copy link
Contributor

@abp6318 abp6318 left a comment

Choose a reason for hiding this comment

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

Tested locally, lgtm!

@sansth1010 sansth1010 merged commit 0a701c0 into master Sep 26, 2024
5 checks passed
@sansth1010 sansth1010 deleted the b/track-update-cache-status branch September 26, 2024 19:02
esri-dcdev-2 pushed a commit that referenced this pull request Sep 26, 2024
## @esri/hub-common [14.196.1](https://github.com/Esri/hub.js/compare/@esri/hub-common@14.196.0...@esri/hub-common@14.196.1) (2024-09-26)

### Bug Fixes

* **hub-common:** add trackCacheUpdate by default when polling download API ([#1670](#1670)) ([0a701c0](0a701c0))
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