Skip to content

Commit

Permalink
HOTT-5132 Rename entity to CategoryAssessment
Browse files Browse the repository at this point in the history
Was previously `green_lanes_category_assessment` but thats not the name
we've been using in the docs
  • Loading branch information
jebw committed Feb 15, 2024
1 parent 8cc6f01 commit bf20850
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module GreenLanes
class CategoryAssessmentSerializer
include JSONAPI::Serializer

set_type :green_lanes_category_assessment
set_type :category_assessment

set_id :id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GoodsNomenclatureSerializer
:description_plain,
:producline_suffix

has_many :applicable_category_assessments, record_type: :green_lanes_category_assessment, serializer: Api::V2::GreenLanes::CategoryAssessmentSerializer
has_many :applicable_category_assessments, record_type: :category_assessment, serializer: Api::V2::GreenLanes::CategoryAssessmentSerializer
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
data: [
id: be_a(String),
type: 'green_lanes_category_assessment',
type: 'category_assessment',
attributes: {
category: '1',
theme: '1.1 Sanctions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"applicable_category_assessments": {
"data": [{
"id": GreenLanes::CategoryAssessment.all[0].id,
type: eq(:green_lanes_category_assessment),
type: eq(:category_assessment),
}],
},
},
Expand All @@ -47,7 +47,7 @@
},
{
id: GreenLanes::CategoryAssessment.all[0].id,
type: eq(:green_lanes_category_assessment),
type: eq(:category_assessment),
relationships: {
measures: {
data: [
Expand Down

0 comments on commit bf20850

Please sign in to comment.