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

Project/phase 2 #95

Merged
merged 16 commits into from
Dec 8, 2024
Merged

Project/phase 2 #95

merged 16 commits into from
Dec 8, 2024

Conversation

thenav56
Copy link
Member

@thenav56 thenav56 commented Nov 16, 2024

Addresses

  • Phase 2

Changes

Post commands

from apps.cap_feed.data_injector.geo import IfrcGoGeoInjector
IfrcGoGeoInjector().inject_admin1s_geo_codes()

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • permission checks (tests here too)
  • translations

@thenav56 thenav56 force-pushed the project/phase-2 branch 3 times, most recently from 6d962f6 to f827afc Compare November 27, 2024 11:30
@thenav56 thenav56 force-pushed the project/phase-2 branch 2 times, most recently from b1e8a61 to fef661d Compare December 6, 2024 05:33
thenav56 and others added 15 commits December 6, 2024 11:18
- Update pyright version
- Add collectstatic for run_web.sh
* Add subscription models/query/mutations

* Monkey patch weird init error

- Upgrade strawberry-django: 0.47.1 -> 0.48.1

* Restructure subscription attributes

* Add subscription alert tagging tasks

* Break Alert.is_processed_by_subscription field into 2 migrations

To avoid full rewrite of the table https://docs.djangoproject.com/en/5.1/ref/migration-operations/#addfield

* Change subscription is_active default as False

- Add test cases for subscription limit per user

* Subscription email basic setup

- Add unsubscribe_url
- Fix subscription filtering typing issue
- Change filter structure to use index
- Fix ID-name issues for filterAlertCountry
- Add historical alerts node
* Add argocd hooks for migraitons and collectstatic

* Fix argoCD hook issues

- Lower docker file size
* Update subscriptions email template

- Add helper script to create fake alerts
- Remove legacy templates
- Add helper dev views to update templates

* Fix email templates

* Fix email raw text templates

- Truncate alert admins to 40 chars

* Add error catch

- Update TODOs
- Upgrade pyright

---------

Co-authored-by: thenav56 <ayernavin@gmail.com>
* Add Admin1 geo code to database

- Add sync logic to pull data from go api (currently stage)

* Add tagging from circle and geocodes as fallback

* User _value2member_map_ to check geocode type is supported by using enum

* Fix mapping value issue

* Use go-api prod for geo data sync

* Skip circle polygon filter if tagged by normal polygons

* Use camelCase for argo hooks

* Add support for custom python script in argoHooks

* Add missing cronjobs for WEEKLY and MONTHLY subscription email

* Add total_alerts_count node for subscription alerts count

- Fix filtering issue for subscription alerts

* Disable querystring_auth for S3 static bucket

* Add test additional dataset for subscription/alert tagging test

* Add multiple queue: feeds and default

* Add celery flower

* Fix read me and email template

* Typos fix

---------

Co-authored-by: barshathakuri <barshathakuri708@gmail.com>
@thenav56 thenav56 marked this pull request as ready for review December 8, 2024 12:36
@thenav56 thenav56 merged commit 540d341 into develop Dec 8, 2024
11 checks passed
@thenav56 thenav56 deleted the project/phase-2 branch December 8, 2024 12:42
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