Skip to content

OBPIH-6099 Fix issue with global recipient on outbound autosave#4932

Merged
awalkowiak merged 2 commits intodevelopfrom
feature/OBPIH-6099-fill-multiple-lines-in-shipment-with-the-same-recipient
Nov 12, 2024
Merged

OBPIH-6099 Fix issue with global recipient on outbound autosave#4932
awalkowiak merged 2 commits intodevelopfrom
feature/OBPIH-6099-fill-multiple-lines-in-shipment-with-the-same-recipient

Conversation

@drodzewicz
Copy link
Collaborator

@drodzewicz drodzewicz commented Nov 8, 2024

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket: /OBPIH-6099

Description: Issue was that on outbound workflow when autosave was enabled this globalr ecipient did not work propetly

Current autosave behacior only includes logic for individual edits on the row, since we are working with a "bulk" update I had to add some modifications like thi editAll prop


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@drodzewicz drodzewicz self-assigned this Nov 8, 2024
@github-actions github-actions bot added type: feature A new piece of functionality for the app domain: frontend Changes or discussions relating to the frontend UI labels Nov 8, 2024
Comment on lines +1046 to +1049
if (editAll) {
return { ...item, rowSaveStatus: RowSaveStatus.PENDING };
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can see that the line below has an additional condition when RowSaveStatus.PENDING is applied. Have you checked what will happen when editing the same row multiple times?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in that regard everything should work properly.
Addityionaly I have added the editAll condition to the following statement.

if (isEdited || editAll) {
  this.debouncedSave();
  return;
}

this should ensure a safe items saveing step if there are pending save processes from previous actions.

@awalkowiak awalkowiak merged commit a24e525 into develop Nov 12, 2024
@awalkowiak awalkowiak deleted the feature/OBPIH-6099-fill-multiple-lines-in-shipment-with-the-same-recipient branch November 12, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI type: feature A new piece of functionality for the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants