NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Functions - multiple on list #968

Closed missyschoenbaum closed 4 years ago

missyschoenbaum commented 4 years ago

This may be related to #862 or #929.

When I add a new function in Zone Effect, most of the process works as expected. However, when I go back to just a normal viewing status, the function won't connect and I can't open the function panel. I tried main Save also. If I leave this form and return, it is reset and I can work normally again.

Steps to recreate Open scenario go to Zone Effects Under Zone direct movement, pull down to add. On the first instance, this works without a problem. I added a function Movement Reduction ( "0,1" , "1, .07", "2, .05", "3, .03", "4, .03", "14, .03") this function takes me at least one cycle of using Overwrite - not a problem When I go to select, I can see the same name multiple times in the list (quirky but minor) Select the desired function (now named Movement Reduction) It gets selected and assigned OK, I can see the link icon telling me it has an assignment but I can't see it Also, if I attempt to hit the function panel to force it to fly out, I get no response.

Again, if I leave form and return, I am back to workable state.

LinkNoFunction.PNG

missyschoenbaum commented 4 years ago

It seems like this happens with the Apply action. I will try this on another form and see if I can get the same behavior.

missyschoenbaum commented 4 years ago

I tested on Disease Spread (using direct spread Cattle > Cattle). Can add without a problem, also no duplicate in pull down on Apply I am still able to see flyout and access flyout used on the field Movement Control as test So, this form is working OK

I think this would only happen with a rel function, but not sure.

missyschoenbaum commented 4 years ago

So, I restart the app to recreate this again. This time I don't even get to add.

Open scenario go to Zone Effects Under Zone direct movement, pull down to add Select Add no add function window flies out Maybe this is a different problem?

ConradSelig commented 4 years ago

OK I am seeing this bug. Looks like the multiple items in the list that you see after creating your function comes from the use of the function "override". If you don't override the function you create you'll only see one list item. If you override twice you'll see 3 list items.

That bug is not patched yet, nor is the one where the panel stops becoming visible. Working on a fix now,,,

ConradSelig commented 4 years ago

That should fix the not opening problem. I'm going to keep this ticket in development while I poke around at the multiple menu options bug.

ConradSelig commented 4 years ago

I can't seem to figure out a solution to the multiple menu items - and I don't think it's worth it to pay me to work on it any longer. I've created a new ticket for that bug in the backlog so we don't forget it, and maybe at some point someone will patch it.

missyschoenbaum commented 4 years ago

On the first round of input, it draws, But when I flip to middle panel to assign, it will no draw. However, if I exit and come back, it will draw. I am not seeing any duplicates on the list, so I think we managed that problem.

ConradSelig commented 4 years ago

@missyschoenbaum What do you mean in the first line when you say "But when I flip to the middle panel to assign, it will no draw"? Could I get a list of steps to reproduce?

BryanHurst commented 4 years ago

@ConradSelig and @missyschoenbaum did we have any further explanation and or steps to reproduce on this one?

missyschoenbaum commented 4 years ago

When I tested this today, it worked. It did show duplicate functions on assign, but that's minor and in other ticket in backlog.

missyschoenbaum commented 4 years ago

Missy, write known bug on duplicate

missyschoenbaum commented 4 years ago

I'm going to rename to make the known issue documentation more clear.

missyschoenbaum commented 4 years ago

This was waiting on documentation - done