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

Feature/828 - Fix featured tabs #849

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Feature/828 - Fix featured tabs #849

merged 1 commit into from
Dec 12, 2023

Conversation

D-GopalKrishna
Copy link
Contributor

@D-GopalKrishna D-GopalKrishna commented Dec 12, 2023

Description:
Fix the featured and publicable tabs in the workspaces.

Before this fix:
The filter didn't work for the featured tab (after the newly added adjustments to the description search). This fixes the filter by featured and publicable.
This also fixes, the user's ->my account -> private workspaces.

@@ -67,11 +67,15 @@ def search_qs(self, filter=None, q=None, tags=None, user_id=None, show_all=False
if tags:
q_base = q_base.intersect(self.filter_by_tags(tags, q_base))

q_base = q_base.filter(
or_(*[self._create_filter(*f) for f in filter if (f[0].key != "name" and f[0].key != "description")]))
q_base = self.filter_by_publicable_and_featured(filter, q_base)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactoring with TOP class naming!

Copy link
Contributor

@filippomc filippomc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@filippomc filippomc merged commit e0d8d7f into develop Dec 12, 2023
3 checks passed
@filippomc filippomc deleted the feature/828-public branch December 12, 2023 15:08
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.

2 participants