Skip to content

Add a Column to Track the Reindexing Curator #1155

@CarsonDavis

Description

@CarsonDavis

Description

Add it to the right of the status column.
Image

Implementation Considerations

I believe you can look at this pr to see how columns were added in the past. Note that you no longer need to use indexes.

The curator is being tracked in the curated_by field, and we should be able to use that as a basis for this display column.

class ReindexingHistory(models.Model):
    collection = models.ForeignKey(Collection, on_delete=models.CASCADE, related_name="reindexing_history", null=True)
    reindexing_status = models.IntegerField(
        choices=ReindexingStatusChoices.choices,
        default=ReindexingStatusChoices.REINDEXING_NOT_NEEDED,
    )
    old_status = models.IntegerField(choices=ReindexingStatusChoices.choices, null=True)
    curated_by = models.ForeignKey(User, on_delete=models.DO_NOTHING, null=True, blank=True)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return str(self.collection) + str(self.reindexing_status)

Deliverable

arst

Dependencies

depends on

Metadata

Metadata

Assignees

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