-
Notifications
You must be signed in to change notification settings - Fork 0
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
adapt get_acoustic_detections.R to receive credentials as arguments #1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Update parameters for get_tags and get_receivers
Implement animal_id parameter
Implement animal_id parameter
Order returned results
Order returned results
Order returned results
Move (receiver_)status from get_deployments() to get_receivers()
Create function to download dataset
Create function to download dataset
Create function to download dataset
Create function to download dataset
Add test download dataset
Restore functionality with old database
Restore functionality with old database
Restore functionality with old database
New functions (part 1)
New functions (part 1)
New functions (part 1)
New functions (part 1)
New functions (part 1)
New functions (part 1)
Remove unused get_archival_tags() function
Remove unused get_archival_tags() function
The return from the API has changed, probably due to a database change.
correct list of expected species names
Dev: js postman tests
Split get_projects() in 3 functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dev
Improvements to development workflow
documentation
Improvements or additions to documentation
enhancement
New feature or request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Motivation
This large pull request will bring this repo up to date with the etn-opencpu branch, with the goal of archiving that branch and bringing all server side development of the openCPU related code to this repo here and etn itself becoming a client side wrapper of this API removing the need for access to the vliz rstudio environment to use etn.
Main overview of changes
Note on old commits appearing
I'm trying to preserve the log from etn, so commit history will be older than this actual repo. The advantage of this approach is that the functions here will still have complete blame history, but it does add complexity.
Next Steps
Testing
A testing suite for the API still needs to be selected and implemented.
Where should tests live, on etn or on etnservice?
I'm thinking about tests about response time and uptime monitoring. Unit test for the functions themselves we can cover with testthat in github actions. I don't think the unit tests need to run on a schedule, but response time and uptime do.
Postman was implemented, we are uptime monitoring is currently disabled for the live-test branch because the postman tests keep failing and cause the monitor to disable. As soon as the API requests are successful at least most of the time, monitoring can resume.
Postman is also useful to bugfix the API calls themselves.
API Documentation
Perhaps a wiki on GitHub would suffice?
Postman can also do this: https://learning.postman.com/docs/publishing-your-api/documenting-your-api/
It would be nice to have a landing page for https://opencpu.lifewatch.be with some documentation, is opencpu compatible with swagger? An emtpy issue exists: Auto generate swagger docs opencpu/opencpu#294, an example of what I'm thinking about: https://petstore.swagger.io/, swagger allows you to live demo an api in the browser.
restRServe supports swagger: https://restrserve.org/, but it's a different framework from opencpu
Todo
get_acoustic_detections() is dependent on a number of other exported functions, these (and their tests) need to be ported as well:
Tests need to pass on the hosting side as well as on the client side. Otherwise it would be difficult to diagnose problems in the future.
On the postman side:
Testing for HTTP status code, response time lower then 3 seconds, and for the list functions; 50 random values, or if there are less then 50, all values. This could cause test failure on the long run if values are removed from the database.
The documentation needs to be updated for all ported functions, consider replacing con with credentials: #9