Repository navigation
Fix demo-tenant quote actions and stale technician availability #74
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b3c96b6
Fix demo-tenant quote actions and stale technician availability
claude 6dcf5a3
Scope the is_demo filter removal to sandbox tenants only
claude 1338d6d
Fix the same is_demo gap in the send-quote SMS route
claude dd39da8
Add explicit sandbox-vs-ordinary is_demo visibility coverage
claude c47df6d
Apply the same sandbox-aware is_demo filter to Dispatch's initial SSR…
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this endpoint is used by a non-sandbox company that has run the load harness, removing this predicate exposes its synthetic jobs as operational work. This is a supported scenario rather than a hypothetical one:
scripts/load-tech-actions.mjsandscripts/load-multi-tech-actions.mjsinsert 75–100 assigned jobs withis_demo: trueinto configurable company slugs, and the former explicitly says the flag reduces operational noise. The same unconditional removal also contaminates the admin job metrics. Include demo rows only for companies recognized byisSandboxDemoCompany, while retainingis_demo = falseelsewhere.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed —
load-tech-actions.mjs/load-multi-tech-actions.mjs/seed-live-qa.mjsdo insertis_demo=trueinto non-sandbox company slugs specifically to keep that traffic out of operator views. Fixed in 6dcf5a3: addedisCompanySandboxDemo()and made the filter conditional everywhere this PR touched it — applied for ordinary companies (unchanged), skipped only forSANDBOX_DEMO_SLUGStenants. Thanks for catching this.Generated by Claude Code
Generated by Claude Code