creecros / MetaMagik

Custom Fields for Kanboard - Plugin MetaMagik
MIT License
99 stars 16 forks source link

Tooltip is not displayed in Board view #57

Closed oliviergenest closed 4 years ago

oliviergenest commented 4 years ago

After proper installation of MetaMagik v1.4.4 through the Extensions GUI, I am able to create and put values in custom fields. However, in the Board view, the tooltip is not visible and therefore does not allow to quickly see values. See screenshot showing that the value for custom field "Montant" is set: image See screenshot showing that the tooltip is not available: image

Thanks for your help

creecros commented 4 years ago

Can you copy paste your configuration for kanboard.

oliviergenest commented 4 years ago

You mean the config.php file? Here it is:

<?php
define('DEBUG', true);
define('ENABLE_URL_REWRITE', true);
define('PLUGIN_INSTALLER', true);
define('PLUGIN_API_URL', 'https://raw.githubusercontent.com/kanboard/website/master/plugins.json');

// Mail transport to use: "smtp", "sendmail" or "mail" (PHP mail function)
define('MAIL_FROM', '<username>@<domain>.com');
define('MAIL_TRANSPORT', 'smtp');
define('MAIL_SMTP_HOSTNAME', 'smtp.<domain>.com');
define('MAIL_SMTP_PORT', 465);
define('MAIL_SMTP_USERNAME', '<uername>@<domain>.com');
define('MAIL_SMTP_PASSWORD', '<password>');
define('MAIL_SMTP_ENCRYPTION', "ssl"); // Valid values are "null", "ssl" or "tls"
define('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs');

// Database driver: sqlite, mysql or postgres (sqlite by default)
define('DB_DRIVER', 'mysql');
define('DB_USERNAME', '<username>');
define('DB_PASSWORD', '<password>');
define('DB_HOSTNAME', '<hostname>');
define('DB_NAME', '<dbname>');

// Enable/disable remember me authentication
define('REMEMBER_ME_AUTH', true);
define('SESSION_DURATION', 0);
creecros commented 4 years ago

I meant system config 20201005_110910

oliviergenest commented 4 years ago

Sorry, here it is: image

creecros commented 4 years ago

just tested, works fine. image I see you have other plugins installed, like the thumbs up thumbs down voting plugin, there is probably a conflict. Not to say that that is the cause, but it seems like a likely culprit.

I'll also note that your kanboard was installed using the "master" repo, which is a bad idea. I have no idea what version you are actually running, and the master repo at any given period is not a complete version. There could be pull requests that may have fixed an issue that never got pulled, or merges that caused an issue, etc...Always install using the official releases.

oliviergenest commented 4 years ago

I tried to remove the TaskVote plugin but it still does not work. I will try with other plugins... And move to a fixed version installation (instead of master) as you suggested. I will keep you informed if I find the root cause of the issue.

creecros commented 4 years ago

Take a screenshot of your plugins page, and I can take a look and see if I can find the conflict.

oliviergenest commented 4 years ago

Thanks, here it is: image

oliviergenest commented 4 years ago

Here are some additional infos to better frame the issue: it seems that the $task['nb_metadata'] > 0 assertion in footer_icon.php returns false. If I replace the if($task['nb_metadata'] > 0)' by if(true), the tooltip icon is well displayed and the meta fields are visible: image Hope this helps!

creecros commented 4 years ago

it does, it illustrates to me the conflict. The issue is a conflict with Group_assign.

MetaMagik extends the TaskFinderModel method, getExtendedQuery() Group_assign has over ridden that Model, as well as many others. Therefore, the extended query is no longer capable of populating nb_metadata property, it's empty. Empty is not greater than 0

The issue is not fixable from this plugin, i would have to compensate from Group_assign.

creecros commented 4 years ago

Of course, as i go to look into it, I discover, I already compensated, and then take another quick look at your plugin page to determine you are 24 releases behind on Group_assign.

I noted this on the releases page for both plugins once the changes took place: image

image

It's important to stay up to date on your plugin versions. Like literally, you are using Group_assign version 0.0.1, like come on dude. Your AutoSubtasks plugin is also 0.0.1. Your SubtaskDate plugin is also behind. I'm sure there are others.

oliviergenest commented 4 years ago

Thanks, it works fine now! We definitely need to improve our way of keeping KB and its plugins up-to-date.