Skip to content

refactor: remove UpgradeMode from sample server DTOs and logic#116

Merged
JusterZhu merged 1 commit into
mainfrom
refactor/remove-upgrade-mode
Jun 11, 2026
Merged

refactor: remove UpgradeMode from sample server DTOs and logic#116
JusterZhu merged 1 commit into
mainfrom
refactor/remove-upgrade-mode

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

Closes #115

Remove the UpgradeMode field from the sample server's VerifyDTO and VerificationResultDTO, along with the filtering and logging logic in Program.cs that consumed it.

- Remove UpgradeMode from VerifyDTO and VerificationResultDTO
- Remove UpgradeMode-based filtering and logging in Program.cs

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 11, 2026 11:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Refactors the sample update server to remove the UpgradeMode concept from request/response DTOs and from verification-time filtering/logging, aligning the server with a unified-response approach (return all matching packages without mode-based filtering). The PR also introduces a new Hub sample markdown document that is unrelated to the stated scope/issue.

Changes:

  • Removed UpgradeMode from VerifyDTO and VerificationResultDTO.
  • Removed mode-based filtering and mode-label logging from the verification handler in Program.cs.
  • Added a new markdown article under src/Hub/Samples (scope mismatch with PR description/issue).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Server/Program.cs Removes UpgradeMode logging/filtering so verification returns all matching packages.
src/Server/DTOs/VerifyDTO.cs Drops UpgradeMode from the verification request DTO.
src/Server/DTOs/VerificationResultDTO.cs Drops UpgradeMode from the verification response DTO.
src/Hub/Samples/VS-Code-Claude-Code-DeepSeek-V4-Pro-实战.md Adds a new article; currently unrelated to the PR’s described purpose and includes a token-like placeholder string.
Comments suppressed due to low confidence (2)

src/Hub/Samples/VS-Code-Claude-Code-DeepSeek-V4-Pro-实战.md:5

  • This PR is scoped (per title/description and issue #115) to removing UpgradeMode from the sample server DTOs and verification logic, but it also adds an unrelated long-form article under src/Hub/Samples. If this file is intended, please update the PR description/scope; otherwise it should be moved to a separate PR to keep the change set focused and make the issue closure accurate.
    src/Hub/Samples/VS-Code-Claude-Code-DeepSeek-V4-Pro-实战.md:26
  • The example token value starts with sk-…, which can look like a real secret and may trigger secret-scanning / false-positive alerts. Consider using a clearly non-secret placeholder that doesn’t resemble common API key formats.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JusterZhu JusterZhu merged commit 480c2d8 into main Jun 11, 2026
3 checks passed
@JusterZhu JusterZhu deleted the refactor/remove-upgrade-mode branch June 11, 2026 12:25
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.

refactor: remove UpgradeMode from sample server DTOs and logic

2 participants