Skip to content

fix: deploy only granted suggestions for summitPlg for ASO UI#2065

Merged
sandsinh merged 8 commits intomainfrom
SITES-41999
Apr 8, 2026
Merged

fix: deploy only granted suggestions for summitPlg for ASO UI#2065
sandsinh merged 8 commits intomainfrom
SITES-41999

Conversation

@sandsinh
Copy link
Copy Markdown
Contributor

@sandsinh sandsinh commented Mar 30, 2026

Summary

  • Block autofix requests for non-granted suggestions when summit-plg is enabled
  • Before processing autofix, checks if any requested suggestion IDs are not granted via SuggestionGrant.splitSuggestionsByGrantStatus()
  • Returns 403 Forbidden with the list of ungranted suggestion IDs if any are found

Test plan

  • Added unit test verifying 403 is returned when ungranted suggestions are included in autofix request
  • Added unit test verifying autofix proceeds when all suggestions are granted (summit-PLG enabled)
  • Added unit test verifying grant status is not checked when summit-PLG is disabled
  • Verified existing autofix tests still pass (granted suggestions proceed normally)

Related Issues

Resolves SITES-41999

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

This PR will trigger a patch release when merged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@tarunsinghdev tarunsinghdev left a comment

Choose a reason for hiding this comment

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

LGTM.

@sandsinh sandsinh merged commit f9a70d8 into main Apr 8, 2026
20 checks passed
@sandsinh sandsinh deleted the SITES-41999 branch April 8, 2026 10:59
solaris007 pushed a commit that referenced this pull request Apr 8, 2026
## [1.421.1](v1.421.0...v1.421.1) (2026-04-08)

### Bug Fixes

* deploy only granted suggestions for summitPlg for ASO UI ([#2065](#2065)) ([f9a70d8](f9a70d8))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.421.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants