Skip to content

Inquire the backend for device capabilities instead of Web UI assumptions#688

Merged
rdmark merged 13 commits intodevelopfrom
rdmark-backend-device-capabilities
Feb 21, 2022
Merged

Inquire the backend for device capabilities instead of Web UI assumptions#688
rdmark merged 13 commits intodevelopfrom
rdmark-backend-device-capabilities

Conversation

@rdmark
Copy link
Copy Markdown
Member

@rdmark rdmark commented Feb 21, 2022

  • Introduce RaCtlCmds class methods for getting lists of device types, and their capabilities, instead of hard coded constants in common_settings.py
  • Use device capabilities logic across the Web Interface and OLED script, removing hard coded assumptions
  • Introduce a get_device_name() method for mapping human readable device names, and use it in the Web Interface for device attachment messages
  • Use jinja2 sort filters instead of python logic
  • Refactoring

@rdmark rdmark merged commit 4252d46 into develop Feb 21, 2022
@rdmark rdmark deleted the rdmark-backend-device-capabilities branch February 21, 2022 17:27
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