Skip to content

Commit

Permalink
Move labtests to MaterialsData (from ProductContent)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Gammon committed Oct 16, 2021
1 parent 8675b46 commit dbb47b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion opencannabis/content/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ proto(
"//opencannabis/structs:Shelf",
"//opencannabis/structs:Species",
"//opencannabis/structs:Genetics",
"//opencannabis/labtesting:TestResults",
"//opencannabis/products/distribution:DistributionChannel"
],
)
Expand Down Expand Up @@ -66,7 +67,6 @@ proto(
"//opencannabis/structs:ProductFlags",
"//opencannabis/temporal:Instant",
"//opencannabis/structs/pricing:PricingDescriptor",
"//opencannabis/labtesting:TestResults",
"//opencannabis/core:Datamodel"
],
)
Expand Down
5 changes: 5 additions & 0 deletions opencannabis/content/MaterialsData.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import "opencannabis/structs/Shelf.proto";
import "opencannabis/structs/Species.proto";
import "opencannabis/structs/Genetics.proto";

import "opencannabis/labtesting/TestResults.proto";

import "opencannabis/products/distribution/DistributionChannel.proto";


Expand Down Expand Up @@ -148,4 +150,7 @@ message MaterialsData {

// Describes subjective test results, including tasting notes, feelings, etc.
SubjectiveTesting subjective_tests = 6;

// Quantitative/qualitative tests performed by a certified lab.
opencannabis.labtesting.TestResults lab_tests = 7;
}
8 changes: 2 additions & 6 deletions opencannabis/content/ProductContent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import "opencannabis/temporal/Instant.proto";
import "opencannabis/media/MediaKey.proto";

import "opencannabis/structs/ProductFlags.proto";
import "opencannabis/labtesting/TestResults.proto";
import "opencannabis/structs/pricing/PricingDescriptor.proto";


Expand Down Expand Up @@ -70,12 +69,9 @@ message ProductContent {
// Pricing specification for this product, regardless of pricing type (i.e. weighted or unit-style pricing).
opencannabis.structs.pricing.ProductPricing pricing = 7;

// Lab testing information concerning this product.
opencannabis.labtesting.TestResults tests = 8;

// Product flags attached to this content.
repeated opencannabis.structs.ProductFlag flags = 9;
repeated opencannabis.structs.ProductFlag flags = 8;

// Timestamps for this product.
ProductTimestamps ts = 10;
ProductTimestamps ts = 99;
}

0 comments on commit dbb47b3

Please sign in to comment.