-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Improve banner expiration validations and form #5828
Improve banner expiration validations and form #5828
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jp524. Thanks for changes so far! Having poked around trying to make those systems tests work I think its better to just move those tests into request specs to simplify the testing.
Thanks for your help @elasticspoon ! I implemented the changes and found a couple of bugs along the way so it was a good exercise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job dealing with all the time zone stuff. Its a pain in the ass and I'm glad I didn't have to do it.
Overall, I am happy with the PR. I had some minor nits but nothing blocking.
Nits have been addressed! Should be good now @elasticspoon |
What github issue is this PR for, if any?
Resolves #5815.
What changed, and why?
Modified banners per issue description:
<trix>
elements)Banner#expired?
method. I'm open to feedback if there are better ways to implement this)How is this tested? (please write tests!) 💖💪
Added some new model and system tests.
Screenshots please :)
New banner table
Expires at validation
Content validation