Skip to content

Check for update points to the wrong URL

name: "Bug Report Template"
about: "For filing bugs. Please search for existing issues first. Also see CONTRIBUTING."

Bug Report

Current Behavior A clear and concise description of the behavior.

The Check for Updates menu item is pointing to the wrong URI, and instead should use the USGS GitLab API

Expected behavior/code A clear and concise description of what you expected to happen (or code).

The check update functionality should use the GitLab API and retrieve the latest release info

Possible Solution

A correct call to the gitlab api for IVyTools to pull JSON of the latest

Some Python demonstrating:

# GitLab API URL
api_url = "https://code.usgs.gov/api/v4/projects/hydrologic-remote-sensing-branch%2Fivy/releases"

def get_latest_release_tag():
    response = requests.get(api_url)
    response.raise_for_status()
    releases = response.json()
    if releases:
        return releases[0]["tag_name"]
    return None

current_release = get_latest_release_tag()
current_release

>>> '1.0.0.0'

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.