-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fetch /gsoc command data from Algolia instead of DB #712
base: main
Are you sure you want to change the base?
Conversation
@arkid15r I've made necessary changes. Please let me know if any changes are required :) |
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 already have project search related entity, let's use that instead of adding another similar entity.
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.
You should use existing owasp/api/search/project logic instead.
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.
So, the get_gsoc_projects
function needs to be placed in owasp/api/search/project, correct? Let me know if this seems like the right direction. Correct me if i am not thinking in the direction as you are
from apps.owasp.models.project import Project | ||
|
||
query = f"gsoc{year}" | ||
searchable_attributes = ["idx_custom_tags"] |
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.
I think we should extend it to idx_tags
too.
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.
And idx_topics
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.
sure i'll extend it to idx_tags
and idx_topics
as well
Resolves #686
Made a separate file for gsoc search api that fetches the data from algolia, also the searchable attribute is set to
idx_custom_tags
so that we only get the tag list, which was expected in the issue.