keeleinstituut / tv-tolkevarav

Tõlkevärav (Translation Hub)
1 stars 0 forks source link

Updating help files issue (BE) #561

Open MariusJulius opened 10 months ago

MariusJulius commented 10 months ago

Currently saving help_files + help_file_types while creating a new order works fine, but the type doesn’t seem to get updated, when updating (PUT https://api.dev.tolkevarav.eki.ee/translation-order/api/projects/)

request example.txt

There is media endpoint Can't update just file and type.

KaarelKa commented 10 months ago

@thenouan Went over the media endpoints as well. Currently I guess we need 2 things.

  1. POST /media/bulk endpoint should also accept some field for passing the type of a file (help_file in this case). Can just be the

    "custom_properties": { "type": "STYLE_GUIDE" },

    field, which is returned, when we fetch help_files from the project endpoint.

  2. Some PUT /media/ endpoint, so we can change 1 of the files. Currently It seems we just need the capability of changing the type of a help_file. Not sure if other changes to files will also be possible in the future

KaarelKa commented 9 months ago

FE part initially implemented in 517 task, will apply any changes, after BE part is done

plakitkelly commented 8 months ago

Tested in 14.12 - It's OK