Skip to content

fix: grantSuggestions/revokeSuggestionGrant RPC calls hitting the REA…#1530

Merged
sandsinh merged 3 commits intomainfrom
SITES-42988
Apr 10, 2026
Merged

fix: grantSuggestions/revokeSuggestionGrant RPC calls hitting the REA…#1530
sandsinh merged 3 commits intomainfrom
SITES-42988

Conversation

@sandsinh
Copy link
Copy Markdown
Contributor

@sandsinh sandsinh commented Apr 10, 2026

Summary

  • Renames PostgREST RPC calls from grant_suggestionswrpc_grant_suggestions and revoke_suggestion_grantwrpc_revoke_suggestion_grant
  • The wrpc_ prefix ensures ALB routing rules correctly direct these write operations to the writer fleet instead of the read replica
  • Corresponding DB migration in adobe/mysticat-data-service#SITES-42988-fix renames the functions and adds deprecated backward-compatible aliases for the old names

Related Issues

  • SITES-42988

Test plan

  • Unit tests updated to assert new RPC names
  • Integration tests pass against local mysticat-data-service:local image (built from SITES-42988-fix branch) via npm run test:it:local -w packages/spacecat-shared-data-access

Note: mysticat-data-service migration must be deployed before this package version is promoted to production.

@sandsinh sandsinh requested a review from JayKid April 10, 2026 11:47
@github-actions
Copy link
Copy Markdown

This PR will trigger a patch release when merged.

@sandsinh sandsinh merged commit 4e077f8 into main Apr 10, 2026
5 checks passed
@sandsinh sandsinh deleted the SITES-42988 branch April 10, 2026 12:52
solaris007 pushed a commit that referenced this pull request Apr 10, 2026
## [@adobe/spacecat-shared-data-access-v3.50.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.50.0...@adobe/spacecat-shared-data-access-v3.50.1) (2026-04-10)

### Bug Fixes

* grantSuggestions/revokeSuggestionGrant RPC calls hitting the REA… ([#1530](#1530)) ([4e077f8](4e077f8))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-data-access-v3.50.1 🎉

The release is available on:

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