jissues icon indicating copy to clipboard operation
jissues copied to clipboard

RTC Labeling Removes All Other Labels

Open mbabker opened this issue 8 years ago • 14 comments

The RTC behavior should only add/remove that specific label. Whatever is causing all other labels and the milestone to be removed needs to be corrected.

mbabker avatar Feb 17 '17 16:02 mbabker

https://github.com/joomla/jissues/blob/master/src/App/Tracker/Controller/Hooks/Listeners/JoomlacmsPullsListener.php#L330-L351

Maybe this is a permission problem? If you don't have the permissions to change the label / milestones than the labels / milestones got removed.

So i think this could be a problem in the save method where the milestones and labels are empty if you don't have the permissions to change them. This result than in removing them.

zero-24 avatar Feb 17 '17 17:02 zero-24

hmm i have just noticed that the issue i'm editing does not contain any labels & milestone on the tracker

unbenannt3

But does contain some labels and milestone on github.

unbenannt2

So this looks like a bigger problem to me?

zero-24 avatar Feb 25 '17 10:02 zero-24

@zero-24 may be ;) @mbabker can you please provide DB export of i.j.org to replicate the problem? AFAIK you did it something like this before in other issue. Do not remember, in which :)

b2z avatar Mar 14 '17 13:03 b2z

https://issues.joomla.org/uploads/db.zip

mbabker avatar Mar 14 '17 13:03 mbabker

@mbabker thanks!

@zero-24 I see that you was able to set labels and milestone. I also tried to edit this issue and it contains labels and milestones. Is it specific case for this issue or it is happening all the time?

I do not think that the permission is the issue here as we display labels only for user with manage rights.

{% if user.check('manage') %}

And this users for sure are those who has permissions. I think the problem was that this issue did not have any label and milestone on the time of your editing. Why? That is the question :)

b2z avatar Mar 15 '17 05:03 b2z

I think the problem was that this issue did not have any label and milestone on the time of your editing. Why? That is the question :)

Correct. Maybe the sync job is failing for any reason?

zero-24 avatar Mar 15 '17 08:03 zero-24

Maybe the sync job is failing for any reason?

Hate to say it, but it seems that it is sync job again :(

b2z avatar Mar 15 '17 19:03 b2z

@mbabker do you have any errors or similiar in the logs?

zero-24 avatar Mar 15 '17 20:03 zero-24

All the cron logging is telling me is that weblinks and the CMS jobs aren't running in full. Not much has changed since https://github.com/joomla/jissues/issues/915 or https://github.com/joomla/jissues/issues/676 were logged.

mbabker avatar Mar 15 '17 20:03 mbabker

Can we close it?

b2z avatar Mar 24 '17 14:03 b2z

@zero-24 is issue still valid?

b2z avatar Aug 21 '17 13:08 b2z

Saddly yes. When you are a user with no persmissions on gihub but just on the tracker and set a item e.g. to RTC all labels expected RTC are removed.

zero-24 avatar Aug 21 '17 16:08 zero-24

:( I will try to replicate and fix it.

b2z avatar Sep 08 '17 09:09 b2z

Annoying. @mbabker can you give actual DB state from issues to import? Thank you!

b2z avatar Nov 09 '17 06:11 b2z