Loading...
 
Skip to main content

When a package is missing interface should help to fix the issue

Status
Closed
Subject
When a package is missing interface should help to fix the issue
Version
23.x
Category
  • Developer Training
  • Documentation (or Advocacy)
  • Easy for Newbie Dev
  • Feature request
Feature
Admin Interface (UI)
Packages
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Adrien
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

If a package is missing the help/warning information displays a link to the external missing package repository.

Image

It is important to note that we have already a similar mechanism when looking to a page (not the admin control panels) that display a message for admins (I hope for admins only ?)

Image



At http://bsfez-11581-7999.show2.tikiwiki.org/tiki-admin.php?page=fgal&cookietab=6&highlight=feature_docsQuestion, enable "Use PDF.js".

It will display an alert (red background):

The first link "Missing tiki package :" with a link to : tiki-admin.php?page=packages

Then "npm-asset/pdfjs-dist-viewer-min" with a link to :https://asset-packagist.org/package/npm-asset/pdfjs-dist-viewer-min

It should display:
"A Tiki package is missing: Install mpdf/mpdf"
"Install mpdf/mpdf" should be a link to : tiki-admin.php?page=packages

1. Tells the user of a problem
2. Explain what is the problem
3. Suggest the user a way to solve the issue
4. Give the user the direction/action to solve the issue

That's the way a missing package should handled, anywhere.

I added "anywhere" because it seems we have different behaviours.
IE: Go to http://bsfez-11581-7999.show2.tikiwiki.org/tiki-admin.php?page=printQuestion
For the "PDF from URL" dropdown, select mPDF. The "PDF Orientation" error will show
"Missing tiki package: mpdf/mpdf" with parts with the same link. (not needed)

Image Screen Recording 2022 03 06 At 16.30.00

Solution

When a package is missing the warning should say (everywhere):
"A Tiki package is missing: Install mpdf/mpdf" (change mpdf/mpdf with the relevant missing package name, tag)
"Install mpdf/mpdf" should be a link to : tiki-admin.php?page=packages

https://gitlab.com/tikiwiki/tiki/-/merge_requests/1360Question

Importance
5
Easy to solve?
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7999
Created
Tuesday 21 December, 2021 08:34:05 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Friday 25 March, 2022 09:58:46 UTC


Show PHP error messages