Closed UncleGoogle closed 4 years ago
After rethinking IMO best solution is "won't do". So Galaxy is responsible to group proper ids into one game whether it reported as subscription game or as key to reveal/ extras ect. User has to open proper id-game view to chose proper behavior on clicking Install.
Logic for install behavior depending on id should be:
subscription/<month>-<year>
if month not unlocked yet or subscription/<month>-<year>/<game_id>
if unlockedPotential problem is someone want to open subscription/<month>-<year>
page using Extras to check from which month it comes, but it won't work like that. Workaround is to link subproducts/keys objects with subscription name and in such case look for subscription extrases - if there is also such id there. But for now - won't do, as unnecessary complication.
Alternative solutions was:
get_subscription_games
method - rejected as too complicatedget_owned_games
- rejected as more work that gives not so much (Galaxy deduplication and filters work good)get_subscription_games
implementation) - shows subscription games, independent from owned_games
game ids; unselected "choice mode" will use the cached owned_games
which keep additional info about product source so ONLY ALREADY CHOSEN Humble Choice games are shown with no duplication problems.As Galaxy allows to filter subscription_games I decided to leave current implementation (aka choice mode that cannot be changed)
Reserach:
We have such sources of information:
library.py
)machine_name
matching the one from final tpkds/subproduct from orders API (probably they are there from the very beginning) so it should come fromlibrary.py
.And one more thing to check:
unlockedContentEvents
. In march it looks like that:This additional
planetcoaster_dlc
is only there - it not matches any knownmachine_name
.Need to check if
planetcoaster_worldsfairpack_choice_steam
comes in API orders as a steam key when you have not chosenplanetcoaster
. That would be complication.Similar case in january with
dirt
andgrip
games with DLCs. Need to ask someone who have not claimed it what he see when click "GET Extras". Aredirt
DLC there or not?