Conversation
|
Have you given thought yet to where the annotations would be stored? Mustard does not "own" the git repository it typically reads from, so we'd need some kind of look-aside storage somewhere. |
|
The annotator licence is different from AGPLv3, so we should add a COPYING.annotator with its complete licence text, plus a hint at the end of README.md, like we did for jQuery. |
|
On 09/02/2014 10:12, Daniel Silverstone wrote:
Ideally they would end up in the git repo somehow, but if that's not For Mustard specifically, we're not talking about hyperscale |
|
On 09/02/2014 11:56, Jannis Pohlmann wrote:
OK, I've done that in the branch |
|
I've managed to get the persistent storage working, and enabled markdown support in the annotations |
|
I looked at the code changes. You're hard-coding 127.0.0.1:5000 in the JavaScript part. That's probably not going to work because the JavaScript is executed client-side and you can't expect all users to have Elasticsearch enabled. It also means that you'd have a per-user store, not store on the server shared by all users. You could try to determine the host domain from the URL of the current document. It still assumes the Elasticsearch store and Mustard are running on the same server but that should be ok for now. I don't see any instructions in README.md on the annotations feature, nor on how Elasticsearch is to be set up on the server-side. Not quite ready for merging IMHO. |
|
I also don't see the need to limit fetching annotations per URL to only 20. That number will soon be exceeded and then we'll have to increase it. How about a limit like 1000 or no limit at all until we encounter performance issues? |
|
On 10/02/2014 17:26, Jannis Pohlmann wrote:
I just copied that directly from the Annotator example - your |
|
On 10/02/2014 17:22, Jannis Pohlmann wrote:
I agree with your points, but won't be able to work on the changes any |
FIXME: need to sort out authorisation, and margin display
|
OK, I've rebased this against master, and fixed the hardcoded url - it's working here for me... |
No description provided.