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

fix: Hl 1361 missing full application #3089

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

rikuke
Copy link
Collaborator

@rikuke rikuke commented Jun 13, 2024

Description ✨

HL-1361
This time ensure, that the full application attachment is included in the pre fetch query, where it was not previously included.

Issues πŸ›

Testing βš—οΈ

Screenshots πŸ“Έ

Additional notes πŸ—’οΈ

@@ -272,7 +272,9 @@ def prepare_update_application_payload(
"""Prepare the payload that is sent to Ahjo when an application is updated, \
in this case it only contains a Records dict"""
if not pdf_summary.ahjo_version_series_id:
raise ValueError("Attachment must have an ahjo_version_series_id for update.")
raise ValueError(
f"Attachment for {application.application_number} must have a ahjo_version_series_id for update."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

While not related to this issue, having this helps debug update request to hyte more efficiently.

@@ -716,6 +716,30 @@ def test_generate_ahjo_secret_decision_text_xml(decided_application):
os.remove(attachment.attachment_file.path)


@pytest.mark.django_db
def test_get_applications_for_ahjo_update(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Test that update request gets the right amount of applications.

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed for 'yjdh'

Issues
40 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed for 'yjdh'

Issues
12 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed for 'yjdh'

Issues
47 New issues
7 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 13, 2024

@terovirtanen
Copy link
Contributor

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr3089.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

API branch is deployed to platta: https://helsinkilisa-pr3089.api.dev.hel.ninja/healthz πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr3089.dev.hel.ninja πŸš€πŸš€πŸš€

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://helsinkilisa-ui-handler-pr3089.dev.hel.ninja πŸ˜†πŸŽ‰πŸŽ‰πŸŽ‰

@terovirtanen
Copy link
Contributor

TestCafe result is success for https://helsinkilisa-ui-pr3089.dev.hel.ninja πŸ˜†πŸŽ‰πŸŽ‰πŸŽ‰

@rikuke rikuke merged commit 6ba69ab into main Jun 14, 2024
63 checks passed
@rikuke rikuke deleted the HL-1361-missing-full-application branch June 14, 2024 10:50
@rikuke rikuke changed the title Hl 1361 missing full application fix: Hl 1361 missing full application Jun 17, 2024
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.

None yet

3 participants