Skip to content

Commit

Permalink
Add a message explaining the effect of the REVERSED_DEINDEX operation
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Jul 24, 2024
1 parent 05bc7be commit fbfbb1d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/api/templates/admin/api/bulk_moderation_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@
{% block content %}
<p>Are you sure you want the selected {{ objects_name }} to be {{ decision_action.verb }}?</p>

{% if decision_action == "reversed_deindex" %}
<div class="bg-warning p-10px">
This action does not immediately result in deindexed records being
added back to the DB and Elasticsearch indices. When the records were
originally deindexed, they were deleted from both, and there is no
quick way to restore them without running a data refresh.
</div>
<style>
.p-10px {
padding: 10px;
}
.bg-warning {
background-color: var(--message-warning-bg);
}
</style>
{% endif %}

<h2>Summary</h2>
<ul>
{% for stat_key, stat_value in stats %}
Expand Down

0 comments on commit fbfbb1d

Please sign in to comment.