Jump to content

Forums

Search In
  • More options...
Find results that contain...
Find results in...
Ignacio Pablo Duro

Promoting / Re-assinging a solider removes all its secondary groups

Recommended Posts

Beta Tester

Hi!

Every time a soldier is promoted, demoted, reassinged (or any other changed that involves a forum group change) all soldier's secondary groups are removed. This is really bad for us, because both discord and teamspeak groups and permissions are linked to our forum.  
No logs are generated so I cannot see whats happening. 

Does anyone has any idea on what could it be the problem? Or where I can find some information about this?

Thanks!

 

Share this post


Link to post
Share on other sites
Staff

@Ignacio Pablo Duro I’ll look into this. Thanks for bringing it up. 


Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites
Beta Tester
48 minutes ago, Jon Erickson said:

@Ignacio Pablo Duro I’ll look into this. Thanks for bringing it up. 

Sure! Don't hesitate to contact me if you need more info. 

Thanks!

Share this post


Link to post
Share on other sites
Staff

@Ignacio Pablo Duro, the bug has been found and addressed. Will be fixed with the next release!

  • Thanks 1

Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites
Beta Tester

Great!! Thanks! 

What's the timeframe to the next version? I'm asking because it would be great to have this issue fixed asap. Mabye release it as a hotfix?

Share this post


Link to post
Share on other sites
Staff

Absolutely. I am out of the state right now but will have it released this week.


Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites
Beta Tester

Hi Jon! 

Bad News. This issue is still happening after 1.3.4 update

Share this post


Link to post
Share on other sites
Staff

We’ll have to look into your specific use case as we cannot reproduce it!


Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites
Beta Tester

Oks!

So, is there any place that you know where I can find logs, or any information about what could be happening? Where should we start looking?

Share this post


Link to post
Share on other sites
Customer

We had the same issue on 1.3.2, and now we switched to 1.3.5 and are still having similar issues. On top of promotions/assignments, when a soldier is an administrative position and you upload a new uniform, the secondary roles get wiped.

We haven't done any promotions/assignments yet but I assume that this is still an issue then?

Share this post


Link to post
Share on other sites
Beta Tester

So just done some testing and found the following out. 

1) Promotions/Assignments creation of the records does nothing to the groups, it only takes effect when you go back into the soldiers file after you have done the assignment/promo form and click save on their profile. Its as though the Promotion and Assignment forms are not triggering the add to group function. This is only triggered when you go back into the personnel file and click save, at that point it seems to update the groups correctly.  

2) Dont seem to have any issues with Admin units, tried a test user in multiple admin units and removed units and readded and all the groups were removed and added correctly.

3) Uploading a new uniform had no effect on the groups at all.. 

4) Have an issue with some combat units saying I do not have permission to assign a soldier to their even though I have full permissions on everything.. any ideas?

Share this post


Link to post
Share on other sites
Customer

We have some medals linked to secondary groups to show them on their profile. I had one of our members test and he reported the following reproducible case surrounding uniform uploads:

1. uploaded uniform to soldiers P-File.

2. checked soldiers P-File and award was removed (secondary groups were reset). 

3. reassigned secondary groups and completed step 1 and 2 again. Same issue.

Share this post


Link to post
Share on other sites
Staff

I think here the uniform upload has nothing to do with the bug you are experiencing but rather when the users object is updated and a database transaction is executed, it triggers the update user group function. Essentially whenever a save() is called on the soldier, there uaergroups are all set based on their rank, combat unit and administrative unit. So for you, you were just noticing it when uploading the uniform. I think I may have found the issue in the administrative units. Please actively test when I release the beta. I want to make sure its right before releasing. Thanks!


Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites
Staff
On 7/11/2020 at 10:51 AM, Ashton said:

So just done some testing and found the following out. 

1) Promotions/Assignments creation of the records does nothing to the groups, it only takes effect when you go back into the soldiers file after you have done the assignment/promo form and click save on their profile. Its as though the Promotion and Assignment forms are not triggering the add to group function. This is only triggered when you go back into the personnel file and click save, at that point it seems to update the groups correctly.  

2) Dont seem to have any issues with Admin units, tried a test user in multiple admin units and removed units and readded and all the groups were removed and added correctly.

3) Uploading a new uniform had no effect on the groups at all.. 

4) Have an issue with some combat units saying I do not have permission to assign a soldier to their even though I have full permissions on everything.. any ideas?

As for what you saw in the promotions - it is triggering the save user object as I mentioned above and messing the uaergroups. I believe the promotion/demotion/assignment functions are working as intended.


Owner
Deschutes Design Group LLC
email | [email protected]

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.