Skip to content

kevinh-csalabs/little-lims

 
 

Repository files navigation

Getting Started

$ bundle install        # Install dependencies
$ rails db:setup        # Set up the local database

Your assignment

After completing each of the steps below, commit your changes to your local clone with a meaningful commit message.

1.) The Sample model needs the ability to automatically calculate unit_weight_in_grams when the unit_of_measurement is in milliliters or fluid_ounces and the density is available. The density is stored in grams per milliliter and we will assume all 'fluid_ounces' are imperial fluid ounces. There are some commented out assertions in spec/models/sample_spec.rb which should pass once this step is completed.

2.) The UnitConverter service knows how to convert to/from the units of measurement listed within it. Add a new unit called 'MILLIGRAMS_PER_MILLILITER' and update the service so that it can convert to/from this unit. There are some commented out assertions in spec/services/unit_converter_spec.rb which should pass once this step is completed.

3.) There is a fixture file located at spec/fixtures/cannabinoid.csv that stores some test result data for a handful of cannabinoids. Create a service which parses files with this format and creates test result data for a SampleReport for a sample with the name provided in the file. The values should be stored in percentages. Add a migration file for any new table(s) you create to store this data. For this step, we only really care about storing the analyte name and concentration (in %) for the results. Be sure to add at least some basic specs which cover your new code.

4.) Create a git bundle with your changes and email it to earnold@csalabs.com and kpresley@csalabs.com along with a brief explanation of your solution. Be sure to include 'little-lims' in the email subject. Do not push your solution to GitHub.

We will evaluate your solution based on completeness, object oriented principles, and test coverage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 75.1%
  • HTML 12.8%
  • CSS 8.4%
  • Shell 1.9%
  • JavaScript 1.8%