Ticket #70 (enhancement)

Opened 3 years ago

Last modified 2 years ago

Notes in projects

Status: closed (fixed)

Reported by: bsag Assigned to: bsag
Priority: normal Milestone: Version 1.04
Component: Coding Version: trunk
Severity: normal Keywords:
Cc:

(suggested by kris) Allow addition of notes to projects, either one note per project (describing what it is, holding reference material etc), or multiple notes.

Attachments

notes_page.png (63.9 kB) - added by bsag on 06/18/05 13:51:46.
Screenshot of the /notes page
project_page.png (39.6 kB) - added by bsag on 06/18/05 13:52:45.
Screenshot of the notes summary on the /project/[name] page

Change History

06/14/05 08:53:54: Modified by bsag

  • status changed from new to assigned.

06/14/05 11:52:41: Modified by nic

How about using hidden context called info and putting notes into actions in this context. Just complete them straight away if they are general notes.

06/15/05 03:52:27: Modified by nic

Also this could be serviced by integration with a wiki, static page system.

06/18/05 13:48:25: Modified by bsag

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [110].

In the end, I decided to implement a full Note model. The notes table contains a column for project_id, so the note is attached to a particular project. Notes are added and shown in summary form on /project/[name], and can be viewed, edited and deleted on /notes and /note/[id]. /notes shows all notes, and /note/[id] shows individual ones.

06/18/05 13:51:46: Modified by bsag

  • attachment notes_page.png added.

Screenshot of the /notes page

06/18/05 13:52:45: Modified by bsag

  • attachment project_page.png added.

Screenshot of the notes summary on the /project/[name] page

06/18/05 13:56:12: Modified by bsag

Added some screenshots of this feature. For some reason, the png image doesn't seem to display properly, so control/right-click the 'Original format' link at the bottom of the page to download the image.

08/28/05 15:24:12: Modified by Jeroen <->

  • status changed from closed to reopened.
  • resolution deleted.

I'm using the current development version (r142) and /notes does not work and adding notes to projects seems broken as well....

08/28/05 15:51:19: Modified by bsag

Works for me with r142. Did you make sure you added the notes table? For SQLite3:

CREATE TABLE 'notes' (
  'id' INTEGER PRIMARY KEY,
  'project_id' int(11) NOT NULL default '0',
  'body' text,
  'created_at' datetime NOT NULL default '0000-00-00 00:00:00',
  'updated_at' datetime default '0000-00-00 00:00:00',
  'user_id' int NOT NULL default '1'
) ;

Also check that you've got the subdirectory tracks/app/views/note and also the note_controller in tracks/app/controllers. If you did an svn update when you were not in the root directory, you might not have got all the updated files.

08/29/05 11:26:25: Modified by Jeroen <->

  • status changed from reopened to closed.
  • resolution set to fixed.

ehm yes, as you can see in the mail I sent you with instructions to migrate SQLite3 to the new schema, I forgot the column user_id in the notes table. I checked in the rake migrate task which I based this on and it's also missing there, so you might want to check that out too.

08/29/05 11:34:40: Modified by bsag

OK, fine. I don't know where you're looking, but it is in the migrate task:

migrate/4_notes.rb line 4:

t.column :user_id,        :integer,     :null => false

Anyway, glad it's working for you now.