-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(organization): backfill Asset search field for owner label TASK-1334 #5391
feat(organization): backfill Asset search field for owner label TASK-1334 #5391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, though I did not test the migration scripts on my local env
from kpi.models.asset import Asset | ||
|
||
|
||
def run(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have unit tests for at least some of these migrations? Though, I would expect them to get tested when devs pull from main and the local environment executes them from time to time. But maybe just for QA purposes, either having unit tests or reproducible previews.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided to do simple tests (e.g.: validate the data is correctly added) in another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I didn't test the long running migration
📣 Summary
Populated the asset search field to include the owner username and organization name for improved search functionality.
📖 Description
The asset search field has been updated to include tthe owner username and organization name, ensuring better usability when searching for asset owner labels. This backfill operation populates the field for existing assets where the owner label was previously missing.