Transkribus / TWI-edit

[DEPRECATED] editing app for Transkribus Web Interface
GNU General Public License v3.0
3 stars 1 forks source link

Change page status to toggle button #58

Closed maxbry closed 5 years ago

maxbry commented 7 years ago

Checkbox for transcriber (Done, In Progress) and additional toggle box for editor to set to Final.

jnphilipp commented 7 years ago

Postponed until I can get user roles for a collection/document.

cziaarm commented 7 years ago

Tested as owner - select list: In Progress, Done, Final

Tested as editor - Toggle button: In progress, Done

Tested as Transcriber - edit button disabled

Tested as crowdTranscriber - Toggle button: In progress, Done

We should confirm whether the is the intended/agreed behaviour before setting this as Tests succeeded. Shouldn't an editor be able to set documents as done? A Transcriber user currently can't transcribe via the webUI, is this correct (possibly a matter of nomenclature)?

GuenterMuehlberger commented 7 years ago

Editor needs to be able to set to final

hackmanschorsch commented 7 years ago

Shouldn't have the transcriber the same rights as the crowdTranscriber: Toggle button: In progress, Done? Btw: Now there is the possibiliy to get the collection metadata directly with one call: https://transkribus.eu/TrpServerTesting/rest/collections/1/metadata (1 is collId) For this week only on the test server!

cziaarm commented 7 years ago

I think so too.

Changes:

@jnphilipp I am happy to step in on this if you are unable to find the time. Just let me know.

R

cziaarm commented 7 years ago

Just to check.. in 2f15d581addb25de5f927ceca96610741628572c I've ended up a making conditions like:

if ( "{{ role }}" === "Editor" || "{{ role }}" === "Owner" || "{{ role }}" === "Admin" || "{{ role }}" === "CrowdTranscriber" || "{{ role }}" === "Transcriber" )

If these are all the possible roles (?) I guess we can remove the condition altogether.

hackmanschorsch commented 7 years ago

Well, there is one left - the "Reader"

cziaarm commented 7 years ago

OK by the sounds of it the "Reader" has no edit permissions so the condition above would be suitable for the permission to edit (and indeed could be replaced by

if ( "{{r ole }}" !== "Reader" )

But despite code efficiency this is now doing what we expect? @GuenterMuehlberger ?

cziaarm commented 7 years ago

Need to add the Transcriber to a condition on line 121 of edit/views.py

EvaMLang commented 7 years ago

Test results:

Missing:

Additional feature from backend perspective

cziaarm commented 7 years ago

@maxbry not much time, but do you think you'll be able to pick up any of @EvaMLang 's suggestions?

cziaarm commented 7 years ago

"when in DONE status, switch status button display back to IN_PROGESS after save is hit again - alternatively: display message saying "no status set" or similar."

@hackmanschorsch suggests this should be done server side

After saving should be able to collect the new trasncriptId and the new page status

(next iteration?)

cziaarm commented 7 years ago

MEssages "TRanscript saved", "page status changed" etc should timeout after a long enough period

cziaarm commented 7 years ago

@jnphilipp @maxbry This issue has become a bit of a monster...

My understanding is that the points in @EvaMLang 's comment that are ticked are ready to test and that those that are struck through are invalid or postponed.

That leaves a few that are neither ticked nor struck through.

@hackmanschorsch I know that some of the issues were to be settled (at least partially) server side. I would assume that if that is the case they will need to wait for the next iteration?

hackmanschorsch commented 7 years ago

connected with #38:

Please check if the status of the transcript you send to the server is null!

On the server we change it either from 'NEW' to 'InProgress' or keep the old status automatically. But this works not if the status is implicitely set to 'NEW' or some other status (please check! - we do not change from any status to 'NEW' so I guess this must be set from the WebUI)

hackmanschorsch commented 7 years ago

issue #80: waits for deployment and uses toolname (Web Interface) during commit

@EvaMLang: At the moment on the server side we have following logic: If the status change origins from the same user as the current transcript then there is no new transcript saved. Exceptions is if it is the first transcript(=NEW). Reason is to have not too much versions. But save is always a new transcript.

don't understand: clear logged tool part of commit message??

EvaMLang commented 7 years ago

Server-side logic sounds fine! The issues I had before was probably session timeouts. The toolname should be saved (and be visible in the Job Dialog in TranskribusX).