Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Column to Track the Reindexing Curator #1155

Open
CarsonDavis opened this issue Dec 13, 2024 · 1 comment
Open

Add a Column to Track the Reindexing Curator #1155

CarsonDavis opened this issue Dec 13, 2024 · 1 comment
Assignees

Comments

@CarsonDavis
Copy link
Collaborator

CarsonDavis commented Dec 13, 2024

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

@CarsonDavis
Copy link
Collaborator Author

This isn't a blocker for prod deployment, but lets do it early in PI 25.2.

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

No branches or pull requests

2 participants