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

Next prod #1011

Merged
merged 33 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f5222ef
feat(ebmber): add links from interest to identity
Yelinz Jan 4, 2024
1829d9c
feat(ember): add disclaimer for interests
Yelinz Jan 4, 2024
74169f6
fix(ember): only show interest disclaimer in profile
Yelinz Jan 5, 2024
bf5ae51
fix(ember): only display interest link for staff
Yelinz Jan 5, 2024
75d446a
Merge pull request #992 from adfinis/interest-link
open-dynaMIX Jan 5, 2024
f5c4e66
feat(ember): enable editing organisation through profile
Yelinz Jan 5, 2024
857a593
fix(ember): convert abilities to getters
Yelinz Jan 8, 2024
e76bee7
feat(ember): change case detail info
Yelinz Jan 8, 2024
1a1c03c
Merge pull request #995 from adfinis/case-info
open-dynaMIX Jan 10, 2024
1ef7f3f
fix(my-orgs): only use active memberships for `is_authorized`
open-dynaMIX Jan 10, 2024
42f1c76
Merge pull request #994 from adfinis/profile-edit
open-dynaMIX Jan 10, 2024
f2d3c46
chore: remove `--create-db` from Makefile, as it's overriden in pypro…
open-dynaMIX Jan 5, 2024
b302f15
feat: full accounting document export
open-dynaMIX Jan 5, 2024
3d8cfe0
Merge pull request #993 from open-dynaMIX/export_full_accounting_doc
open-dynaMIX Jan 11, 2024
28913a7
chore: refactor mocking in tests that need caluma responses
open-dynaMIX Jan 11, 2024
9fae862
docs: add docstring & fix typo in comment
open-dynaMIX Jan 11, 2024
31a5e18
Merge pull request #997 from open-dynaMIX/cleanup_graphql_tests
open-dynaMIX Jan 11, 2024
e54e2a8
chore(api): remove unused snapshot fixture
open-dynaMIX Jan 11, 2024
5f99dec
chore(caluma): use environ in settings and also read .env file
open-dynaMIX Jan 11, 2024
db82662
chore(caluma): set local UID in dev (same as for API)
open-dynaMIX Jan 11, 2024
e70e2d2
Merge pull request #998 from open-dynaMIX/cleanup_caluma_config
open-dynaMIX Jan 11, 2024
c227e0e
chore(deps): bump cryptography from 41.0.5 to 41.0.6 in /api
dependabot[bot] Jan 11, 2024
18dd78e
Merge pull request #972 from adfinis/dependabot/pip/api/cryptography-…
open-dynaMIX Jan 11, 2024
0d9dde0
Merge pull request #999 from adfinis/main
open-dynaMIX Jan 31, 2024
04261da
chore: update caluma to v10.1.0
open-dynaMIX Feb 8, 2024
fee555f
fix: fix bug in application template regarding choice questions
open-dynaMIX Feb 8, 2024
2f35a56
Merge pull request #1006 from open-dynaMIX/fix_template_bug
Feb 8, 2024
f46a44d
Merge pull request #1005 from open-dynaMIX/update_caluma
Feb 8, 2024
7d7582f
Merge pull request #1007 from adfinis/main
open-dynaMIX Feb 8, 2024
b930e12
chore: update caluma to v10.1.1
open-dynaMIX Feb 8, 2024
b09ee4d
chore: update next_deployment.md
open-dynaMIX Feb 8, 2024
50de03c
Merge pull request #1008 from open-dynaMIX/update_caluma
open-dynaMIX Feb 8, 2024
70f1649
Merge pull request #1009 from adfinis/main
open-dynaMIX Feb 8, 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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ start: ## Start the development server

.PHONY: api-test
api-test: ## Test the backend
@docker compose run --rm api poetry run pytest --no-cov-on-fail --cov --create-db -vv
@docker compose run --rm api poetry run pytest --no-cov-on-fail --cov -vv

.PHONY: api-lint
api-lint: ## Lint the backend
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ After installing and configuring those, download [docker-compose.yml](https://ra

```bash
echo "UID=$(id -u)" > .env
touch ./caluma/.env
docker-compose up -d
```

Expand Down Expand Up @@ -84,15 +85,15 @@ docker compose up -d
# Wait for the database migrations to complete for the API and Caluma.
make caluma-loadconfig
# upload the templates to DMS
docker compose run --rm api python manage.py upload_template -t mysagw/identity/templates/identity-labels.docx
docker compose run --rm api python manage.py upload_template -t mysagw/accounting/templates/accounting-cover.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/acknowledgement-de.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/acknowledgement-fr.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/acknowledgement-en.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/credit-approval-de.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/credit-approval-fr.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/credit-approval-en.docx
docker compose run --rm api python manage.py upload_template -t mysagw/case/templates/application.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/identity/templates/identity-labels.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/accounting/templates/accounting-cover.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-de.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-fr.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-en.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-de.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-fr.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-en.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/application.docx
```

## Contributing
Expand Down
314 changes: 30 additions & 284 deletions api/mysagw/accounting/conftest.py

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions api/mysagw/accounting/queries/get_document_id.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
query DocumentId ($case_id: ID!) {
node(id: $case_id) {
... on Case {
additionalData: workItems(filter: [{task: "additional-data-form"}], first: 1) {
edges {
node {
document {
id
}
}
}
}
}
}
}
57 changes: 28 additions & 29 deletions api/mysagw/accounting/queries/get_receipts.gql
Original file line number Diff line number Diff line change
@@ -1,37 +1,10 @@
query Receipts($case_id: ID!) {
query Receipts($case_id: ID!, $document_id: ID!) {
node(id: $case_id) {
... on Case {
document {
form {
name
}
}
additionalData: workItems(filter: [{task: "additional-data-form"}], first: 1) {
edges {
node {
document {
quittungen: answers(filter: [{question: "additional-data-quittungen"}]) {
edges {
node {
... on TableAnswer {
value {
answers(filter: [{question: "additional-data-row-quittung"}]) {
edges {
node {
... on FilesAnswer {
value {
downloadUrl
metadata
}
}
}
}
}
}
}
}
}
}
applicant_name: answers(filter: [{question: "additional-data-name"}]) {
edges {
node {
Expand Down Expand Up @@ -113,11 +86,33 @@ query Receipts($case_id: ID!) {
}
}
}
answers(filter: [{visibleInContext: true}]) {
edges {
node {
...FieldAnswer
}
}
}
form {
slug
name
questions(filter: [{isArchived: false}, {visibleInDocument: $document_id}]) {
edges {
node {
__typename
...FieldQuestion
}
}
}
}
}
}
}
}
main: document {
form {
name
}
dossierno: answers(filter: [{question: "dossier-nr"}]) {
edges {
node {
Expand All @@ -140,7 +135,11 @@ query Receipts($case_id: ID!) {
edges {
node {
... on StringAnswer {
value
stringValue: value
question {
__typename
...SimpleQuestion
}
}
}
}
Expand Down
Loading
Loading