• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alphagov / notifications-admin / 4223
87%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix-days-provider-history
DEFAULT BRANCH: master
Ran 11 Aug 2016 12:35PM UTC
Jobs 1
Files 54
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4223

push

travis-ci

quis
Make service API client do partial updates

The service API client was updating every attribute of a service. Which,
while kinda clunky, is fine…

…until something calling it doesn’t pass in every attribute of the
current service. It was then defaulting optional parameters to `None`.
Which resulted in a bug whereby every time a service was set to live,
its `reply_to_address` and `sms_sender_name` got overwritten to be
empty.

This commit changes the `update` method to only require the service ID,
and pass whatever other named arguments it received straight through to
the API. The API handles partial updates just fine (I think).

3 of 3 new or added lines in 1 file covered. (100.0%)

2007 of 2304 relevant lines covered (87.11%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
app/notify_client/service_api_client.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
app/main/views/service_settings.py
24
100.0
app/notify_client/service_api_client.py
Jobs
ID Job ID Ran Files Coverage
1 4223.1 (auth_token=[secure]) 11 Aug 2016 12:35PM UTC 0
87.11
Travis Job 4223.1
Source Files on build 4223
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4223
  • c3c5383e on github
  • Prev Build on allow-partial-service-updates (#4222)
  • Next Build on allow-partial-service-updates (#4229)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc