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

Add publication date for milestones #2188

Merged

Conversation

aitbw
Copy link
Collaborator

@aitbw aitbw commented Dec 14, 2017

Where

What

  • Add a new publication_date attribute to Budget::Investment::Milestone so end-users can tell when a milestone is achieved

How

  • Ran a DB migration to include a publication_date attribute into budget_investment_milestones table
  • Modified related MVCs to include/show the new attribute
  • Added English/Spanish translations

Screenshots

  • New milestone being created
    screenshot-2017-12-13 admin

  • Milestone created
    screenshot-2017-12-13 admin 1

  • Milestone shown to the end-user
    screenshot-2017-12-13 exercitationem autem dolore debitis aut consequatur

Test

  • Related milestone specs were adapted to include the new attribute

@aitbw aitbw force-pushed the aperez-dates-for-milestones branch from c123b66 to 1e1028d Compare December 14, 2017 00:18
@@ -362,6 +362,7 @@
association :investment, factory: :budget_investment
sequence(:title) { |n| "Budget investment milestone #{n} title" }
description 'Milestone description'
publication_date Time.zone.today
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume this Time.zone.today works but Time.zone.today.to_date would be better?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As far as I know, it would make no difference. to.date is only necessary for Capybara tests.

Copy link
Collaborator

@bertocq bertocq left a comment

Choose a reason for hiding this comment

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

👍

@decabeza decabeza merged commit a46863a into consuldemocracy:master Dec 14, 2017
@bertocq bertocq mentioned this pull request Dec 14, 2017
@aitbw aitbw deleted the aperez-dates-for-milestones branch January 15, 2018 18:38
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
…-for-milestones

Add publication date for milestones
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.

3 participants