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

Persist Logs during updates #1004

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Persist Logs during updates #1004

merged 1 commit into from
Dec 9, 2024

Conversation

SteveMicroNova
Copy link
Contributor

@SteveMicroNova SteveMicroNova commented Dec 2, 2024

What does this change intend to accomplish?

Adds a function prior to firing the update script that checks if persist_logs is set to true, and if not sets it to true for three days

Checklist

  • Have you tested your changes and ensured they work?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • If applicable, have you updated the CHANGELOG?
  • Does your submission pass linting & tests? You can test on localhost using ./scripts/test

@@ -44,7 +44,7 @@ <h1><span class="text-white">Ampli</span><span class="text-danger">Pi</span></h1
<a class="nav-link" id="manual-update-tab" data-toggle="tab" href="#manual-update" role="tab" aria-controls="manual-update" aria-selected="false">Custom Update</a>
</li>
<li class="nav-item">
<a class="nav-link" id="admin-settings-tab" data-toggle="tab" href="#admin-settings" role="tab" aria-controls="admin-settings" aria-selected="false">Admin Settings</a>
<a class="nav-link" id="admin-settings-tab" data-toggle="tab" href="#admin-settings" role="tab" aria-controls="admin-settings" aria-selected="false" onClick="getPersist();">Admin Settings</a>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the state of that tab can be changed by updating, change the update method from window.onload to tab.onclick

@SteveMicroNova SteveMicroNova force-pushed the PersistLogsDuringUpdate branch 5 times, most recently from a4eeba7 to 03f8e32 Compare December 6, 2024 16:14
@linknum23 linknum23 self-requested a review December 9, 2024 16:01
@SteveMicroNova SteveMicroNova force-pushed the PersistLogsDuringUpdate branch 2 times, most recently from 4ae34f0 to b293dc8 Compare December 9, 2024 20:17
…es, then set to true if it is false with sane minimum auto-off delay
Copy link
Contributor

@linknum23 linknum23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does exactly what I expect. Nice work @SteveMicroNova

@SteveMicroNova SteveMicroNova merged commit 80121fe into main Dec 9, 2024
3 checks passed
@SteveMicroNova SteveMicroNova deleted the PersistLogsDuringUpdate branch December 9, 2024 21:46
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.

2 participants