Closed dmfenton closed 9 years ago
Generally looks okay to me.
As an aside, I think we should start moving methods out of the controller if they don't correspond to routes. Typically any exposed method on a controller should correspond 1:1 with a route or at least a route filter in express/MVC. Moving utility methods into a lib/
folder would take down the rather long line count here too.
Totally agree that we should factor out methods that don't correspond to routes. Good point about the utility methods.
@ngoldman good to go
@ngoldman This could use a solid read. I'm going to hold off on adding a lot of tests around the new download method until I refactor it further into more methods.
This PR begins to refactor the massive
findItemData
method and moves all status returns to a single method called_returnStatus
Some key points:
getFeatureServiceInfo
has been replaced with methods in Featureservice.js