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

Limit simple search #6325

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

smithellis
Copy link
Contributor

@smithellis smithellis commented Oct 31, 2024

Limit simple search - don't display archived Questions.

Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

@smithellis Have you tried testing this locally? When I run this branch locally, I stop getting any hits when making simple searches for known titles or keywords. I thought it was my setup at first, but when I switched to the main branch, my simple searches for known titles and keywords worked fine.

@@ -124,6 +125,8 @@ def get_filter(self):
"gte": datetime.now(timezone.utc) - timedelta(days=QUESTION_DAYS_DELTA)
},
),
# don't return archived Questiosn
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo Questiosn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's been a while, but yes I did test locally. I'll take another look. And fix the typo, too!

@smithellis smithellis force-pushed the dont-display-archived-question branch 2 times, most recently from ff217bb to b530b5e Compare December 19, 2024 16:34
Update search.py to exclude archived questions
@smithellis smithellis force-pushed the dont-display-archived-question branch from b530b5e to 0e2101b Compare December 19, 2024 16:40
@smithellis smithellis requested a review from escattone December 19, 2024 18:09
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

Works great now, thanks @smithellis.

@smithellis smithellis merged commit 2861bbb into mozilla:main Dec 19, 2024
2 checks passed
@smithellis smithellis deleted the dont-display-archived-question branch December 19, 2024 21:57
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.

3 participants