Skip to content

OBPIH-5967 Can edit completed putaway when go back to edit page after complete#4459

Merged
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBPIH-5967-can-edit-completed-putaway-when-go-back-to-edit-page-after-complete
Jan 18, 2024
Merged

OBPIH-5967 Can edit completed putaway when go back to edit page after complete#4459
awalkowiak merged 1 commit intofeature/upgrade-to-grails-3.3.10from
OBPIH-5967-can-edit-completed-putaway-when-go-back-to-edit-page-after-complete

Conversation

@drodzewicz
Copy link
Collaborator

Follow the discussion in the ticket

putawayItem.inventoryLevel = InventoryLevel.findByProductAndInventory(putawayItem.product, putaway.origin.inventory)
putawayItem.quantityAvailable = productAvailabilityService.getQuantityOnHandInBinLocation(putawayItem.inventoryItem, putawayItem.currentLocation)
}
response.setHeader("Cache-Control", "no-store")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is to prevent the browser from caching this response.
Follow the comment I posted in the ticket

Copy link
Collaborator

@alannadolny alannadolny Jan 17, 2024

Choose a reason for hiding this comment

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

You cced Artur twice 😄
image
Now, I got it, thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🙈

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am still baffled by the need for this

Copy link
Collaborator Author

@drodzewicz drodzewicz Jan 17, 2024

Choose a reason for hiding this comment

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

I feel like it is something that we need to discuss and decide.
I wanted to show the issue and a potential solution.

If we feel like disabling the cache in the header is not the way to go, just a single validation should be enough to prevent users from messing with completed putaways based on old data.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, I feel like, having the validation should be enough. However, you can showcase or explain the cache store tomorrow morning

@drodzewicz drodzewicz force-pushed the OBPIH-5967-can-edit-completed-putaway-when-go-back-to-edit-page-after-complete branch from 2fbf58a to a6aa042 Compare January 18, 2024 11:05
@awalkowiak awalkowiak merged commit b8466f9 into feature/upgrade-to-grails-3.3.10 Jan 18, 2024
@awalkowiak awalkowiak deleted the OBPIH-5967-can-edit-completed-putaway-when-go-back-to-edit-page-after-complete branch January 18, 2024 18:25
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.

3 participants