LF-5428 Add GrownBy to Market Directory Tables - #4291
Draft
kathyavini wants to merge 2 commits into
Draft
Conversation
kathyavini
marked this pull request as draft
August 1, 2026 00:09
…st-created partners
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.
Drafted as this is not intended for production yet. I'm opening the PR in draft just to have a record of what has to be done when we're ready to integrate. Now that I think about it, the ticket title was a little stupid because obviously it's not until we merge to main that this goes to production... will rename now 😅
Description
With the frontend already merged (#4290), adding GrownBy to the
market_directory_partnerandmarket_directory_partner_countryreturns it to the specified farms (here, US and Canadian) and shows the partner tile.This migration can be run locally to test, and it should be safe to run on beta where all the values are already supplied.
Note, as as written in the migration comments, the
market_directory_partner_authhas to be added before the integration (webhook + keycloak) will work; it is not included in the migration becuase the values differ per environment.Test file change
The test fix addresses an error I don't know if I've ever seen on GitHub actions; it's one of those issues that is only present if another test hasn't already dropped the table and so the migrated data still stands. You can see it by running (only)
marketDirectoryPartner.test.tsafter a fresh migration of the test db, without this fix. You can see it on integration too if you do that, with OFN Canada being the trigger.The fix makes sure the partners are only compared against the records that are added by the test, so it doesn't matter if the migrated records are still present or not.
Jira link: https://lite-farm.atlassian.net/browse/LF-5428
Type of change
How Has This Been Tested?
Ran the migration to generate the tile locally, although the webhook / integration is really only testable on beta.
Checklist:
pnpm i18nto help with this)