Skip to content
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

add job for good cause eviction data #172

Merged
merged 20 commits into from
Jan 22, 2025
Merged

add job for good cause eviction data #172

merged 20 commits into from
Jan 22, 2025

Conversation

austensen
Copy link
Member

@austensen austensen commented Oct 21, 2024

Sets up a new job for creating our two GCE tables. These are created just via SQL query - no CSV downloading or other complications.

We sohuld stick with daily updates since it's a relatively fast job and we'll want to keep as up-to-date as possible with wow portfolios, CofOs, etc.

Companion PR on who-owns-what: JustFixNYC/who-owns-what#971

[sc-15606]

@austensen austensen requested a review from kiwansim January 16, 2025 21:50
@austensen austensen changed the title WIP: add job for good cause eviction data add job for good cause eviction data Jan 17, 2025
Copy link
Member

@kiwansim kiwansim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@@ -73,6 +73,9 @@ RUN ln -s /who-owns-what/ocaevictions /usr/local/lib/python3.10/site-packages/oc
RUN ln -s /who-owns-what/signature /usr/local/lib/python3.10/site-packages/signature && \
pip install boto3==1.28.44

# And again for good cause eviction...
RUN ln -s /who-owns-what/goodcause /usr/local/lib/python3.10/site-packages/goodcause

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need pip install boto3==1.28.44 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, that was only needed to get the csv files from S3 (shared from UNHP), but this GCE job doesn't actually take in any data - just runs SQL on existing tables. Thanks for checking!

austensen added a commit to JustFixNYC/who-owns-what that referenced this pull request Jan 22, 2025
Adds a new module like portfoliograph, ocaevictions, etc. which creates two new tables entirely from SQL queries.

gce_screener - a bbl-level table with all of the fields we need for the gce screener website to inform helper text for user survey and other building data that is combined to determine eligibility and populate guides for next steps to determine portfolio size.
gce_eligibility - a bbl-level table using all of the same dat as above, but designed to use only public data (no user responses) to give our best guess for GCE eligibility to use for data requests and also powers the map of likely-GCE-covered properties that the housing data coalition is working on.
We use this new module for a new jobs on nycdb-k8s-loader: JustFixNYC/nycdb-k8s-loader#172

This also adds a new API endpoint for GET requests for a bbl that returns the entire row from the gce_screener table that is used on https://github.com/JustFixNYC/gce-screener
@austensen austensen merged commit 2195d1b into main Jan 22, 2025
1 check passed
@austensen austensen deleted the good-cause branch January 22, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants