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

Draft Case Contact Filter Fix #5496

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Draft Case Contact Filter Fix #5496

merged 2 commits into from
Jan 26, 2024

Conversation

schoork
Copy link
Collaborator

@schoork schoork commented Jan 23, 2024

What github issue is this PR for, if any?

Did not create an issue

What changed, and why?

Fixed Drafts not showing when only a single casa case was filtered.
image (1)
image

How will this affect user permissions?

None

How is this tested? (please write tests!) 💖💪

  • spec/system/case_contacts/index_spec.rb

Screenshots please :)

Feelings gif (optional)

What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:
![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)

Feedback please? (optional)

We are very interested in your feedback! Please give us some :) https://forms.gle/1D5ACNgTs2u9gSdh9

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 erb labels Jan 23, 2024
@@ -49,7 +49,7 @@
</div>
<div class="field-card mt-4">
<h5 class="mb-3"><%= form.label :occurred_at, "Occurred On" %>:</h5>
<% occurred_at = learning_hour.occurred_at || Time.zone.now %>
<% occurred_at = learning_hour.occurred_at || Date.today %>
Copy link
Collaborator Author

@schoork schoork Jan 23, 2024

Choose a reason for hiding this comment

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

Unrelated, but fixes some flakiness if the test is run late enough in the date that Time.zone.now ends up being tomorrow.

Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

Looks good!!

@schoork schoork merged commit a065588 into main Jan 26, 2024
14 checks passed
@schoork schoork deleted the draft-case-contact-filter-fix branch January 26, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants