Skip to content

Retrieve products and areas directly from Radar#41

Open
tonyarnold wants to merge 2 commits intobr1sk:masterfrom
tonyarnold:feature/retrieve-products-and-areas
Open

Retrieve products and areas directly from Radar#41
tonyarnold wants to merge 2 commits intobr1sk:masterfrom
tonyarnold:feature/retrieve-products-and-areas

Conversation

@tonyarnold
Copy link
Copy Markdown

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!

@keith
Copy link
Copy Markdown
Member

keith commented Sep 19, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants