-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Issue 2554] clean up fetcher frontend data fetcher pattern #2567
[Issue 2554] clean up fetcher frontend data fetcher pattern #2567
Conversation
a76248a
to
a0bcdf8
Compare
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.
Haven't run locally yet, but scanned over code and it mostly tracks, albeit it looks like you're referencing a file that's not defined?
frontend/src/app/api/Fetchers.ts
Outdated
@@ -0,0 +1,10 @@ | |||
import SearchOpportunityAPI from "src/app/api/SearchOpportunityAPI"; | |||
|
|||
import OpportunityListingAPI from "./OpportunityListingAPI"; |
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.
Maybe I"m just not seeing it, but not seeing this file present in this PR?
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.
that file should be there, but the relative path needs to get cleaned up. You don't see /simpler-grants-gov/frontend/src/app/api/OpportunityListingAPI.ts? It should be there on main as well
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.
🔥
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.
🔥
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.
🔥
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.
🔥
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.
Huge improvement!
[nit]: The src/services/search/searchfetcher
folder has only one file in it which could be moved to the src/services/search
folder.
* removes the "services/search/searchfetcher" directory and existing "fetcher" pattern * moves any necessary related functionality into the "/api" classes
Summary
Fixes #2554
Time to review: 15 mins
Changes proposed
This change removes the
services/search/searchfetcher
directory, and moves any necessary related functionality into the/api
classes. For more discussion on reasoning and expectations, refer to the ticketNote that for ease of code change management this is currently branched off of dschrashun/2448-v1-search-endpoint
which has not been merged to main yet. If this PR is approved before feature/frontend-opensearch is approved for merging to main, this will merge into freature/frontend-opensearch. This seems fine as the change isn't urgent but could be rebased off main if we want to get it in.
Context for reviewers
Test steps
Additional information
Follow up todos: