mirror of https://github.com/MISP/MISP
chg: [decaying:simulation] restSearch comments added to be fixed in next
decaying versionpull/5032/head
parent
5a291d87a5
commit
70f77f7c0e
|
@ -502,6 +502,8 @@ class DecayingModelController extends AppController
|
||||||
$this->set('all_models', $allowed_models);
|
$this->set('all_models', $allowed_models);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Consider using the export tool to perform the post treatement
|
||||||
|
// as this does not mirror a complete restSearch (not using fetchAttribute)
|
||||||
public function decayingToolRestSearch($continue = false)
|
public function decayingToolRestSearch($continue = false)
|
||||||
{
|
{
|
||||||
if ($this->request->is('post') || $this->request->is('put')) {
|
if ($this->request->is('post') || $this->request->is('put')) {
|
||||||
|
@ -529,9 +531,7 @@ class DecayingModelController extends AppController
|
||||||
if ($filters === false) {
|
if ($filters === false) {
|
||||||
return $exception;
|
return $exception;
|
||||||
}
|
}
|
||||||
if (!isset($filters['includeEventTags'])) {
|
$filters['includeEventTags'] = 1;
|
||||||
$filters['includeEventTags'] = 1;
|
|
||||||
}
|
|
||||||
if (!isset($filters['excludeDecayed'])) {
|
if (!isset($filters['excludeDecayed'])) {
|
||||||
$filters['excludeDecayed'] = 0;
|
$filters['excludeDecayed'] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<div class="tab-content" style="padding: 5px; height: 100%;">
|
<div class="tab-content" style="padding: 5px; height: 100%;">
|
||||||
<div class="tab-pane <?php echo isset($attribute_id) ? '' : 'active'; ?>" id="restsearch" style="height: 100%;">
|
<div class="tab-pane <?php echo isset($attribute_id) ? '' : 'active'; ?>" id="restsearch" style="height: 100%;">
|
||||||
<div style="display: flex; flex-direction: column; height: 100%;">
|
<div style="display: flex; flex-direction: column; height: 100%;">
|
||||||
<h3 style="">Attribute RestSearch<span style="vertical-align: top; font-size: x-small;" class="fa fa-question-circle" title="Enforced fields: returnFormat"></span></h3>
|
<h3 style="">Attribute RestSearch<span style="vertical-align: top; font-size: x-small;" class="fa fa-question-circle" title="Enforced fields: [returnFormat, includeEventTags]"></span></h3>
|
||||||
<?php
|
<?php
|
||||||
$registered_taxonomies = array_keys($decaying_model['DecayingModel']['parameters']['base_score_config']);
|
$registered_taxonomies = array_keys($decaying_model['DecayingModel']['parameters']['base_score_config']);
|
||||||
foreach ($registered_taxonomies as $i => &$taxonomy_name) {
|
foreach ($registered_taxonomies as $i => &$taxonomy_name) {
|
||||||
|
|
Loading…
Reference in New Issue