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

Support /api/v1/instance and /api/v2/instance #3153

Closed
wants to merge 2 commits into from
Closed

Support /api/v1/instance and /api/v2/instance #3153

wants to merge 2 commits into from

Commits on Jan 8, 2023

  1. Support /api/v1/instance and /api/v2/instance

    Start to split the API code in to v1 and v2 interfaces.
    
    Migrate the getInstance() function (rename to instance() for consistency with
    most other API functions) to v1, and create a v2 equivalent. At the moment
    they're identical because they return the same type.
    
    Modify InstanceInfoRepository to prefer the v2 call, falling back to v1 if
    that fails (then the cache, or defaults, per previous behaviour).
    
    Create factory methods for InstanceInfo and InstanceEntity to keep related
    code together, ditto for defaults.
    
    Update consumers and tests.
    
    Fixes #3146
    Nik Clayton committed Jan 8, 2023
    Configuration menu
    Copy the full SHA
    0d4917a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    998f937 View commit details
    Browse the repository at this point in the history