Skip to content

Add stale time for fetching in settings-page#6247

Merged
ffjlabo merged 1 commit into
masterfrom
reduce-fetch-setting-pages
Sep 19, 2025
Merged

Add stale time for fetching in settings-page#6247
ffjlabo merged 1 commit into
masterfrom
reduce-fetch-setting-pages

Conversation

@hongky-1994
Copy link
Copy Markdown
Contributor

What this PR does:

  • Add staletime to force useQuery hook use cache in stale time

Why we need it:

  • Reduce fetch when switching tabs fast and repeatedly in setting page

Which issue(s) this PR fixes:

Fixes #6246

Does this PR introduce a user-facing change?: No

  • How are users affected by this change: No
  • Is this breaking change: No
  • How to migrate (if breaking change): No

Signed-off-by: kypham <hongkyhvnh@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 28.69%. Comparing base (c102a46) to head (0471b55).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6247      +/-   ##
==========================================
- Coverage   28.70%   28.69%   -0.01%     
==========================================
  Files         560      560              
  Lines       59728    59728              
==========================================
- Hits        17144    17140       -4     
- Misses      41268    41271       +3     
- Partials     1316     1317       +1     
Flag Coverage Δ
. 23.23% <ø> (ø)
.-pkg-app-pipedv1-plugin-analysis 32.64% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 57.90% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 67.48% <ø> (ø)
.-pkg-app-pipedv1-plugin-scriptrun 54.83% <ø> (ø)
.-pkg-app-pipedv1-plugin-terraform 39.49% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 35.51% <ø> (ø)
.-pkg-app-pipedv1-plugin-waitapproval 55.73% <ø> (ø)
.-pkg-plugin-sdk 50.27% <ø> (-0.20%) ⬇️
.-tool-actions-gh-release 19.23% <ø> (ø)
.-tool-actions-plan-preview 25.51% <ø> (ø)
.-tool-codegen-protoc-gen-auth 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@ffjlabo ffjlabo merged commit df329be into master Sep 19, 2025
44 of 45 checks passed
@ffjlabo ffjlabo deleted the reduce-fetch-setting-pages branch September 19, 2025 09:46
github-actions Bot pushed a commit that referenced this pull request Sep 24, 2025
Signed-off-by: kypham <hongkyhvnh@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
khanhtc1202 added a commit that referenced this pull request Sep 24, 2025
* Make quickstart local storage volume off by default (#6240)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* fix: upgrade dayjs from 1.11.13 to 1.11.15 (#6242)

Snyk has created this PR to upgrade dayjs from 1.11.13 to 1.11.15.

See this package in yarn:
dayjs

See this project in Snyk:
https://app.snyk.io/org/pipecd/project/f41c5767-b506-4f59-beb9-ef662258eb9a?utm_source=github&utm_medium=referral&page=upgrade-pr

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Add stale time for fetching in settings-page (#6247)

Signed-off-by: kypham <hongkyhvnh@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* fix Details indent (#6248)

Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Add build plugin as part of build step on CI (#6250)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Ensure to cache plugin go mod in plugin release workflow (#6251)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Get deploy targets by plugin name (#6253)

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Fix failed test on CI (#6255)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Fix failed tests on action planpreview (#6256)

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Change test/lint workflow to correctly report completion status (#6257)

Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

* Update RELEASE to v0.54.2 (#6267)

Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>

---------

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
Signed-off-by: pipecd-bot <pipecd.dev@gmail.com>
Signed-off-by: kypham <hongkyhvnh@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
Co-authored-by: Khanh Tran <32532742+khanhtc1202@users.noreply.github.com>
Co-authored-by: Chris Aniszczyk <caniszczyk@gmail.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Ky_pham <57948086+hongky-1994@users.noreply.github.com>
Co-authored-by: Tetsuya KIKUCHI <97105818+t-kikuc@users.noreply.github.com>
Co-authored-by: Yoshiki Fujikane <40124947+ffjlabo@users.noreply.github.com>
Co-authored-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
This was referenced Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetch too many request on page settings.

3 participants