Skip to content

Island Version checking #2109

@mssalvatore

Description

@mssalvatore

Refactor

Component(s) to be refactored

  • monkey_island.cc.resources.version_update
  • monkey_island.cc.services.version_update

Tasks

  • Add a new object called Version with attributes: (0d) @ilija-lazoroski
    • version_number - Passed in to Version() constructor
    • latest_version - A property that is populated asynchronously upon construction
    • download_url- A property that is populated asynchronously upon construction
  • Construct Version() at Island startup (0d) @ilija-lazoroski
  • Rename VersionUpdate to Version (0d) @ilija-lazoroski
    • Rename /api/version-update to /api/island/version
    • Rename VersionUpdate to Version
    • Rename resources/version_update.py to resources/version.py
  • Use Version object in /api/island/version endpoint (0d) @ilija-lazoroski
    • Add Version object to DIContainer
    • Rename newer_version to latest_version
    • Rename current_version to version_number
    • Modify the UI to compare version_number to latest_version
    • Add Version to resources/__init__.py and shorten all imports
  • Remove services/version_update.py (0d) @ilija-lazoroski
  • Add authentication to /api/island/version. There are comments stating that the UI needs to know the version number before authentication, but I don't know why that's the case. (0d)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions