Opened 10 years ago

Closed 10 years ago

#879 closed enhancement (fixed)

Add column holding the filename of last file used for updating reporter annotations

Reported by: nicklas Owned by: martin
Priority: minor Milestone: BASE 2.6
Component: core Version:
Keywords: Cc:

Description (last modified by nicklas)

This is to simple let everyone know where the annotations are coming from. This should be added as a string column on a similar footing as the 'lastUpdate' column. Plug-ins must of course let the core know about the filename, so it can only be made semi-automatic. A possible (and easy) way is to create a ReporterBatcher?.setFilename() method. Plug-ins should call this method to automatically let the core set the filename. Null is an allowed value.

Note that the column should only hold the filename. It is not a reference to a file on the BASE file system, because foreign keys in the reporter table are only good for decreasing performance.

Some issues:

  • Should the core reset the value if a plug-in never calls the method or should it be left unchanged?
  • What if a reporter is manually updated from the web interface? Maybe we could store the name of the user in this case?
  • Users should also be aware of that a plug-in may only update a few columns, which means that some annotations may come from one file and some from another file.

NOTE! Do not forget to update the UML diagrams and documentation!

Change History (7)

comment:1 Changed 10 years ago by nicklas

  • Description modified (diff)

comment:2 Changed 10 years ago by nicklas

  • Description modified (diff)

comment:3 Changed 10 years ago by martin

  • Owner changed from everyone to martin
  • Status changed from new to assigned

comment:4 Changed 10 years ago by martin

(In [4075]) References #879 The database has now been updated, including UML diagram. Implementing this in the web client will be done next.

comment:5 Changed 10 years ago by martin

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4076]) Fixes #879 Add column holding the filename of last file used for updating reporter annotations. The documentation, reporter importer plugins and web client are now also updated to support this new column.

comment:6 Changed 10 years ago by nicklas

  • Resolution fixed deleted
  • Status changed from closed to reopened

Column declaration doesn't set max string length. No 'public static int MAX_LAST_SOURCE_LENGTH' constant has been defined. Missing documentation about the schema version changes in Update.java.

comment:7 Changed 10 years ago by nicklas

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4082]) Fixes #879: Add column holding the filename of last file used for updating reporter annotations

Note: See TracTickets for help on using tickets.