#49763 Ticket 47902 - UI - add continuous refresh log feature
Closed a month ago by spichugi. Opened 2 years ago by mreynolds.
mreynolds/389-ds-base ticket49702  into  master

@@ -983,7 +983,6 @@ 

  .ds-adj-btn {

    padding: 0 !important;

    margin-left: 10px !important;

-   height: 26px !important;

    width: 100px !important;  

  }

  
@@ -1247,7 +1246,11 @@ 

  }

  

  .ds-left-margin {

-   margin-left: 10px;

+   margin-left: 10px !important;

+ }

+ 

+ .ds-sm-left-margin {

+   margin-left: 5px !important;

  }

  

  .ds-table-btn {
@@ -1354,3 +1357,4 @@ 

  .ds-suffix-cfg-div {

    min-width: 500px;

  }

+ 

@@ -1,4 +1,7 @@ 

- 

+ var accesslog_cont_refresh;

+ var auditlog_cont_refresh;

+ var auditfaillog_cont_refresh;

+ var erorrslog_cont_refresh;

  

  function gen_ratio_chart(ratio, chart ) {

    var c3ChartDefaults = patternfly.c3ChartDefaults();
@@ -270,6 +273,38 @@ 

        }

      });

  

+     // The continuous log refresh intervals

+     $("#accesslog-cont-refresh").change(function() {

+       if(this.checked) {

+         accesslog_cont_refresh = setInterval(refresh_access_log, 1000);

+       } else {

+         clearInterval(accesslog_cont_refresh);

+       }

+     });

+ 

+     $("#auditlog-cont-refresh").change(function() {

+       if(this.checked) {

+         auditlog_cont_refresh = setInterval(refresh_audit_log, 1000);

+       } else {

+         clearInterval(auditlog_cont_refresh);

+       }

+     });

+ 

+     $("#auditfaillog-cont-refresh").change(function() {

+       if(this.checked) {

+         auditfaillog_cont_refresh = setInterval(refresh_auditfail_log, 1000);

+       } else {

+         clearInterval(auditfaillog_cont_refresh);

+       }

+     });

+ 

+     $("#errorslog-cont-refresh").change(function() {

+       if(this.checked) {

+         errorslog_cont_refresh = setInterval(refresh_errors_log, 1000);

+       } else {

+         clearInterval(errorslog_cont_refresh);

+       }

+     });

  

      $(document).on('click', '.repl-detail-btn', function(e) {

        e.preventDefault();

@@ -537,7 +537,8 @@ 

        <option>2000</option>

        <option>5000</option>

        <option>10000</option>

-     </select><button id="accesslog-refresh-btn" class="ds-adj-btn">Refresh</button>

+     </select><button id="accesslog-refresh-btn" class="ds-adj-btn">Refresh</button><label

+       class="ds-left-margin">Continuously Refresh<input type="checkbox" class="ds-sm-left-margin" id="accesslog-cont-refresh"></label>

      <textarea id="accesslog-area" class="ds-logarea"></textarea>

      <p></p>

    </div>
@@ -557,7 +558,8 @@ 

        <option>2000</option>

        <option>5000</option>

        <option>10000</option>

-     </select><button id="auditlog-refresh-btn" class="ds-adj-btn">Refresh</button>

+     </select><button id="auditlog-refresh-btn" class="ds-adj-btn">Refresh</button><label

+       class="ds-left-margin">Continuously Refresh<input type="checkbox" class="ds-sm-left-margin" id="auditlog-cont-refresh"></label>

      <textarea id="auditlog-area" class="ds-logarea"></textarea>

      <p></p>

    </div>
@@ -577,7 +579,8 @@ 

        <option>2000</option>

        <option>5000</option>

        <option>10000</option>

-     </select><button id="auditfaillog-refresh-btn" class="ds-adj-btn">Refresh</button>

+     </select><button id="auditfaillog-refresh-btn" class="ds-adj-btn">Refresh</button><label

+       class="ds-left-margin">Continuously Refresh<input type="checkbox" class="ds-sm-left-margin" id="auditfaillog-cont-refresh"></label>

      <textarea id="auditfaillog-area" class="ds-logarea"></textarea>

      <p></p>

    </div>
@@ -597,7 +600,8 @@ 

        <option>2000</option>

        <option>5000</option>

        <option>10000</option>

-     </select><button id="errorslog-refresh-btn" class="ds-adj-btn">Refresh</button>

+     </select><button id="errorslog-refresh-btn" class="ds-adj-btn">Refresh</button><label

+       class="ds-left-margin">Continuously Refresh<input type="checkbox" class="ds-sm-left-margin" id="errorslog-cont-refresh"></label>

      <textarea id="errorslog-area" class="ds-logarea"></textarea>

      <p></p>

    </div>

Description: Added checkbox to turn on server log continuous refresh

https://pagure.io/389-ds-base/issue/49702

Reviewed by: ?

LGTM. And I've tested, it works.

rebased onto 7c9ccb8

2 years ago

Pull-Request has been merged by mreynolds

2 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/2822

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

a month ago