-
Notifications
You must be signed in to change notification settings - Fork 13
Sfresults #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sfresults #123
Conversation
odm2api/ODM2/services/readService.py
Outdated
| return None | ||
|
|
||
| # Results | ||
| def getResults(self, ids=None, type=None, uuids=None, actionid=None, simulationid=None, sfid=None, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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,
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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! 😄
|
I have a few questions before I think it's ready. Also, there are conflicts that need to be addressed. Thanks @sreeder. |
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.