DAVFoundation / missioncontrol

🛰 Controls and orchestrates missions between vehicles and DAV users
MIT License
181 stars 156 forks source link

Test that randombid parameters are coordinate objects (first-timers-only) #172

Closed cg-cnu closed 6 years ago

cg-cnu commented 6 years ago

first-timers-only

This issue is tagged :octocat: first-timers-only. It is only for people who have never contributed to open source before and are looking for an easy way take their first steps.

Consider this as your chance to dip your toe into the world of open-source and get some bragging rights for writing code that makes drones fly, cars find charging stations, helps people and goods move from place to place and more...

Find more first-timers-only issues from DAV Foundation here.

Thank you for your help :heart:

What is this project?

DAV (Decentralized Autonomous Vehicles) is a new non-profit foundation working to build an open-source infrastructure for autonomous vehicles (cars, drones, trucks, robots, and all the service providers around them) to communicate and transact with each other over blockchain.

As an organization that believes in building a large community of open-source contributors, we often create issues like this one to help people take their first few steps into the world of open source.

Mission Control

The DAV project you are looking at is Mission Control. Mission Control is a service running on the DAV network, and serving as a marketplace connecting DAV users looking to ship packages, with drone owners.

How you can help

As a project that relies on a large community of contributors, it is very important for us to have good tests to make sure changes don't break anything.

One of the functions that need testing is randomBid() inside /server/simulation/vehicles.js. This function receives three coordinates and returns an object describing a bid (composed of price, time to arrive to pickup point, and time to get from pickup to dropoff)

Coordinate objects should follow the below structure.

{
  lat : 1.0,
  long : 2.0,
}

In the file test/specs/simulation.vehicles.spec.js in describe('randomBid()') block test the following conditions:

To run your tests, run npm test from the project's root directory. All tests should pass.

tests

Contributing to Mission Control

Asking for help

We appreciate your effort in taking the time to work on this issue and help out the open source community and the foundation. If you need any help, feel free to ask below or in our gitter channel. We are always happy to help 😄

raphaeltelatim commented 6 years ago

Hey @cg-cnu, i would like to do it ;)

raphaeltelatim commented 6 years ago

Just a question, on topic "Make changes in the LICENSE file", would not be "DO NOT Make changes in the LICENSE file"?

I think i don't understand that one.

cg-cnu commented 6 years ago

Hey @raphaeltelatim Thanks for your interest. You can go ahead with the issue. 👍 Regarding the license file, I forgot to update it after creating the issue from the blueprint. Sorry for the confusion, its just a checklist for the first-timers to follow. Thanks for pointing out, I will be careful next time 🙂

raphaeltelatim commented 6 years ago

Hey @cg-cnu, i think its done.

https://github.com/DAVFoundation/missioncontrol/pull/177

ashis0013 commented 6 years ago

Hello, @cg-cnu I am looking for my first open source project and I find this to be my opportunity; so, I'd like to do it :)

srfrnk commented 6 years ago

Hi @ashis0013 - i think this issue has been claimed already. If you'd like to help maybe you can pick another from here. Many tnanks!

cg-cnu commented 6 years ago

Hey @raphaeltelatim Thanks for your contribution to DAV 🙂 Feel free to join our gitter channel to find out about more opportunities to contribute to opensource.