Giter Club home page Giter Club logo

Comments (7)

creecros avatar creecros commented on July 24, 2024

Interesting. I'll take a look.

from metamagik.

creecros avatar creecros commented on July 24, 2024

@basti79
I was unable to reproduce, and to be honest, am not sure how it would even remotely be possible for the metadata to vanish by just moving to a swimlane. It just doesn't work that way. Metadata is stored in the taskmetadata table, and the relationship is the task id. Only way to break the chain would be for the task id to change.

I tried:
Moving task to different swimlane via the board
Moving task to different swimlane via "Move Position"
Moving task to a different project and different swimlane via "Move to different project"

The custom fields never vanished and remained intact.

Maybe provide some more details?

i.e.

  • Confirm your plugin version
  • What is your system configuration (found in settings>about)
  • Confirm your kanboard version
  • Exact steps to reproduce
  • What other plugins are installed

from metamagik.

basti79 avatar basti79 commented on July 24, 2024

@creecros
Thanks for your work, first let me answer your questions:

  • metaMagik 1.2.5
  • Configuration: (actually this is a docker container):
    Application version: 1.2.9
    PHP version: 7.2.14
    PHP SAPI: fpm-fcgi
    OS version: Linux 4.18.0-2-amd64
    Database driver: sqlite
    Database version: 3.26.0
    Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
  • no other plugins

The actual news: By reproducing this problem I found out it's linked to an automatic action "Assign a color when the task is moved to a specific swimlane". Without this everything is ok, but when automatically changing the color when moving to a specific swimlane and then using the board to drag-and-drop the task the field contents are lost.

Greets
Sebastian.

from metamagik.

creecros avatar creecros commented on July 24, 2024

Ok, I reproduced it. Let me look into it.

from metamagik.

creecros avatar creecros commented on July 24, 2024

I have little understanding of Pimple...but it appears that the model override:

MetaMagik/Plugin.php

Lines 24 to 27 in 8b5f5cf

//Models
$this->container['taskModificationModel'] = $this->container->factory(function ($c) {
return new NewTaskModificationModel($c);
});

does not affect Actions. I'm guessing there is another container that needs that override, no clue as to how to call it, change it, etc...

I'll have to study. Maybe @fguillot might help answer this question for me?

However there is a work around. Make your own action, and use the NewTaskModificationModel supplied in the plugin.

from metamagik.

creecros avatar creecros commented on July 24, 2024

@basti79

After performing several tests, I figured out what is going on. The model is actually overriden, but I built the model with Modifcations from the TaskModification Form, not via an Action, so the $values do not contain the metadata to replace them. Hence, they disappear.

I should be able to fix this, stay tuned, it's getting late tonight, so maybe tomorrow.

from metamagik.

creecros avatar creecros commented on July 24, 2024

This should fix it:
https://github.com/creecros/MetaMagik/releases/tag/1.2.6

Please report back if you see any other issues.

from metamagik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.