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

Why are sp-* menuDefs being created, when es-* menuDefs already exist? [rewrite iiab-make-kiwix-lib.py & iiab_update_menus.py ?] #1870

Closed
holta opened this issue Jul 15, 2019 · 5 comments

Comments

@holta
Copy link
Member

holta commented Jul 15, 2019

I assume this is a bug but hopefully @tim-moody and @georgejhunt can clarify if "sp" is intended and if so why?

These menuDefs gets created when when downloading/installing Content Packs:

  • sp-wikipedia_es_all_novid
  • sp-wiktionary_es_all_novid
  • sp-ecured_es_all
  • sp-phet_es

This seems wrong, when carefully written menuDefs already exist for these, e.g.:

@holta
Copy link
Member Author

holta commented Jul 15, 2019

See: iiab/iiab-admin-console#238 "iiab_update_menus uses wrong language code"

@holta
Copy link
Member Author

holta commented Jul 15, 2019

@tim-moody is working hard to try solve this.

Just FWIW these 4 chunks from /library/www/html/common/assets/zim_version_idx.json aren't super-uniform/consistent, but possibly hint at the underlying issue(s):

2:  "wiktionary_es_all_novid": {
4:    "menu_item": "",
7:    "file_name": "wiktionary_es_all_novid_2018-10",

92: "phet_es": {
94:    "menu_item": "sp-phet_es",
97:    "file_name": "phet_es_2019-06",

172:  "ecured_es_all": {
174:    "menu_item": "sp-ecured_es_all",
177:    "file_name": "ecured_es_all_2019-05",

192:  "wikipedia_es_all_novid": {
194:    "menu_item": "sp-wikipedia_es_all_novid",
197:    "file_name": "wikipedia_es_all_novid_2019-06",

@holta
Copy link
Member Author

holta commented Jul 15, 2019

Largely solved by PR #1878 and PR iiab/iiab-admin-console#239

@tim-moody tested this with a fresh d/l of a Spanish ZIM file.

@tim-moody writes:

this needs a rewrite however for maintenance

@holta
Copy link
Member Author

holta commented Jul 15, 2019

@tim-moody suggests both of these could use a rewrite — using some kind of shared library:

If not now then in the IIAB 7.1 release cycle?

@holta holta changed the title Why are sp-* menuDefs being created, when es-* menuDefs already exist? Why are sp-* menuDefs being created, when es-* menuDefs already exist? [rewrite iiab-make-kiwix-lib.py & iiab_update_menus.py ?] Jul 15, 2019
@holta holta modified the milestones: 7.0, 7.1 Jul 18, 2019
@holta
Copy link
Member Author

holta commented Dec 21, 2019

I assume this is fixed.

(@tim-moody please re-open if necessary.)

@holta holta closed this as completed Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant