Closed YashKumarVerma closed 3 years ago
Have you done any other configuration changes compared to the defaults in develop.yml? I can't get it to read from mongo at all.
just checked, the problem was that the connector function was appending mongodb://
in the passed connection string from process.env, fixing it
Hello there, is there something that I can improve in the PR ??
I'm still not getting any results from any of the find endpoints despite data being in the database. Similarly, posting slide metadata doesn't update the mongo collections or the backend's slide/find route's results. If you've done the usual test (add slide, view slide, delete slide) successfully, then perhaps there's something more deeply different than expected about our environments or something of the sort.
Changelog:
@birm could you please try the changes and see what tests fail on your end. I'm afraid there might be some particulars that are different on my local setup.
As of now, I'm facing issues in getting a smooth running distro instance on my machine, therefore cannot test the service with /caracal codebase.
So I tried debugging the issue, isolated the service, and tested it, but couldn't find the area of the problem.
Then I did the following, based on routes.json, created a postman collection of the endpoints that operate on database actions.
The endpoints were behaving as expected, but there was one patten: the listing route was not working.
The problem was a simple typo in dataHandler that was calling mongo.add in place of mongo.find
The tests I wrote were testing the service, but the handler, therefore it was not detected in the tests.
I've deployed my fork at:http://yashkumarverma-workbench.uaenorth.cloudapp.azure.com:4010/apps/table.html
@birm ping :)
Thanks! meanwhile got to learn a lot about the project ⭐
Summary
There are three issues linked with the project, here's a summary of what this PR accomplishes.
Details
Motivation
Testing
Questions