-
Notifications
You must be signed in to change notification settings - Fork 17
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
Make the search bar auto complete #1449
Conversation
// Fetch project names from the backend when searchText changes | ||
useEffect(() => { | ||
const fetchProjectNames = async () => { | ||
// Replace this with your actual backend API call |
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.
Is this comment still relevant?
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.
not, I should remove this
@@ -5,8 +5,11 @@ import { MasterBase } from "../../models/type"; | |||
import { ListType } from "../../models/code"; | |||
|
|||
class ProjectService implements ServiceBase { | |||
async getAll(return_type?: string) { | |||
return await http.GetRequest(Endpoints.Projects.PROJECTS, { return_type }); | |||
async getAll(return_type?: string, with_works?: boolean) { |
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.
with_works? is includeWorks better?
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 am not sure you want project which has a work or you wanna include a work ..so plz feel to disregard this
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.
return_type ? is it the project type?
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 need only the project with works, I don't need to include the works info.
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.
return_type is not my addition, it's already there. It decides what schema to use
https://app.zenhub.com/workspaces/epictrack-63891ea941d309001fa292cf/issues/gh/bcgov/epic.track/1282
Details: