Skip to content

Conversation

@krystophv
Copy link
Member

@krystophv krystophv commented Aug 8, 2024

WEB-3063 given a start and end date, ensure that the latest pump settings fetch respects those bounds

@krystophv
Copy link
Member Author

/deploy qa2

* master:
  v1.7.4
  [WEB-3036] bump viz to release
  Bump axios from 1.6.8 to 1.8.2
  [WEB-3036] bump viz
  [WEB-3036] dependency updates
  [WEB-3036] prevent data-tools from thinking it's running the show
  remove debug `ls` from Dockerfile
  [WEB-3036] updates to integrate latest viz into export service
@krystophv krystophv requested a review from Copilot June 3, 2025 16:12
Copy link

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 updates the pump settings query to respect the user-provided date range when fetching the latest settings.

  • Adds startDate and endDate parameters to the pump settings request
  • Ensures the fetch call is bounded by the report’s date range
Comments suppressed due to low confidence (3)

lib/report.mjs:857

  • Add or update unit/integration tests to assert that startDate and endDate are correctly passed through in the request when provided.
params: {

lib/report.mjs:860

  • Verify that the API expects startDate and endDate in camelCase. If the backend contract uses snake_case (e.g. start_date), rename these keys to match the spec.
startDate: this.#reportDates.startDate,

lib/report.mjs:860

  • [nitpick] Only include startDate and endDate when they are defined to avoid sending undefined values. You might build the params object conditionally or filter out undefined keys.
startDate: this.#reportDates.startDate,

@krystophv krystophv requested a review from Copilot October 22, 2025 16:30
Copy link

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 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

1 participant