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

Purge bin logs #60

Merged
merged 11 commits into from
Apr 3, 2024
Merged

Purge bin logs #60

merged 11 commits into from
Apr 3, 2024

Conversation

alihm
Copy link
Member

@alihm alihm commented Apr 3, 2024

  • Purges mysql bin logs every 48 hours
  • Fix for Navicat clients
  • Other minor fixes and improvements

@alihm alihm merged commit a38db71 into master Apr 3, 2024
4 checks passed
console.log('data: ', data);
let startDate = new Date(data.min_timestamp);
let endDate = new Date(data.max_timestamp);
let dp = $('.datepicker-tm').datepicker({

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable dp.
ui/login.html Dismissed Show dismissed Hide dismissed
ui/index.html Dismissed Show dismissed Hide dismissed
ui/index.html Dismissed Show dismissed Hide dismissed
ui/index.html Dismissed Show dismissed Hide dismissed
console.log(window.generatingbackup);
if(!window.generatingbackup){
window.generatingbackup = true;
const result = await axios.post(`${window.apiURL}/generatebackup`, { timeout: 2000 });

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable result.

}
async function deleteFile(filename){
const result = await axios.post(`${window.apiURL}/deletebackup`, { filename }, { timeout: 2000 });

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable result.
var filename = target.getAttribute('data-filename');
console.log(filename);
$('#confirm-modal').modal('show');
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to delete this file?<br><b>${filename}.sql</b></span>`);

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
$('#modal-spinner').show();
window.execute_spinner.classList.remove('d-none');
window.import_in_progress = true;
const result = await axios.post(`${window.apiURL}/executebackup`, { filename }, { timeout: 200000 });

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable result.
Comment on lines +581 to +582
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to execute this file?<br><b>${filename}.sql</b></span></br>
<div class="spinner-border" id="modal-spinner" style="width: 1rem; height: 1rem; border: 0.2em solid #000; border-right-color: transparent;" role="status">`);

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
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

Successfully merging this pull request may close these issues.

1 participant