View refresh issue (data level attachments)

Hi!

I’m observing unexpected behavior related to data-level attachments when moving between stages and assignments.

In short: the Assignment view does not refresh to reflect the actual state of data-level attachments after navigating back to the assignment. Specifically, an item from the embedded page list is not removed as expected (and attachment is shown).

A PDF is attached with steps to reproduce the issue.

I’d appreciate your thoughts on possible root causes or areas to investigate.

Cache issue.pdf (238.9 KB)

Constellation keeps a cached copy of the attachment list on the client side and has no built-in way to notice that the underlying data page changed once you move between stages and come back to the assignment. The fix is to trigger the pxC11NPublishDatapageUpdate activity from the right extension point in your configuration, passing the affected data page’s name as a parameter, right after the attachment is added or removed. This forces Constellation to reload that specific data page from the server instead of showing the old cached version, so the Assignment view correctly shows the current attachment list when you navigate back to it.