irma-frontend icon indicating copy to clipboard operation
irma-frontend copied to clipboard

Comments feature

Open deloittem opened this issue 9 years ago • 2 comments

Adding a comment feature on scanned files (in details view).

Using this, all users will be able to add comments and share some information on the file.

deloittem avatar Jan 12 '16 09:01 deloittem

Implementation suggestion

1. New table in database

COMMENT
id
name
date
text
id_file

2. New route in Bottle API

  • ADD comment
    • route = /files/<sha256>/comments
    • method = POST
    • callback = files.add_comment

3. Update FileWebSchema

Update FileWebSchema in order to get back comments from database

4. Web and AngularJS

Update details view

  • Display comments
  • Add a form to submit a new comment

Note that it should be better to implement before: Multi-tab feature in details view #102

What do you suggest ?

deloittem avatar Jan 12 '16 10:01 deloittem

i'm rebasing your PR right now. will test it on 1.3.0.

ch0k0bn avatar Jan 12 '16 10:01 ch0k0bn