-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHRAS-3903 Admin - object inspector - record index debug tools (#4369)
* add admin record index tools * add databox_id filter * add url encode * use options provider * return uri along with es result --------- Co-authored-by: jygaulier <[email protected]>
- Loading branch information
Showing
12 changed files
with
298 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="page-header"> | ||
<h1>{{ 'admin:: record index' | trans }}</h1> | ||
</div> | ||
|
||
<div> | ||
<select id="es-databoxId" style="margin-left: 30px;"> | ||
<option value="">{{ 'button::choose databox' | trans }}</option> | ||
{% for databoxId in databoxIds %} | ||
<option value="{{ databoxId }}">{{ databoxId | sbas_labels(app) }}</option> | ||
{% endfor %} | ||
</select> | ||
|
||
<input id="es-recordId" type="number" placeholder="recordId" style="margin-bottom: 0px;margin-left: 30px;"> | ||
|
||
<button class="btn btn-success find-record-index" style="margin-left: 30px;">{{ 'admin:: find record' | trans }}</button> | ||
</div> | ||
|
||
<div style="margin-top:30px;"> | ||
<pre id="admin-es-record-display" style="height: 400px;overflow-y: scroll;width: 60%;margin-left: 30px;"> | ||
|
||
</pre> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function() { | ||
$('.find-record-index').on('click', function() { | ||
let recordId = $('input#es-recordId').val(); | ||
let databoxId = $('select#es-databoxId').val(); | ||
if (databoxId == '' || recordId < 1) { | ||
alert("Wrong databoxId or recordId value !"); | ||
} else { | ||
$.ajax({ | ||
type: 'GET', | ||
url: '/admin/inspector/record/', | ||
dataType: 'json', | ||
data: { | ||
databoxId: databoxId, | ||
recordId: recordId | ||
}, | ||
success: function (data) { | ||
$('#right-ajax #admin-es-record-display').empty().html(JSON.stringify(data, null, 2)); | ||
} | ||
}); | ||
} | ||
}); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters