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: Pick Expiry Date in Poll #2

Open
7 tasks
easybulb opened this issue Jul 26, 2024 · 0 comments
Open
7 tasks

Feature: Pick Expiry Date in Poll #2

easybulb opened this issue Jul 26, 2024 · 0 comments

Comments

@easybulb
Copy link
Owner

easybulb commented Jul 26, 2024

In order to automatically hide the poll as an administrator, I can pick the expiry date while publishing a poll

Acceptance Criteria:

  • The poll should disappear at 11:59PM on the target date.
  • The real estate of the "Poll" should be reserved on the home page. A message that says "Stay tuned, a new poll is coming soon" should appear if no other poll is active.
  • The administrator expiry date should be at least three days after the current date.

Tasks

  • Update the admin module view: the poll design (HTML and CSS) to include date picker.
  • Update the admin module view: show, "Stay tuned, a new poll is coming soon".
  • Create a JavaScript function to validate the expiry date is at least after 3 days.
  • Create a job to check expired polls everyday at 11:59PM and Hide them.
  • Update the controller function
  • Update the unit text scripts
  • Test the functionality
@easybulb easybulb added this to the Product Backlog milestone Jul 27, 2024
@easybulb easybulb changed the title Feature: Publish a Poll Feature: Pick Expiry Date in Poll Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant