[PE-7202] Add support for coin_flair_mint on users#490
Merged
Conversation
raymondjacobson
approved these changes
Oct 22, 2025
| JOIN artist_coins ON artist_coins.mint = sol_user_balances.mint -- ensure mapped in artist_coins | ||
| WHERE sol_user_balances.user_id = u.user_id | ||
| AND sol_user_balances.balance > 0 | ||
| AND sol_user_balances.mint != '9LzCMqDgTKYz9Drzqnpgee3SGa89up3a247ypMj2xrqM' -- ignore prod wAUDIO |
Member
There was a problem hiding this comment.
could do AND sol_user_balances.mint NOT IN ('9LzCMqDgTKYz9Drzqnpgee3SGa89up3a247ypMj2xrqM', 'BELGiMZQ34SDE6x2FUaML2UHDAgBLS64xvhXjX5tBBZo', 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZy4z6cQ')
Contributor
Author
There was a problem hiding this comment.
Oh sure I suppose I could. This was existing and I think each of them was added in incremental PRs 😅
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.
Adds the column to track preferred coin flair mint and logic to use it for computing the badge on user records
nulluses existing 'auto' logicAlso adds the column to the response for the user to facilitate the edit profile flow.
Note: Needs an indexing change in the
appsrepo to actually set these. I've only tested via unit tests for now.