{"id":27415803,"url":"https://github.com/zealous-tech/note_change_notifier","last_synced_at":"2025-04-14T09:39:34.730Z","repository":{"id":78902682,"uuid":"287515176","full_name":"zealous-tech/note_change_notifier","owner":"zealous-tech","description":"Note Change Notifier is a Redmine plugin that notifies note change of contact/deal in redmine_contacts' plugin by e-mail.","archived":false,"fork":false,"pushed_at":"2021-10-21T12:58:05.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-13T13:24:46.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zealous-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-14T11:15:51.000Z","updated_at":"2023-07-13T13:24:47.004Z","dependencies_parsed_at":"2023-05-06T17:00:32.613Z","dependency_job_id":null,"html_url":"https://github.com/zealous-tech/note_change_notifier","commit_stats":null,"previous_names":["zealous-tech/note_change_notifier"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealous-tech%2Fnote_change_notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealous-tech%2Fnote_change_notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealous-tech%2Fnote_change_notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zealous-tech%2Fnote_change_notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zealous-tech","download_url":"https://codeload.github.com/zealous-tech/note_change_notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248855251,"owners_count":21172521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-14T09:39:34.200Z","updated_at":"2025-04-14T09:39:34.722Z","avatar_url":"https://github.com/zealous-tech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Note Change Notifier\n\nNote Change Notifier is a Redmine plugin that notifies note\nchange of contact/deal in redmine_contacts' plugin by e-mail. Note Change Notifier\nis based on (modified) Journal Change Notifier. Plugin tested on redmine \nversion 3.4.2 and 4.2.2\n\n## License\n\nGPL 2 or later. See LICENSE for details.\n\n# Installation of note_change_notifier plugin\n\n1. Install plugin as usual:\n\u003cpre\u003e\n$ sudo cp -r note_change_notifier [Redmine_Root]/plugins\n$ cd [Redmine_Root]\n$ sudo bundle install\n$ sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production\n$ sudo /etc/init.d/apache2 restart\n\u003c/pre\u003e\n2. Edit [Redmine_Root]/plugins/redmine_contacts/app/controllers/notes_controller.rb (add call_hook to update and destroy methods), as follows:\n\u003cpre\u003e\n...\n...\n...\n  def update\n    @note.safe_attributes = params[:note]\n    if @note.save\n      @note.note_time = params[:note][:note_time] if params[:note] \u0026\u0026 params[:note][:note_time]\n      attachments = Attachment.attach_files(@note, (params[:attachments] || (params[:note] \u0026\u0026 params[:note][:uploads])))  \n      render_attachment_warning_if_needed(@note)\n      flash[:notice] = l(:notice_successful_update)\n      respond_to do |format|\n        format.html { redirect_back_or_default({ :action =\u003e 'show', :project_id =\u003e @note.source.project, :id =\u003e @note }) }\n        format.api  { render_api_ok }\n      end \n+     call_hook(:plugin_redmine_contacts_controller_notes_edit_post, { :note =\u003e @note, :params =\u003e params}) if Redmine::Plugin.installed?(:note_change_notifier)\n    else\n      respond_to do |format|\n        format.html { render :action =\u003e 'edit', :project_id =\u003e params[:project_id], :id =\u003e @note }\n        format.api  { render_validation_errors(@note) }\n      end\n    end\n  end\n...\n...\n...\n  def destroy\n    (render_403; return false) unless @note.destroyable_by?(User.current, @project)\n    @note.destroy\n    respond_to do |format|\n      format.js\n      format.html { redirect_to :action =\u003e 'show', :project_id =\u003e @project, :id =\u003e @note.source }\n      format.api  { render_api_ok }\n    end\n+   call_hook(:plugin_redmine_contacts_controller_notes_edit_post, { :note =\u003e @note, :params =\u003e params}) if Redmine::Plugin.installed?(:note_change_notifier)\n    # redirect_to :action =\u003e 'show', :project_id =\u003e @project, :id =\u003e @contact\n  end\n...\n...\n...\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzealous-tech%2Fnote_change_notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzealous-tech%2Fnote_change_notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzealous-tech%2Fnote_change_notifier/lists"}