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

Master #53

Merged
merged 46 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
29e18ea
upgrade packages
domdinicola Apr 8, 2024
8c907da
Merge pull request #32 from unicef/upgrade-packages
domdinicola Apr 8, 2024
db783da
Multiple pages for cards
srugano Apr 11, 2024
812edfd
Using hope storage
srugano Apr 11, 2024
741eb69
Sentry and hope storage
srugano Apr 11, 2024
46ac0f7
Merge pull request #33 from unicef/feature/cards_fix
srugano Apr 11, 2024
da14164
Rotation fix
srugano Apr 11, 2024
b7f3199
Merge pull request #34 from unicef/feature/cards_rotation
srugano Apr 11, 2024
242a499
Rotated 270 degree
srugano Apr 11, 2024
ec19c59
Updated storage
srugano Apr 11, 2024
0b0af4f
Merge pull request #35 from unicef/feature/cards_fix2
srugano Apr 11, 2024
817dc4d
Added arabic support on cards
srugano Apr 17, 2024
2ed5a04
Right justified
srugano Apr 17, 2024
25607fe
Merge pull request #36 from unicef/feature/arabic_cards
srugano Apr 17, 2024
79f6e24
Compress pdf and images
srugano Apr 18, 2024
978e5a8
Hope storage
srugano Apr 18, 2024
a1353ed
Merge pull request #38 from unicef/feature/compress_pdf
srugano Apr 18, 2024
ee19cc1
Improve accuracy of images
srugano Apr 20, 2024
72180a2
Merge pull request #39 from unicef/feature/card_accuracy
srugano Apr 20, 2024
2ce2f10
Images resized
srugano Apr 21, 2024
e718949
Merge pull request #40 from unicef/feature/images_compressed
srugano Apr 21, 2024
5681655
Refactoring card
srugano Apr 24, 2024
c134f6a
updated packages
srugano Apr 25, 2024
026e0d0
Merge branch 'develop' into feature/generalization_cards
srugano Apr 25, 2024
483a204
add staging to ci trigger
wozniakpl May 15, 2024
7466e3e
add missing check for staging deployment
wozniakpl May 15, 2024
e71444c
Updated cards
srugano Jun 12, 2024
66e5f79
Merge branch 'develop' into feature/cards
srugano Jun 12, 2024
6420d49
updated image insertion
srugano Jun 12, 2024
631486b
Test fixes
srugano Jun 12, 2024
fde1258
Merge pull request #48 from unicef/feature/cards
srugano Jun 21, 2024
2938fa5
QR image
srugano Jul 3, 2024
c3714a2
Storage fix
srugano Jul 3, 2024
c25c47a
Put back font customization
srugano Jul 5, 2024
75a9864
File fixes
srugano Jul 5, 2024
f6cf75a
Filter back
srugano Jul 5, 2024
6320442
Merge pull request #50 from unicef/feature/code_quality
srugano Jul 5, 2024
0df0ff4
develop merge
srugano Jul 5, 2024
6f9ca27
Merge pull request #49 from unicef/feature/qr_code
srugano Jul 8, 2024
427f172
Added better templates
srugano Jul 15, 2024
4fa7eab
Revert "Added better templates"
srugano Jul 15, 2024
dde4f03
Updated db kobo_id removed
srugano Jul 15, 2024
77048de
Db update to reflect 2.7.0
srugano Jul 15, 2024
1d16954
Get or none
srugano Jul 15, 2024
f6d1685
Merge pull request #51 from unicef/feature/db_update
srugano Jul 15, 2024
1a06a70
Merge pull request #52 from unicef/develop
domdinicola Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ ignore =
# too complex # TODO: fix this
C901,
# TODO
F401,
# F401,
F403,

per-file-ignores =
tests/extras/testutils/factories/__init__.py: F401
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
push:
branches:
- develop
- staging
- master
pull_request:
branches:
- develop
- staging
- master

jobs:
Expand Down Expand Up @@ -162,6 +164,7 @@ jobs:
github.event_name == 'push' &&
(
github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/staging' ||
github.ref == 'refs/heads/master'
)
steps:
Expand Down Expand Up @@ -198,4 +201,4 @@ jobs:
echo "Failed to trigger deploy for pipeline $pipeline"
exit 1
fi
done
done
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ coverage.xml
!.mypy.ini
!.pre-commit-config.yaml

pdm.toml
pdm.toml
.coverage
.env
.envrc
.pdm-python
.tox/
2 changes: 1 addition & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ files = src/hope_country_report
; ~billing
;exclude = (?x)(^\~management$)
;exclude = (?x)(.*/power_query/.*)
exclude = (?x)(.*/management/.*)
exclude = (?x)(.*/management|factories/.*)

install_types = true
show_error_codes = true
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -671,4 +671,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.
<http://www.gnu.org/licenses/>.
2 changes: 1 addition & 1 deletion compose.prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ services:
db:
condition: service_healthy
redis:
condition: service_healthy
condition: service_healthy
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ services:
db:
condition: service_healthy
redis:
condition: service_healthy
condition: service_healthy
2 changes: 1 addition & 1 deletion docker/wait-for-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ if [[ $WAITFORIT_CLI != "" ]]; then
exec "${WAITFORIT_CLI[@]}"
else
exit $WAITFORIT_RESULT
fi
fi
4 changes: 3 additions & 1 deletion src/hope_country_report/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class Meta:

@cached_property
def selected_office(self) -> CountryOffice:
co_slug: str = self.context["view"].kwargs[self.co_key]
co_slug: str = self.context["view"].kwargs.get(self.co_key)
if not co_slug:
raise serializers.ValidationError("Country office slug is required.")
return CountryOffice.objects.get(slug=co_slug)

def get_office(self, obj: "Model"):
Expand Down
Loading
Loading