Skip to content

fix: simplify portal serve caching logic and fix debounce scheduling#252

Merged
aliasghar98 merged 1 commit intodevfrom
saeedjamshaid/fix-caching-issue-in-portal-serve
Mar 25, 2026
Merged

fix: simplify portal serve caching logic and fix debounce scheduling#252
aliasghar98 merged 1 commit intodevfrom
saeedjamshaid/fix-caching-issue-in-portal-serve

Conversation

@saeedjamshaid
Copy link
Copy Markdown
Contributor

Summary

  • Remove unnecessary mutex and event queue from portal serve action — these were left over from a prior implementation and no longer needed after the DebounceService refactor
  • Fix DebounceService to reschedule execution if a new handler arrives while the current one is still processing, preventing missed updates

Test plan

  • Run apimatic portal serve and make rapid successive file changes — verify the portal rebuilds and live-reloads correctly without duplicate or missed builds
  • Verify no regressions in normal single-change flow

🤖 Generated with Claude Code

  - Remove unnecessary mutex and event queue from portal serve action
  - Fix debounce service to reschedule execution if a new handler arrived
    during processing
@sonarqubecloud
Copy link
Copy Markdown

@aliasghar98 aliasghar98 self-requested a review March 25, 2026 05:52
@saeedjamshaid saeedjamshaid changed the base branch from beta to dev March 25, 2026 06:13
Copy link
Copy Markdown
Collaborator

@aliasghar98 aliasghar98 left a comment

Choose a reason for hiding this comment

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

LGTM

@aliasghar98 aliasghar98 merged commit 8fd8e17 into dev Mar 25, 2026
2 checks passed
@aliasghar98 aliasghar98 deleted the saeedjamshaid/fix-caching-issue-in-portal-serve branch March 25, 2026 08:05
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