Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

Create form for making a new test #30

Open MarkKoz opened 2 years ago

MarkKoz commented 2 years ago

Once a device is registered and parameters have been created, the user should be able to create some tests. Tests are an automated way to tell the device to gather data from specific sensors at a regular interval. The test model is defined here. In addition to the fields in that model, the form should prompt the user to associate existing parameters with the new test. A test must be associated with one or more parameters. However, currently, the DB does not enforce having at least 1 parameter for a test.

This task has two parts:

  1. Implementing the UI
  2. Connecting the UI to the backend API

The backend API will be used to retrieve existing parameters and to save the created test. Be mindful of any validation errors the API returns and handle them accordingly in a user-friendly way.