unfoldingWord / translationCore

Repository for the desktop application translationCore
https://www.translationcore.com
Other
36 stars 11 forks source link

Implement searching/filtering CatalogNext releases for a new content updater #7186

Closed birchamp closed 1 year ago

birchamp commented 2 years ago

What is needed to find the latest releases available for a specific resource type?

Phases:

  1. using CN and just looking at Door43-Catalog results

    • once this is implemented can do
  2. able to choose organizations

    • able to choose organizations to download
    • getting latest resources will include all organizations
    • work on tool GL selection and show org

Needed:

Search:

Downloading:

Notes: Explore pivoting on resource type. <= just need to sort by subject type API: https://git.door43.org/api/catalog/swagger#/v5/v5Search

Test Assumptions:

PhotoNomad0 commented 2 years ago

@mannycolon Here are some tCore storage options for handling orgs:

current example ~/translationCore/resources/en/translationHelps/translationNotes/v33

option 1 - add org to version: translationNotes ↳ v33_unfoldingWord ↳ v34_test-org

option 2 - add org to resource ID: translationNotes_unfoldingWord ↳ v33 translationNotes_test-org ↳ v34

option 3 - add org as new layer: unfoldingWord ↳ translationNotes ↳ v33 test-org ↳ translationNotes ↳ v34~~

moved to https://github.com/unfoldingword/translationcore/issues/7187

mannycolon commented 2 years ago

I prefer option 1, we do a lot of filesystem calls in our codebase to check for resources and would prefer not to add an additional directory to overcomplicate this process. What do you think?

mannycolon commented 2 years ago

@PhotoNomad0

richmahn commented 2 years ago

Exact match option has been added. (actually it is the default, if you want a partial match, then you use partialMatch=1)

PhotoNomad0 commented 2 years ago

Notes for development:

Need to add to tc-source-content-updater:

PhotoNomad0 commented 2 years ago

Need to do two searches since not all resources in D43-Catalog have been released on DCS.

  1. We use the v5 API to get the released resources (stage==prod).
  2. There is a v3 endpoint that gives us the entries from the old catalog.json

Then we merge the two lists removing entries in # 2 that are duplicates

PhotoNomad0 commented 2 years ago

Done, back end work not QA testable