Skip to content

Impl/63469 rename restricted to internal comments #18669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 24, 2025

Conversation

brunopagno
Copy link
Contributor

@brunopagno brunopagno commented Apr 16, 2025

Ticket

https://community.openproject.org/wp/63469

depends on https://github.com/opf/openproject-token/pull/22

What are you trying to accomplish?

Rename comments with restricted visibility to internal comments

What approach did you choose and why?

Renaming permissions, and strings, and internal representations. Risk of breaking things.

@brunopagno brunopagno self-assigned this Apr 16, 2025
@brunopagno brunopagno changed the base branch from dev to implementation/63384-on-edit-set-attachment-replacements April 16, 2025 13:27
@brunopagno brunopagno changed the base branch from implementation/63384-on-edit-set-attachment-replacements to dev April 16, 2025 13:35
@brunopagno brunopagno changed the base branch from dev to implementation/63384-on-edit-set-attachment-replacements April 16, 2025 13:36
Base automatically changed from implementation/63384-on-edit-set-attachment-replacements to dev April 22, 2025 06:55
@brunopagno brunopagno force-pushed the impl/63469-rename-restricted-to-internal-comments branch 4 times, most recently from 7b303c5 to e9899b6 Compare April 24, 2025 06:20
@brunopagno brunopagno marked this pull request as ready for review April 24, 2025 09:22
@brunopagno brunopagno requested a review from akabiru April 24, 2025 09:22
Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇 quite a chunky one, thanks for taking care of this @brunopagno !

lgtm, just left a few file renames that got left out. 👍🏾

@@ -123,6 +123,8 @@ class Journal < ApplicationRecord
scope :for_work_package, -> { where(journable_type: "WorkPackage") }
scope :for_meeting, -> { where(journable_type: "Meeting") }

alias_attribute :internal, :restricted
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾

Comment on lines +43 to +49
def rename_permissions(old, new)
execute <<-SQL.squish
UPDATE role_permissions
SET permission = '#{new}'
WHERE permission = '#{old}'
SQL
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏾 @machisuji should be happy 😉

@brunopagno brunopagno force-pushed the impl/63469-rename-restricted-to-internal-comments branch from d14e079 to fe708d5 Compare April 24, 2025 11:44
@brunopagno brunopagno merged commit b2a0736 into dev Apr 24, 2025
19 of 20 checks passed
@brunopagno brunopagno deleted the impl/63469-rename-restricted-to-internal-comments branch April 24, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants