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 change log in investment participatory budget #3456

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Add change log in investment participatory budget #3456

merged 1 commit into from
Jun 12, 2019

Conversation

Germangalia
Copy link
Contributor

References

#3433

Objectives

In the admin panel the view of a participatory budget investment project will show a table with all the edits that the investment had.

For every change made will display a record with the log ID, the field changed, the before and after value, the edited by who and edited when. Every log record will have a show view.

Visual Changes

If the investment has no changes:
Screenshot from 2019-04-25 17-36-10

After changing the description and title:
Screenshot from 2019-04-25 17-38-36

If we want to see a log in detail:
Screenshot from 2019-04-25 17-39-43

@@ -0,0 +1,11 @@
class Budget::Investment::ChangeLog < ActiveRecord::Base
# belongs_to :investment
belongs_to :author, -> { with_hidden }, class_name: "User", foreign_key: "author_id", required: false

Choose a reason for hiding this comment

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

Metrics/LineLength: Line is too long. [103/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Roadmap
  
Release 1.1.0
Development

Successfully merging this pull request may close these issues.

None yet

3 participants