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

Feature/issue 42 Use time range in db query #47

Merged
merged 9 commits into from
Dec 4, 2023

Conversation

torimcd
Copy link
Collaborator

@torimcd torimcd commented Nov 29, 2023

Github Issue: #42 - Change database query to use time range

Description

The query from the API to the DB wasn't using time, causing all times including those outside the range specified to be returned.

Overview of work done

Updated the keyconditionexpression to use the sort key to only return items between the start and end times specified. Changed datetime types to strings to support the dynamo query. Updated the API tests, fixed some linting.

Overview of verification done

Existing tests failed due to start and end times that were outside the test data. Updated the API tests and now unit tests pass.

Overview of integration done

Tests pass.

PR checklist:

  • Linted
  • Updated unit tests
  • Updated changelog
  • Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

@frankinspace frankinspace linked an issue Dec 4, 2023 that may be closed by this pull request
@frankinspace frankinspace merged commit 00a2d6e into develop Dec 4, 2023
5 checks passed
@frankinspace frankinspace deleted the feature/issue-42 branch December 4, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Change database query to use time range
2 participants