Closed maxbry closed 5 years ago
Postponed until I can get user roles for a collection/document.
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)?
Editor needs to be able to set to final
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!
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
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.
Well, there is one left - the "Reader"
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 ?
Need to add the Transcriber to a condition on line 121 of edit/views.py
Test results:
Missing:
Additional feature from backend perspective
@maxbry not much time, but do you think you'll be able to pick up any of @EvaMLang 's suggestions?
"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?)
MEssages "TRanscript saved", "page status changed" etc should timeout after a long enough period
@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?
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)
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??
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).
Checkbox for transcriber (Done, In Progress) and additional toggle box for editor to set to Final.