|
[
Permalink
| « Hide
]
dinesh added a comment - 22/Sep/08 11:52 AM
Is this even still an issue?
After a thorough search through the code, the only API function that uses the (faction, realm) in it's definition, or when called, is AucAdvanced.API.QueryImage(query, faction, realm, ...)
This function actually does need to have faction and realm specified separately, so the code is not misleading. However, we may want to consider changing this to serverkey, for consistency. removed search tag
The API functions call certain functions from the Auc-Stat-* modules, particularly lib.GetItemPDF, lib.GetPriceArray, lib.GetPrice, lib.ClearItem
Many of these functions in the Auc-Stat-* files take (hyperlink, faction, realm) parameters. I had a quick look through to see (to put it bluntly) why we were not getting glaring errors all the time... Some treat 'faction' as a serverKey (i.e. works correctly, but would be nice to change the names for clarity) The matching modules do not conform to serverKey either:
The GetMatchArray function does not take a serverKey parameter. However both Undercut and BeanCounter matchers are based on current server data. Verified in dev/Trunk: serverKey changes implemented and functioning for all statistics.
Reopened as incomplete - some API calls still not using serverKey at all (i.e. Matchers
Contrary to the above, I believe AucAdvanced.API.QueryImage(query, faction, realm, ...) does need to be converted to take serverKey
It may need to split the key, as Auc-Scandata currently stores its database in a [Realm][Faction] format - possibly this needs to be converted as well? Looking into the code in CoreScan Auc-ScanData, I suspect there may be a bug which prevents other realm data from being accessed properly. Enhancing this to critical since we really should be consistent with our API.
We're almost done. Right now every API function should accept serverKey if appropriate.
Some blocker issues are still "unresolved" because they currently have temporary conversion code in place, and still need more work. However from the outside they should function correctly using serverKey. It should now be "safe" to go ahead with writing code that uses serverKey, e.g. unblocking Appraiser's GetPrice and going ahead with ADV-135. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||