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

Digital post #402

Merged
merged 12 commits into from
Oct 10, 2024
Merged

Digital post #402

merged 12 commits into from
Oct 10, 2024

Conversation

rimi-itk
Copy link
Contributor

@rimi-itk rimi-itk commented Sep 23, 2024

https://leantime.itkdev.dk/dashboard/home#/tickets/showTicket/1015

Optimizes handling of digital post to make sure that we don't send a superfluously big payload to SF1601's KombiPostAfsend endpoint.

nsek dmzwebstgitk03 itkdev dk_case_39310cda-4e2c-4a85-b59e-d7d7fdc0bcbe_hearing_f760b679-a896-4776-a6e0-6f79d9f6a7ed_request_create (1)
nsek dmzwebstgitk03 itkdev dk_case_39310cda-4e2c-4a85-b59e-d7d7fdc0bcbe_hearing_f760b679-a896-4776-a6e0-6f79d9f6a7ed_request_create

Also contains minor tweaks and fixes to make developers and code analysis tools happy.

@rimi-itk rimi-itk force-pushed the feature/1015-digital-post branch 2 times, most recently from f5e66df to 9302812 Compare September 23, 2024 14:14
@rimi-itk rimi-itk force-pushed the feature/1015-digital-post branch 2 times, most recently from e1e11e7 to e0921f7 Compare September 24, 2024 14:08
@rimi-itk rimi-itk marked this pull request as ready for review September 25, 2024 12:00
@rimi-itk rimi-itk force-pushed the feature/1015-digital-post branch 2 times, most recently from 0fecac1 to ab02bc0 Compare September 25, 2024 12:07
assets/app.js Outdated
const digitalPostAttachmentsInfo = document.querySelector('.digital-post-attachments-info')
if (digitalPostRecipientWrapper && digitalPostAttachmentsInfo) {
const recipients = digitalPostRecipientWrapper.querySelectorAll(recipientSelector)
const updateStuff = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider renaming although it does indeed update stuff

assets/app.js Outdated Show resolved Hide resolved
assets/app.js Outdated Show resolved Hide resolved
Comment on lines 16 to 18
// .tvist1-can-receive-digital-post {
// color: green;
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// .tvist1-can-receive-digital-post {
// color: green;
// }

ForsendelseHelper::FORSENDELSES_TYPE_IDENTIFIKATOR => $this->options['sf1601']['forsendelses_type_identifikator'],
];
$forsendelse = $this->forsendelseHelper->createForsendelse($digitalPost, $recipient, $forsendelseOptions);
if (in_array($type, [SF1601::TYPE_DIGITAL_POST, SF1601::TYPE_AUTOMATISK_VALG], true)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

From what i gather $type can enver be SF1601::TYPE_AUTOMATISK_VALG here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're absolutely right, but there's nothing wrong with future-proofing a solution to a problem.

src/Service/SF1601/DigitalPoster.php Show resolved Hide resolved
@rimi-itk rimi-itk merged commit 3257ee4 into develop Oct 10, 2024
8 checks passed
@rimi-itk rimi-itk deleted the feature/1015-digital-post branch October 10, 2024 11:59
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