Skip to main content

Terminal user interface (TUI) for Waldur Site Agent.

Project description

Waldur Site Agent TUI

Waldur Site Agent TUI is a terminal user interface (TUI) for Waldur Site Agent.

How to use

In order to analyze the code you can view it in the public GitHub repository. Another option is to clone it into your machine for example, but be advised that the use will be limited for the lack of data.
To use the TUI, you would need a test environment with simulated data. We have set up a virtual machine for that. We also need your ssh key to give you access to the machine, you can email one of us for that. There you have two options, you can use already pulled source code and installed dependencies or you could try doing it yourself.

Using TUI in the Test VM with everything set up and installed:

  • ssh into ubuntu@193.40.155.199
  • Go to cd development/Waldur if you want to use already pulled code
  • Run the TUI with poetry run python src/WaldurSA_TUI/main.py

Using TUI in the Test VM and setting everything up yourself:

  • ssh into ubuntu@193.40.155.199
  • Go to a review directory if you want to test pulling source code yourself
    • cd review/mentor if you are the mentor
    • cd review/peer if you are the peer reviewer
    • Clone the GitHub project and move into it with cd WaldurSA-TUI
  • To run it from the source code, you'd need to install the following:

UI

  • You can use either a mouse or a keyboard to navigate
  • To switch between TUI elements
    • Press ‘tab’
  • To switch to a different tab
    • Select the tab switcher
    • Press ‘left arrow’ or ‘right arrow’ to switch tabs
  • To navigate between dates or tables
    • Use the arrow keys

For developers

From PyPi:

  • To install the PyPi package use the following command:
    • pip install WaldurSA-TUI
    • or a specific version, for example: pip install WaldurSA-TUI==0.2.0
    • To run the package use the following command: waldur_site_agent_tui

Release notes

Release notes 0.2.0

Logs tab:

  • Real log usage
    • The TUI now uses logs realated to the Waldur Site agent
  • Logs are now refreshed automatically
    • Refresh every 30 seconds, which can be paused
  • Filtering
    • Added Sort by Date
      • From, to, and from - to sorting
    • Added Sort by timeframe
      • From, to, and from - to sorting
    • Added Sort alphabetically
      • Sort from A-Z
  • Optimizations
    • loading in logs does not freeze the TUI

Configured offerings tab

  • Real configured offerings usage
    • The TUI now uses configured offerings realated to the Waldur Site agent

Dashboard

  • Real data usage
    • The TUI now fetches services from waldur the Waldur Site agent

Known bugs

  • Logs tab
    • 'Clear filters' button deletes all visiable data
    • Filters do not take affect on new logs
    • When scrolling down in a table with keyboard doesn't show active row on screen
  • Some automated test fail
    • Likely related to how async and threads are implemented in the configured offerings file. Random failing hasn't happened with log testing.
    • Should not impact manual testing
  • Fixed
    • Filtering and async mismatch
      • Filters did not work correctly with async at first

Release notes 0.1.0

  • Added dashboard tab
    • Only includes static test info for now
  • Added logs tab
    • Includes 3 log categories
    • Logs are searchable
    • UI for search by date is added
      • Not yet functional
    • A simple export logs button
      • Export logs that can be viewed
      • May need to change the functionality in the future
    • Table for log info
      • Only includes test logs for now
  • Added configured offerings tab
    • Offerings are searchable
    • A list view for available offerings
    • Each offering has a view for its included items and values
    • Only includes test info for now
  • Added keybindings
    • ‘q’ for quitting the TUI
    • ‘e’ for a simulated error popup
  • Known Bugs
    • None, works with test data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waldursa_tui-0.2.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waldursa_tui-0.2.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file waldursa_tui-0.2.0.tar.gz.

File metadata

  • Download URL: waldursa_tui-0.2.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for waldursa_tui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 353a2b74e5e2738d2ee89b99430f10bbd3922738f3f549c6e132d9f9091a9a13
MD5 4003ae7974d103cb149a2c22990a2f36
BLAKE2b-256 11e6c37ba8072c5cc504400412a6c845fdb558037322d019144859159cf7ad19

See more details on using hashes here.

File details

Details for the file waldursa_tui-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: waldursa_tui-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for waldursa_tui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f373a02084846001a6f1ae4cca6848605ffa7f88e669daf8e2c0c7e4a31ebee4
MD5 1c2512385daf2d140d0848235f4b7c45
BLAKE2b-256 c3129954ca14f7c6eb0f1015705f15c7e8e552ee1563e573ac4d1fb43decd979

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page