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

More Admin Settings #870

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

More Admin Settings #870

wants to merge 20 commits into from

Conversation

SteveMicroNova
Copy link
Contributor

@SteveMicroNova SteveMicroNova commented Aug 8, 2024

What does this change intend to accomplish?

Builds on #828's Admin Tab on the updater and adds more settings, including the option to set timezone (closes #787) and change minimum log level

Blocked by the merging of #828, creating a draft PR just to toss this into the public eye while I await review there

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 documentation/manual?
  • If applicable, have you updated the CHANGELOG?
  • Does your submission pass linting & tests? You can test on localhost using ./scripts/test
  • Have you written new tests for your core features/changes, as applicable?
  • If this is a UI change, have you tested it across multiple browser platforms?
  • If this is a UI change, have you tested across multiple viewport sizes (ie. desktop versus mobile)?

@SteveMicroNova
Copy link
Contributor Author

image

Update CHANGELOG.md

Lint ctrl.py

Add persist_logs bool and integrate throughout the config flow
Add many logger.info chunks for testing

Add more logic to persist_logs toggle endpoint

Change how default value is handled

Change default permissions of journald.conf

Fix spelling errors, add logger on frontend

Move toggle_log_persistance away from FastAPI and towards the Api object

Linting

Call reinit at end of log toggle, reword models.py description of persist_logs

Remove all uses of persist_logs from amplipi core, move to updater side

Remove lingering changes from app.py, ctrl.py

pylint

pylint (2)

Finish porting new admin settings tab to updater

Change name of Updates tab on settings page

Fix spelling in comment in app.py

Robustify setPersist function against edge cases, add documentation

pylint

Add delete logs endpoint, cronjob that calls it at midnight

Updates/Admin

Change comment on delete_persisted_logs_crontab

Update CHANGELOG.md

Remove deletion endpoint + supporting files

remove optional "value" bool from post persist_logs

Fix wording in index.html

Change configure.py to only set logs to volatile if the /var/log/journal directory doesn't exist (i.e., only set volatility on first deploy)

Reduce verbocity in configure.py

Add auto_off_delay feature to admin settings

Pylint

Pylint

Rename attempt_persist_logs_auto_off.py to increment_auto_off.py
Change logic paths of POST /settings/persist_logs to avoid interacting with the files more often than necessary

PyCodeStyle

Update crontab to have a user associated with it

remove unused variables from increment_auto_off.py

Swap from using subprocess.run and configparser to just responses in increment_auto_off.py

Copy files properly in configure.py

Cover some oversights in asgi.py

Add hoverover tooltip for Auto Off Delay label

Make sure to pip install requests in configure.py

pylint
segregate standard imports from package import in increment_auto_off.py

Update styling

Move password setting functionality to Admin Settings page, add loading spinner to save log state button

update IDs, classnames to use JavaScript naming instead of Python naming ( - instead of _ )

Add new success and failure notification for persist save button
Update CHANGELOG.md

Lint ctrl.py

Add persist_logs bool and integrate throughout the config flow
Add many logger.info chunks for testing

Add more logic to persist_logs toggle endpoint

Change how default value is handled

Change default permissions of journald.conf

Fix spelling errors, add logger on frontend

Move toggle_log_persistance away from FastAPI and towards the Api object

Linting

Call reinit at end of log toggle, reword models.py description of persist_logs

Remove all uses of persist_logs from amplipi core, move to updater side

Remove lingering changes from app.py, ctrl.py

pylint

pylint (2)

Finish porting new admin settings tab to updater

Change name of Updates tab on settings page

Fix spelling in comment in app.py

Robustify setPersist function against edge cases, add documentation

pylint

Add delete logs endpoint, cronjob that calls it at midnight

Updates/Admin

Change comment on delete_persisted_logs_crontab

Update CHANGELOG.md
remove optional "value" bool from post persist_logs
Fix log level selection endpoint

correct variable names in MPRIS_metadata_reader.py
@SteveMicroNova
Copy link
Contributor Author

I am marking this PR for death, it has reached a state where it would be better to manually move these changes over to another branch by hand due to the advancements on both main and the underlying branch that is #828

Once #828 is merged, I'll be making a new branch off of main and reimplementing this with simple copy+paste and edit and then closing this PR

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.

Set system timezone from frontend
1 participant