Skip to content

Conversation

pbibra
Copy link
Contributor

@pbibra pbibra commented Apr 8, 2025

Proposed changes

Date filters when listing experiments or experiment runs do not currently work because mongodb stores updated_at as an integer and we pass in strings. This PR updates to convert the date range from a string to an int. Alternatively, the type of the date filter could have been changed, but that would break existing workflows so opted not to do it that way.

Issue: #5078
Slack thread: https://kubernetes.slack.com/archives/CNXNB0ZTN/p1742510947495359

Types of changes

What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices applies)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have signed the commit for DCO to be passed.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Dependency

  • Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

Verified via local instal that the UI now filters experiments by date correctly.

No experiment on Apr 7th, 2025
image

Single experiment on Apr 8th, 2025
image

Priya Bibra added 3 commits April 8, 2025 09:01
Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
@pbibra pbibra force-pushed the pbibra-fix-date-filters branch from ad57b4c to abe50a5 Compare April 8, 2025 16:02
Copy link
Member

@S-ayanide S-ayanide left a comment

Choose a reason for hiding this comment

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

LGTM Thanks for this change

Priya Bibra added 2 commits April 9, 2025 09:29
Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
@S-ayanide S-ayanide merged commit 5ef8065 into litmuschaos:master Apr 10, 2025
17 of 18 checks passed
@pbibra pbibra deleted the pbibra-fix-date-filters branch April 10, 2025 22:31
Calvinaud pushed a commit to Calvinaud/litmus that referenced this pull request May 20, 2025
* update date filter to pass ints to graphql

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>

* revert go mod

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>

* sign

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>

* gofmt

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>

* revert go ver

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>

---------

Signed-off-by: Priya Bibra <priya.bibra@airbnb.com>
Co-authored-by: Priya Bibra <priya.bibra@airbnb.com>
Signed-off-by: Calvin Audier <calvin.audier@amadeus.com>
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