Skip to content

fix(backend): validate stellar user role and index soroban events#352

Merged
vic-Gray merged 1 commit into
code-flexing:mainfrom
Dopezapha:feature-stellar-role-soroban-indexes
May 28, 2026
Merged

fix(backend): validate stellar user role and index soroban events#352
vic-Gray merged 1 commit into
code-flexing:mainfrom
Dopezapha:feature-stellar-role-soroban-indexes

Conversation

@Dopezapha
Copy link
Copy Markdown
Contributor

Closes #310
Closes #311

PR Description

#311 fixes Stellar-authenticated user creation so newly created users always receive a valid default platform role before persistence. New Stellar users are created through a single helper that assigns UserRole.FARMER and validates that the assigned role belongs to the supported UserRole enum, preventing silent authorization issues from missing or invalid roles.

#310 adds database index support for Soroban event queries. The Soroban event query filters by contract_id, type, and ledger, then sorts by ledger and paging_token; the new migration and entity metadata add indexes for those access patterns so event lookups remain efficient as indexed event volume grows.

Changed

@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

@Dopezapha is attempting to deploy a commit to the vic's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Dopezapha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vic-Gray
Copy link
Copy Markdown
Collaborator

pls fix conflicts @Dopezapha

@Dopezapha Dopezapha force-pushed the feature-stellar-role-soroban-indexes branch from 45e7aa8 to bc3c026 Compare May 28, 2026 15:34
@Dopezapha
Copy link
Copy Markdown
Contributor Author

Conflicts fixed

@vic-Gray vic-Gray merged commit 3b6f1c9 into code-flexing:main May 28, 2026
4 of 11 checks passed
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.

#608 Ensure role is set correctly for new users in StellarStrategy #607 Add DB index recommendations to SorobanIndexerService

2 participants