Sonar icon indicating copy to clipboard operation
Sonar copied to clipboard

Retrieve products and areas directly from Radar

Open tonyarnold opened this issue 7 years ago • 1 comments

I'm not sure if this PR is actually useful, but I had a bit of a poke at dynamically retrieving the product/area list from Radar directly so that issues like #40 can be avoided in future.

I found that (as long as you have a valid token), calling https://bugreport.apple.com/developerUI/problem/getProductAreaList will get you a JSON list of products and their areas, so I added Decodable conformance to the relevant model structs and away we go!

tonyarnold avatar Sep 19 '18 13:09 tonyarnold

A while ago I did start working on a separate CLI that would generate that swift file https://github.com/br1sk/Sonar/tree/ks/genit

This is probably nicer long term. This recent API change is worst case scenario, they've never changed the format of this this drastically before

keith avatar Sep 19 '18 15:09 keith