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

[Issue #191] Cleanup makefile commands around OpenSearch #192

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

chouinar
Copy link
Collaborator

@chouinar chouinar commented Sep 6, 2024

Summary

Fixes #191

Time to review: 5 mins

Changes proposed

Adjusted a few makefile commands / added some additional docs

Renamed db-recreate to volume-recreate as the command also recreates the OpenSearch volume.

Added a command for populating your OpenSearch index locally for opportunities rather than needing to build the full command yourself.

Context for reviewers

As we've added more commands to the Makefile, we haven't kept ontop of how they all interact. This should add some level of clarity to the commands.

The new make populate-search-opportunities command is a much easier way of writing out the full command of docker compose run --rm grants-api poetry run flask load-search-data load-opportunity-data.

Additional information

Note that we have a make help command which prints out any command with a ## help text on the target definition in the makefile:
Screenshot 2024-09-06 at 4 38 02 PM

@github-actions github-actions bot added documentation Improvements or additions to documentation api ci/cd labels Sep 6, 2024
@chouinar chouinar merged commit 0f175b1 into main Sep 9, 2024
8 checks passed
@chouinar chouinar deleted the chouinar/191-cleanup-makefile branch September 9, 2024 19:27
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2032

Adjusted a few makefile commands / added some additional docs

Renamed `db-recreate` to `volume-recreate` as the command also recreates
the OpenSearch volume.

Added a command for populating your OpenSearch index locally for
opportunities rather than needing to build the full command yourself.

As we've added more commands to the Makefile, we haven't kept ontop of
how they all interact. This should add some level of clarity to the
commands.

The new `make populate-search-opportunities` command is a much easier
way of writing out the full command of `docker compose run --rm
grants-api poetry run flask load-search-data load-opportunity-data`.

Note that we have a `make help` command which prints out any command
with a `## help text` on the target definition in the makefile:
<img width="1353" alt="Screenshot 2024-09-06 at 4 38 02 PM"
src="https://github.com/user-attachments/assets/d21f25c4-031f-4028-bf6b-d73908215b01">
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2032

Adjusted a few makefile commands / added some additional docs

Renamed `db-recreate` to `volume-recreate` as the command also recreates
the OpenSearch volume.

Added a command for populating your OpenSearch index locally for
opportunities rather than needing to build the full command yourself.

As we've added more commands to the Makefile, we haven't kept ontop of
how they all interact. This should add some level of clarity to the
commands.

The new `make populate-search-opportunities` command is a much easier
way of writing out the full command of `docker compose run --rm
grants-api poetry run flask load-search-data load-opportunity-data`.

Note that we have a `make help` command which prints out any command
with a `## help text` on the target definition in the makefile:
<img width="1353" alt="Screenshot 2024-09-06 at 4 38 02 PM"
src="https://github.com/user-attachments/assets/d21f25c4-031f-4028-bf6b-d73908215b01">
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
Fixes #2032

Adjusted a few makefile commands / added some additional docs

Renamed `db-recreate` to `volume-recreate` as the command also recreates
the OpenSearch volume.

Added a command for populating your OpenSearch index locally for
opportunities rather than needing to build the full command yourself.

As we've added more commands to the Makefile, we haven't kept ontop of
how they all interact. This should add some level of clarity to the
commands.

The new `make populate-search-opportunities` command is a much easier
way of writing out the full command of `docker compose run --rm
grants-api poetry run flask load-search-data load-opportunity-data`.

Note that we have a `make help` command which prints out any command
with a `## help text` on the target definition in the makefile:
<img width="1353" alt="Screenshot 2024-09-06 at 4 38 02 PM"
src="https://github.com/user-attachments/assets/d21f25c4-031f-4028-bf6b-d73908215b01">
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api ci/cd documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Cleanup makefile for opensearch commands
2 participants