Skip to content

Conversation

@sreeder
Copy link
Contributor

@sreeder sreeder commented Nov 13, 2017

address /samplingfeatureresults endpoint in the REST API by adding parameters to the getResults function. deprecate sfid parameter in lieu of sfids to allow the user to send in multiple ids at a time.

return None

# Results
def getResults(self, ids=None, type=None, uuids=None, actionid=None, simulationid=None, sfid=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we are at this, can type change to restype?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, is sfid being used anymore? If not, can it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lsetiawan I don't want to just delete the parameters because I know there are people out there who are using these functions, and just removing them would cause their code to stop working. So what I am doing is adding a warning message to let them know the function call will be changing, so that people have a little time to make the change. then the next release we do, we can delete them. but yes I can add restype. and a warning message to type,

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. Thanks for the explanation. That makes sense 😄

Version VARCHAR (255) NULL,
ModelLink VARCHAR (255) NULL
"""
def test_getSamplingFeatureByCode(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the tests! 😄

@lsetiawan
Copy link
Member

I have a few questions before I think it's ready. Also, there are conflicts that need to be addressed. Thanks @sreeder.

@sreeder sreeder merged commit 2d3e4ab into development Nov 15, 2017
@sreeder sreeder deleted the sfresults branch November 15, 2017 11:54
@lsetiawan lsetiawan mentioned this pull request Jan 8, 2018
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.

3 participants