Skip to content

Add enhydris_api_client.put_timeseries() (fixes DEV-130)#60

Merged
aptiko merged 2 commits intoopenmeteo:masterfrom
aptiko:dev-130--put-timeseries
Nov 7, 2025
Merged

Add enhydris_api_client.put_timeseries() (fixes DEV-130)#60
aptiko merged 2 commits intoopenmeteo:masterfrom
aptiko:dev-130--put-timeseries

Conversation

@aptiko
Copy link
Copy Markdown
Member

@aptiko aptiko commented Nov 6, 2025

No description provided.

@aptiko aptiko requested a review from Copilot November 6, 2025 19:29
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a put_timeseries method to the Enhydris API client to support updating existing time series resources via HTTP PUT requests.

Key Changes:

  • Implemented put_timeseries method for updating time series
  • Added test coverage for the new method
  • Updated documentation to reflect the new update capability

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/enhydris_api_client/__init__.py Added put_timeseries method that performs PUT requests to update time series resources
tests/enhydris_api_client/test_timeseries.py Added PutTimeseriesTestCase to test the new method's request behavior
docs/enhydris_api_client.rst Updated documentation to include put_timeseries and clarified that methods support update operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.85%. Comparing base (e2bd1b9) to head (e1a166b).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #60   +/-   ##
=======================================
  Coverage   95.84%   95.85%           
=======================================
  Files          19       19           
  Lines        2263     2266    +3     
=======================================
+ Hits         2169     2172    +3     
  Misses         94       94           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aptiko aptiko force-pushed the dev-130--put-timeseries branch from 4ea7fbd to 9b75d8b Compare November 6, 2025 19:39
@aptiko aptiko requested a review from Copilot November 6, 2025 19:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aptiko aptiko force-pushed the dev-130--put-timeseries branch 2 times, most recently from e834b90 to d0d0f03 Compare November 7, 2025 10:26
@aptiko aptiko force-pushed the dev-130--put-timeseries branch from d0d0f03 to e1a166b Compare November 7, 2025 12:21
@aptiko aptiko merged commit e1a166b into openmeteo:master Nov 7, 2025
6 checks passed
@aptiko aptiko deleted the dev-130--put-timeseries branch November 7, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants