-
Notifications
You must be signed in to change notification settings - Fork 9
[OSDEV-2304] Upload MIT Living Wage data to the platform #844
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
Merged
protsack-stephan
merged 66 commits into
main
from
OSDEV-2304-upload-mit-living-wage-data-to-platform
Dec 29, 2025
Merged
Changes from 62 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
b91f2a0
Implemented basic wage indicator mapping logic
vladsha-dev 0344ae7
Refactored code
vladsha-dev 0df08d2
Merge branch 'main' into OSDEV-2305-upload-the-wageindicator-data-int…
vlad-shapik 8e7f528
created new model MITLivingWageCountyData and populated data by migr…
roman-stolar 121fa0a
remove primaryKey for us_geoid_county as it not unique
roman-stolar 4decb9d
created new model USCountyTigerline and populated data by migration
roman-stolar 0424e4d
added main field to ready only
roman-stolar e688f10
Updated FE to render multiple links one under another. Added link tex…
vladsha-dev 971b420
Merge branch 'OSDEV-2305-upload-the-wageindicator-data-into-the-platf…
roman-stolar 4590efd
store file
roman-stolar 05ce6e4
implement MITLivingWageProvider
roman-stolar b480d8e
added migration to create "default" partner field mit_living_wage
roman-stolar c980a9d
Added active and system_field flag for partner fields; added dynamic …
vladsha-dev 290ca20
Merge branch 'OSDEV-2305-upload-the-wageindicator-data-into-the-platf…
roman-stolar 45a6379
clean up
roman-stolar 8498b6f
remove print
roman-stolar 88638ae
Reworked validation for the PartnerField form; moved getting contribu…
vladsha-dev b7bcd00
Merge branch 'OSDEV-2305-upload-the-wageindicator-data-into-the-platf…
roman-stolar 7c95caf
small update
roman-stolar ad6a125
Created tests
vladsha-dev c479427
Handled coderabbit comments
vladsha-dev ebe486c
Updated release notes and naming
vladsha-dev 99b2838
Fixed tests
vladsha-dev a42fa49
download csv from s3 bucket + added mimio for local development
roman-stolar d989054
Fixed tests
vladsha-dev 7083459
Fixed tests
vladsha-dev 5d5110d
Added prints to debug
vladsha-dev 6bddcd9
Added more prints
vladsha-dev fce929c
Fixed tests
vladsha-dev 1430956
Fixed tests
vladsha-dev 72d7691
Updated release notes
vladsha-dev 416cb4a
Merge commit '72d7691fccffbfdf54b4151abe6672020e475813' into OSDEV-23…
roman-stolar 1a3beb3
skip uploading a file to mimio and populate data if file not found lo…
roman-stolar 010e53e
added unit tests + update .env.example file
roman-stolar 82f9d69
updated release notes
roman-stolar b62896d
fix logic and unit tests
roman-stolar a2495e1
fix linter
roman-stolar d9465a5
through error in on prod env no s3 bucket csv file + create fixtures …
roman-stolar 28086d7
fixed CI
roman-stolar fc24fa1
for check
roman-stolar 2577de8
fixed CI
roman-stolar 3deb2a2
fixed sonarQube issues
roman-stolar e3d34de
updated Readme.md
roman-stolar 85587da
clean up
roman-stolar 7f00bb1
addressed part of comments
roman-stolar 16d8291
addressed part of comments
roman-stolar 78f28f7
addressed part of comments
roman-stolar 3314fce
fix tests
roman-stolar f95179f
fix
roman-stolar f6ea4aa
Merge main
protsack-stephan 133a4b5
Change labels in the Django admin
protsack-stephan c9d716b
Cleanup admin.py file from unneeded comments
protsack-stephan a7d3419
Refacot the partner_field.py to be more readable
protsack-stephan 7947b5f
Fix review comments
protsack-stephan 57f221a
Fix linting issues
protsack-stephan 8e87a43
Fix the issue with base provider
protsack-stephan 024651d
Fix linting issues and change errors to warnings in logs
protsack-stephan 0134c9d
Merge branch 'main' of github.com:opensupplyhub/open-supply-hub into …
protsack-stephan d4cf131
Pull origin branch
protsack-stephan abbcba9
Pull latest main
protsack-stephan e6b59f8
Make minio the default storage for media
protsack-stephan 09a36f4
Add the minio setup script
madm2n a83cab2
Update admin settings, add logging and update djngo settings
madm2n 7139cca
Rename Django admin menus
madm2n c045f0d
Update location of minio setup
madm2n fa0788e
Remove duplicated settings
madm2n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,17 +40,15 @@ services: | |
| - DJANGO_ENV=Local | ||
| - DJANGO_SECRET_KEY=secret | ||
| - DJANGO_LOG_LEVEL=INFO | ||
| - AWS_PROFILE=${AWS_PROFILE:-default} | ||
| - OAR_CLIENT_KEY= | ||
| - [email protected] | ||
| - KAFKA_BOOTSTRAP_SERVERS=kafka:9092 | ||
| - KAFKA_TOPIC_DEDUPE_BASIC_NAME=dedupe.hub.topic | ||
| # NOTE the AWS_S3* variables are only used for testing s3 in development. | ||
| # The deployed application uses a policy attached to the ECS task instead | ||
| # of using keys. | ||
| - AWS_S3_ACCESS_KEY_ID | ||
| - AWS_S3_SECRET_ACCESS_KEY | ||
| - AWS_STORAGE_BUCKET_NAME | ||
| - AWS_STORAGE_BUCKET_NAME=os-hub-dev | ||
| - AWS_S3_ENDPOINT_URL=http://minio:9000 | ||
| - AWS_ACCESS_KEY_ID=minioadmin | ||
| - AWS_SECRET_ACCESS_KEY=minioadmin | ||
| - AWS_REGION=us-east-1 | ||
| - OPENSEARCH_HOST=opensearch-single-node | ||
| - OPENSEARCH_PORT=9200 | ||
| - OPENSEARCH_SSL=False | ||
|
|
@@ -74,7 +72,6 @@ services: | |
| condition: service_started | ||
| logstash: | ||
| condition: service_started | ||
|
|
||
| command: | ||
| - "-b :8081" | ||
| - "--reload" | ||
|
|
@@ -90,6 +87,23 @@ services: | |
| networks: | ||
| - proxynet | ||
|
|
||
| minio: | ||
| image: minio/minio:latest | ||
| environment: | ||
| - MINIO_ROOT_USER=minioadmin | ||
| - MINIO_ROOT_PASSWORD=minioadmin | ||
| command: server /data --console-address ":9001" | ||
| ports: | ||
| - "9000:9000" | ||
| - "9001:9001" | ||
| healthcheck: | ||
| test: ["CMD", "mc", "ready", "local"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 5 | ||
| networks: | ||
| - proxynet | ||
protsack-stephan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| react: | ||
| build: | ||
| context: ./src/react | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| [ | ||
| { | ||
| "model": "api.uscountytigerline", | ||
| "pk": "40075", | ||
| "fields": { | ||
| "name": "Oklahoma County", | ||
| "geometry": "SRID=5070;MULTIPOLYGON (((-1000000 1000000, -950000 1000000, -950000 1050000, -1000000 1050000, -1000000 1000000)))", | ||
| "created_at": "2025-01-01T00:00:00+00:00", | ||
| "updated_at": "2025-01-01T00:00:00+00:00" | ||
| } | ||
| }, | ||
| { | ||
| "model": "api.uscountytigerline", | ||
| "pk": "06037", | ||
| "fields": { | ||
| "name": "Los Angeles County", | ||
| "geometry": "SRID=5070;MULTIPOLYGON (((-2000000 500000, -1950000 500000, -1950000 550000, -2000000 550000, -2000000 500000)))", | ||
| "created_at": "2025-01-01T00:00:00+00:00", | ||
| "updated_at": "2025-01-01T00:00:00+00:00" | ||
| } | ||
| }, | ||
| { | ||
| "model": "api.uscountytigerline", | ||
| "pk": "36061", | ||
| "fields": { | ||
| "name": "New York County", | ||
| "geometry": "SRID=5070;MULTIPOLYGON (((-1800000 600000, -1750000 600000, -1750000 650000, -1800000 650000, -1800000 600000)))", | ||
| "created_at": "2025-01-01T00:00:00+00:00", | ||
| "updated_at": "2025-01-01T00:00:00+00:00" | ||
| } | ||
| }, | ||
| { | ||
| "model": "api.uscountytigerline", | ||
| "pk": "48201", | ||
| "fields": { | ||
| "name": "Harris County", | ||
| "geometry": "SRID=5070;MULTIPOLYGON (((-1200000 800000, -1150000 800000, -1150000 850000, -1200000 850000, -1200000 800000)))", | ||
| "created_at": "2025-01-01T00:00:00+00:00", | ||
| "updated_at": "2025-01-01T00:00:00+00:00" | ||
| } | ||
| }, | ||
| { | ||
| "model": "api.uscountytigerline", | ||
| "pk": "04013", | ||
| "fields": { | ||
| "name": "Maricopa County", | ||
| "geometry": "SRID=5070;MULTIPOLYGON (((-1500000 700000, -1450000 700000, -1450000 750000, -1500000 750000, -1500000 700000)))", | ||
| "created_at": "2025-01-01T00:00:00+00:00", | ||
| "updated_at": "2025-01-01T00:00:00+00:00" | ||
| } | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.