Skip to content

Commit 32a3a4e

Browse files
authored
Merge pull request #784 from citizensadvice/CP-1298-remove-FF_NEW_CSR_DATA-code
chore/Remove FF_NEW_CSR_DATA code
2 parents b673a86 + 51ccb69 commit 32a3a4e

36 files changed

Lines changed: 1809 additions & 1348 deletions

.github/resources/preview-overrides.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ envVars:
2222
RAILS_ENV: production
2323
USE_TEST_SUPPLIERS: ${{ vars.USE_TEST_SUPPLIERS }}
2424
FF_SMALL_SUPPLIER_STARS: ${{ vars.FF_SMALL_SUPPLIER_STARS }}
25-
FF_NEW_CSR_DATA: ${{ vars.FF_NEW_CSR_DATA }}"

app/components/csr_table/other_scores_component.html.haml

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/components/csr_table/other_scores_component.rb

Lines changed: 0 additions & 66 deletions
This file was deleted.

app/components/csr_table/score_summary_component.html.haml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
%p.score-summary__text
1717
Contact waiting time
1818
= render CsrTable::ScoreComponent.new(score: supplier.contact_rating)
19-
- if Feature.enabled? "FF_NEW_CSR_DATA"
20-
%li.score-summary__item
21-
%p.score-summary__text
22-
Billing and metering
23-
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
19+
%li.score-summary__item
20+
%p.score-summary__text
21+
Billing and metering
22+
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
2423
%li.score-summary__item
2524
%p.score-summary__text
2625
Customer commitments

app/components/csr_table/supplier_table_component.html.haml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
%th.supplier-table__response{ scope: "col" }
1919
.cads-table__content
2020
Contact waiting time
21-
-if Feature.enabled?("FF_NEW_CSR_DATA")
22-
%th.supplier-table__billing{ scope: "col" }
23-
.cads-table__content
24-
Billing and metering
21+
%th.supplier-table__billing{ scope: "col" }
22+
.cads-table__content
23+
Billing and metering
2524
%th.supplier-table__guarantee{ scope: "col" }
2625
.cads-table__content
2726
Customer commitments

app/components/csr_table/supplier_table_row_component.html.haml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@
1414
%td.supplier-table__response
1515
.cads-table__content
1616
= render CsrTable::ScoreComponent.new(score: supplier.contact_rating)
17-
- if Feature.enabled? "FF_NEW_CSR_DATA"
18-
%td.supplier-table__billing
19-
.cads-table__content
20-
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
17+
%td.supplier-table__billing
18+
.cads-table__content
19+
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
2120
%td.supplier-table__guarantee
2221
.cads-table__content
2322
= render CsrTable::ScoreComponent.new(score: supplier.guarantee_rating)

app/components/csr_table/unranked_suppliers/stars_summary_component.html.haml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
%p.stars-summary__text
1515
Contact waiting time
1616
= render CsrTable::ScoreComponent.new(score: supplier.contact_rating)
17-
-if Feature.enabled?("FF_NEW_CSR_DATA")
18-
%li.stars-summary__item
19-
%p.stars-summary__text
20-
Billing and metering
21-
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
17+
%li.stars-summary__item
18+
%p.stars-summary__text
19+
Billing and metering
20+
= render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
2221
%li.stars-summary__item
2322
%p.stars-summary__text
2423
Customer commitments

app/controllers/queries/supplier_detail.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ module Queries
2121
},
2222
slug,
2323
rank,
24-
complaintsRating,
2524
complaintsRatingScore,
2625
complaintsNumber,
2726
contactEmail,
2827
contactRating,
29-
contactSocialMedia,
3028
contactTime,
3129
contactWebchatSync,
3230
contactWebchatAsync,

app/controllers/queries/suppliers.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ module Queries
1717
},
1818
slug,
1919
rank,
20-
complaintsRating,
2120
complaintsRatingScore,
2221
complaintsNumber,
2322
contactEmail,
2423
contactRating,
25-
contactSocialMedia,
2624
contactTime,
2725
guaranteeRating,
2826
overallRating,

app/models/supplier.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Supplier
77

88
delegate :name, :whitelabel_supplier, :slug, :rank,
99
:complaints_number, :contact_email, :contact_rating,
10-
:contact_social_media, :contact_time, :contact_info,
11-
:other_contact_info, :billing_info, :guarantee_rating,
12-
:guarantee_list, :overall_rating, :data_available, :fuel_mix,
10+
:contact_time, :contact_info, :other_contact_info,
11+
:billing_info, :guarantee_rating, :guarantee_list,
12+
:overall_rating, :data_available, :fuel_mix,
1313
:opening_hours, :bill_accuracy_and_metering_rating,
1414
:bills_accuracy_smart, :bills_accuracy_traditional,
1515
:smart_operating, :contact_webchat_sync, :contact_webchat_async,
@@ -54,6 +54,6 @@ def top_three?
5454
end
5555

5656
def complaints_rating
57-
Feature.enabled?("FF_NEW_CSR_DATA") ? data.complaints_rating_score : data.complaints_rating
57+
data.complaints_rating_score
5858
end
5959
end

0 commit comments

Comments
 (0)