Skip to content
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

Fix PostgreSQL query for all tags #705

Merged
merged 3 commits into from
Apr 14, 2023
Merged

Fix PostgreSQL query for all tags #705

merged 3 commits into from
Apr 14, 2023

Conversation

eneskaya
Copy link
Contributor

@eneskaya eneskaya commented Apr 6, 2023

We had an error when querying with the "all tags" filter (see issue #660) which was caused by the tags column in the resources table sometimes being set to null, leading the SQL query to fail.

This PR fixes that by setting the default value of Tags field in the Resources model to []. Furthermore, it's possible that users who installed komiser before, have already resources with null tags. That's why I introduce here a way to do migrations and also the first migration, which sets the default value of [] in the tags column for all resources.

@eneskaya eneskaya marked this pull request as ready for review April 13, 2023 09:15
@eneskaya eneskaya requested a review from mlabouardy April 13, 2023 09:28
@mlabouardy mlabouardy merged commit efdbce8 into develop Apr 14, 2023
@mlabouardy mlabouardy deleted the feature/tech-1003 branch April 14, 2023 12:46
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.

2 participants