Schemas/gameversion: Document denoting Live versus Legacy for CAPI data
See original GitHub issueWith Update 14 there are now two CAPI servers:
- Live remains as https://companion.orerve.net/
- Legacy is https://legacy-companion.orerve.net/
As such any EDDN Sender using CAPI-sourced data can know which galaxy it is for.
Thus it is proposed to update the documentation for gameversion to mandate that CAPI-sourced data use a string of the form CAPI-<galaxy>-<endpoint>
, e.g.:
CAPI-Live-market
- CAPI-sourced data for the Live galaxy, from the/market
endpoint.CAPI-Legacy-market
- CAPI-sourced data for the Legacy galaxy, from the/market
endpoint.
This format allows Listeners to, for example:
- Check for leading
CAPI-
, and if found. - Split the string on
-
and utilise the 2nd and 3rd components.
If you have a good reason why your code wouldn’t be able to keep track of the galaxy it queried data from, and thus you need to continue with CAPI-<endpoint>
make your case now. Obviously listeners will at least need to cope with such enough to discard the data if they so choose.
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Cash Assistance Program for Immigrants (CAPI)
Who is it for? CAPI is a 100 percent state-funded program designed to provide monthly cash benefits to aged, blind, and disabled non-citizens...
Read more >Cash Assistance Program for Immigrants (CAPI)
Cash Assistance Program for Immigrants (CAPI) provides cash assistance to certain aged, blind, and disabled legal immigrants ineligible for Supplemental ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem with that is then a Listener can’t tell if
CAPI-market
is because a Sender had set that up before the change and just not thought to change it after adding support for the Legacy CAPI server. A wholesale change for Live versus Legacy makes it crystal clear if they have or not.CAPI-market
- an initial implementation, not updated. Could possibly be either galaxy, if the Sender added support for the alternate Legacy host.CAPI-Live-market
- updated for this change, Live galaxy.CAPI-Legacy-market
- updated for this change, Legacy galaxy.Yes, it’s a corner case, but one worth keeping in mind.
Always denoting the source galaxy also means no ambiguity if quickly looking at this (unlike the game launcher where I see some people are confused as to which “Elite Dangerous: Horizons” is due to the UI/UX not necessarily also showing “Legacy Horizons” at the same time).
Merged ->
develop
->master
->live
.