Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Brent] Add payment for some containers. #5274

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dracos
Copy link
Member

@dracos dracos commented Nov 26, 2024

[skip changelog] Fixes https://github.com/mysociety/societyworks/issues/4589

(changes from WIP. -I moved the set up of payment into the about_you next because in the replacement next we don’t yet have the answer to the “how_long_lived” question, and I don’t think we need a special page about payment, they can stick whatever text they want in the intro)

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.37%. Comparing base (eeed092) to head (938046c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5274      +/-   ##
==========================================
+ Coverage   82.35%   82.37%   +0.02%     
==========================================
  Files         413      413              
  Lines       32668    32683      +15     
  Branches     5236     5240       +4     
==========================================
+ Hits        26903    26922      +19     
+ Misses       4216     4212       -4     
  Partials     1549     1549              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nephila-nacrea nephila-nacrea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks OK to me but there are a few things I have questions about.

perllib/FixMyStreet/Cobrand/Brent.pm Show resolved Hide resolved
perllib/FixMyStreet/Cobrand/Brent.pm Outdated Show resolved Hide resolved
templates/web/brent/waste/request/intro.html Show resolved Hide resolved
t/cobrand/brent.t Outdated Show resolved Hide resolved
t/cobrand/brent.t Show resolved Hide resolved
t/cobrand/brent.t Show resolved Hide resolved
@dracos dracos force-pushed the 4589-brent-charging-containers branch from bbb3f90 to 938046c Compare November 27, 2024 17:06
@dracos dracos removed the request for review from MorayMySoc November 27, 2024 17:06
@@ -54,14 +54,21 @@ sub council_area { return 'Brent'; }
sub council_name { return 'Brent Council'; }
sub council_url { return 'brent'; }

Readonly::Scalar my $CONTAINER_GREY_BIN => 16;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the upside to using Readonly::Scalar versus 'use constant'? I haven't come across Readonly often.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the main advantage here is that use constant constants can't be used as keys in hashes, see https://metacpan.org/pod/Readonly#Comparison-with-%22use-constant%22

Readonly::Scalar my $CONTAINER_FOOD_CADDY => 11;
Readonly::Scalar my $CONTAINER_GREEN_BIN => 13;
Readonly::Scalar my $CONTAINER_BLUE_SACK => 46;

my $BRENT_CONTAINERS = {
1 => 'Blue rubbish sack',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has 1 been left alone because it's not currently used anywhere else?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I wasn't sure if it should actually be removed, but this halfway house seemed easiest :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants