Skip to content

Track user publish intent in PublishLog #533

@ormsbee

Description

@ormsbee

Per this slack thread, I think we're going to want to extend the PublishLog model to include a nullable field that captures what it was that the user clicked "publish" on. This seems to be a requirement of the UX:

Image

Right now, if there is a Subsection -> Unit -> Component setup where only the component has changed, the data in the PublishLog does not allow us to differentiate which level the user pressed "Publish" at. The PublishLog currently only tracks what was published, not what the user asked to be published. So if the Component was the only item with unpublished changes, today's PublishLog would look identical no matter which level "publish" was clicked at.

Question 1: What do we call this?

What do we call the thing we pressed publish on, to differentiate it from all the other things that were implicitly published?

Question 2: How do we handle multiples?

If we add a simple field to the PublishLog, we can track a single requested publish item, and use a null value to represent "the user clicked on publish-all". In the short term, I think this is the thing to do. But do we foresee a need to publish multiple, specific things at once? For instance, clicking multiple checkboxes on the search/browse screen and clicking "publish"? In that case, a M:M relation would make more sense here.

Question 3: How do we handle backfill?

We don't have this information, so how should we backfill it? Always assume the highest level? Have a different UX when we don't know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions