Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quiz conversion process regarding collections #571

Merged
merged 5 commits into from
May 25, 2024
Merged

Fix quiz conversion process regarding collections #571

merged 5 commits into from
May 25, 2024

Conversation

FyreByrd
Copy link
Collaborator

Per @chrisvire 's request, switched quiz conversion to store quizzes in a folder named after the parent collection instead of the docSet.

The primary rationale is that docSet is a Proskomma specific entity, rather than one specific to an SAB project, unlike book collections.

Not sure on this. Will probably introduce a whole host of issues with the actual app, regarding fetching data.
@FyreByrd FyreByrd requested a review from chrisvire May 25, 2024 01:54
@FyreByrd
Copy link
Collaborator Author

Added some changes to address some issues arising from the edge case where a docSet has no documents.
This happens when a book collections does not have any books that would be processed by Proskomma.

@chrisvire
Copy link
Member

Let's have two separate PRs:

  1. change the quiz path to be based on collection.id instead of docSet
  2. handle empty docSet.

I believe that I had code in SAB that would keep from building PWA without scripture books. It might be that I just checked for number of books regardless of book type (i.e. a bug).

@FyreByrd FyreByrd marked this pull request as ready for review May 25, 2024 13:33
Copy link
Member

@chrisvire chrisvire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Well done!

@chrisvire chrisvire merged commit 1d54ba1 into sillsdev:main May 25, 2024
1 check passed
aidanpscott pushed a commit to aidanpscott/appbuilder-pwa that referenced this pull request May 28, 2024
* change quiz convert from docSet to collection id

* Return dummy docSet object for catalog

* Don't write pkf file if there is no docSet

Not sure on this. Will probably introduce a whole host of issues with the actual app, regarding fetching data.

* Revert "Don't write pkf file if there is no docSet"

This reverts commit cacaf54.

* Revert "Return dummy docSet object for catalog"

This reverts commit da35566.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants