Track Microsoft Store publication of PWABuilder Windows packages - #6339
Open
Judah Gabriel Himango (JudahGabriel) wants to merge 1 commit into
Open
Judah Gabriel Himango (JudahGabriel) wants to merge 1 commit into
Judah Gabriel Himango (JudahGabriel) wants to merge 1 commit into
Conversation
Add a daily SFEdge sync in the Windows packaging service that patches matching Cosmos package records with Store product IDs. Reuse existing Cosmos configuration, handle paging and recoverable failures, and remove the unused website stub. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3f5d2c20-729b-4f33-88a9-83a30b401431
Contributor
|
Thanks Judah Gabriel Himango (@JudahGabriel) for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
N/A - no linked issue.
PR Type
Describe the current behavior?
PWABuilder records generated Windows packages in CosmosDB but does not connect those records to apps subsequently published in the Microsoft Store. The main website's Store-scanning background service is an unused stub.
Describe the new behavior?
The Windows packaging service now scans SFEdge five minutes after startup and every 24 hours thereafter, reusing its existing CosmosDB configuration. All SFEdge requests use
User-Agent: StoreWeb PWABuilder.PackageFamilyNamesentry.packageIdcase-insensitively and patches onlyproductIdon every corresponding Cosmos document. Older records without the field are supported; unchanged matches are not rewritten and previously discovered IDs are not cleared.Productsenvelope, logs individual product failures, defers catalog/authentication failures to the next daily scan, and cancels work cleanly on shutdown.PR Checklist
npm run testand ensure that all tests passAdditional Information
Backend-only change; npm and browser accessibility checks are not applicable. All 44 focused xUnit cases passed, covering API paging/parsing, matching and Cosmos patches, cancellation, daily scheduling, non-overlap, and managed identity recovery. The main website also builds after stub removal. Moq is added only to the existing test project for Cosmos SDK mocks.
The existing managed identity needs query/read and item-write permissions on
PWABuilderPackages. Without CosmosDB configuration, the job logs a warning and remains disabled. Scheduling is per running service instance, not a distributed singleton.