Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[Issue #12] Setup the opportunity v1 endpoint which will be backed by the index #44

Merged
merged 5 commits into from
May 22, 2024

Conversation

chouinar
Copy link
Collaborator

Summary

Fixes #12

Time to review: 5 mins

Changes proposed

Made a new set of v1 endpoints that are basically copy-pastes of the v0.1 opportunity endpoints

Context for reviewers

Some changes I want to make to the schemas wouldn't make sense without the search index (eg. adding the filter counts to the response). As we have no idea what the actual launch of the v0.1 endpoint is going to look like, I don't want to mess with any of that code or try to make a weird hacky approach that needs to account for both the DB implementation and the search index one.

Also, I think we've heard that with the launch of the search index, we'll be "officially" launched, so might as well call in v1 at the same time.

Other than adjusting the names of a few schemas in v0.1, I left that implementation alone and just copied the boilerplate that I'll fill out in subsequent tickets.

Additional information

The endpoint appears locally:
Screenshot 2024-05-20 at 12 18 32 PM

@chouinar chouinar requested a review from jamesbursa as a code owner May 20, 2024 16:29
@chouinar chouinar requested a review from acouch May 20, 2024 16:29
@chouinar chouinar merged commit b40344d into main May 22, 2024
8 checks passed
@chouinar chouinar deleted the chouinar/12-v1-opp-endpoint branch May 22, 2024 18:05
acouch pushed a commit that referenced this pull request Sep 18, 2024
…ed by the index (#44)

Fixes HHS#2093

Made a new set of v1 endpoints that are basically copy-pastes of the
v0.1 opportunity endpoints

Some changes I want to make to the schemas wouldn't make sense without
the search index (eg. adding the filter counts to the response). As we
have no idea what the actual launch of the v0.1 endpoint is going to
look like, I don't want to mess with any of that code or try to make a
weird hacky approach that needs to account for both the DB
implementation and the search index one.

Also, I think we've heard that with the launch of the search index,
we'll be "officially" launched, so might as well call in v1 at the same
time.

Other than adjusting the names of a few schemas in v0.1, I left that
implementation alone and just copied the boilerplate that I'll fill out
in subsequent tickets.

The endpoint appears locally:
![Screenshot 2024-05-20 at 12 18 32
PM](https://github.com/navapbc/simpler-grants-gov/assets/46358556/86231ec1-417a-41c6-ad88-3d06bb6214e5)

---------

Co-authored-by: nava-platform-bot <[email protected]>
acouch pushed a commit that referenced this pull request Sep 18, 2024
…ed by the index (#44)

Fixes HHS#2093

Made a new set of v1 endpoints that are basically copy-pastes of the
v0.1 opportunity endpoints

Some changes I want to make to the schemas wouldn't make sense without
the search index (eg. adding the filter counts to the response). As we
have no idea what the actual launch of the v0.1 endpoint is going to
look like, I don't want to mess with any of that code or try to make a
weird hacky approach that needs to account for both the DB
implementation and the search index one.

Also, I think we've heard that with the launch of the search index,
we'll be "officially" launched, so might as well call in v1 at the same
time.

Other than adjusting the names of a few schemas in v0.1, I left that
implementation alone and just copied the boilerplate that I'll fill out
in subsequent tickets.

The endpoint appears locally:
![Screenshot 2024-05-20 at 12 18 32
PM](https://github.com/navapbc/simpler-grants-gov/assets/46358556/86231ec1-417a-41c6-ad88-3d06bb6214e5)

---------

Co-authored-by: nava-platform-bot <[email protected]>
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
…by the index (navapbc#44)

Fixes #2093

Made a new set of v1 endpoints that are basically copy-pastes of the
v0.1 opportunity endpoints

Some changes I want to make to the schemas wouldn't make sense without
the search index (eg. adding the filter counts to the response). As we
have no idea what the actual launch of the v0.1 endpoint is going to
look like, I don't want to mess with any of that code or try to make a
weird hacky approach that needs to account for both the DB
implementation and the search index one.

Also, I think we've heard that with the launch of the search index,
we'll be "officially" launched, so might as well call in v1 at the same
time.

Other than adjusting the names of a few schemas in v0.1, I left that
implementation alone and just copied the boilerplate that I'll fill out
in subsequent tickets.

The endpoint appears locally:
![Screenshot 2024-05-20 at 12 18 32
PM](https://github.com/navapbc/simpler-grants-gov/assets/46358556/86231ec1-417a-41c6-ad88-3d06bb6214e5)

---------

Co-authored-by: nava-platform-bot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Setup a new search endpoint (V1?)
3 participants