social icon indicating copy to clipboard operation
social copied to clipboard

[16.0][ADD] mail_hide_chatter_send_message: new module

Open NL66278 opened this issue 1 year ago • 6 comments

New module to hide the 'Send message' button on the chatter, to keep discussions internal.

First proposed here: https://github.com/OCA/web/pull/2811

NL66278 avatar May 11 '24 10:05 NL66278

I think this module already exists. Why don't you migrate this one? --> https://github.com/OCA/social/tree/14.0/mail_restrict_send_button

@HaraldPanten The implementation of this module looks quite complicated and I imagine it to be a bit too high-maintenance for a simple need where control by group is not necessary. Just my opinion.

yostashiro avatar Jun 01 '24 01:06 yostashiro

@HaraldPanten I did not know the 14.0 module existed. Note that that module is a lot more complicated, making the presence of the Send button conditional on a group the user belongs to. This can be very useful of-course, but for me it would be a lot of work to migrate the javascript (or even get to understand what al the code does).

NL66278 avatar Jun 01 '24 07:06 NL66278

@HaraldPanten I did not know the 14.0 module existed. Note that that module is a lot more complicated, making the presence of the Send button conditional on a group the user belongs to. This can be very useful of-course, but for me it would be a lot of work to migrate the javascript (or even get to understand what al the code does).

Hi @NL66278 I understand that the other module might be more complex, but considering that it makes the same functionallity with permission options I think that both modules shouldn't "coexist". Do you know what I mean?

Maybe JS could be a "headache", but the other module existed first and is more complete. IMHO"mail_restrict_send_button" is the one that should stay in OCA.

@etobella , as a OCA Board member, could you shed some light here?

THX.

HaraldPanten avatar Jun 02 '24 18:06 HaraldPanten

If it is not a problem, I will answer as PSC of Social. As Board, I would wait for a comment from a PSC :laughing:

Well, I understand both points of view. From one side, we are duplicating functionalities, but the other module is too complex.

After checking mail_restrict_send_button I see to much overengineering for this small functionality. IMO, we should refactor it and then migrate it (or both at the same time). That would be my preferred path, because we would not loose functionality and we will improve the code at the same time.

If it is not refactored, I can understand it is too hard to migrate it as it is.

etobella avatar Jun 02 '24 20:06 etobella

If it is not a problem, I will answer as PSC of Social. As Board, I would wait for a comment from a PSC 😆

Well, I understand both points of view. From one side, we are duplicating functionalities, but the other module is too complex.

After checking mail_restrict_send_button I see to much overengineering for this small functionality. IMO, we should refactor it and then migrate it (or both at the same time). That would be my preferred path, because we would not loose functionality and we will improve the code at the same time.

If it is not refactored, I can understand it is too hard to migrate it as it is.

Thanks Enric. Then, MIG + IMP is what should be done.

HaraldPanten avatar Jun 03 '24 06:06 HaraldPanten

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Oct 06 '24 12:10 github-actions[bot]