プロジェクト

全般

プロフィール

Vote #81378

未完了

Show notice on project's overview page when the project is public

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
0
issue_org_id:
35044
author_id:
332
assigned_to_id:
0
comments:
12
status_id:
1
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I suggest that when a project is set to public, the project overview page should show that the project is public and a message describes its impact. The message shown is the same as the one shown in the project settings page improved in #27009.

Although setting the project public sometimes may be dangerous, you cannot know if the project is public unless seeing the project's settings page.

It will be easier to notice if the project is set as public by showing the fact in the Members box. Since the Members box shows users who have access to the project, I think it is consistent to show if the project is visible by non-members or anonymous users.

!{width: 540px; border: 1px solid;}.public-status-in-members-box.png!


journals

The following code is a sample implementation.

<pre><code class="diff">
diff --git a/app/views/projects/_members_box.html.erb b/app/views/projects/_members_box.html.erb
index e915ab910..72d7fb97b 100644
--- a/app/views/projects/_members_box.html.erb
+++ b/app/views/projects/_members_box.html.erb
@@ -4,5 +4,10 @@
<% @principals_by_role.keys.sort.each do |role| %>
<p><span class="label"><%= role %>:</span> <%= @principals_by_role[role].sort.collect{|p| link_to_user p}.join(", ").html_safe %></p>
<% end %>
+ <% if @project.is_public %>
+ <hr>
+ <p span class="label"><%= l(:field_is_public) %>:</span> <%= l(:general_text_Yes) %>
+ <em class="info"><%= Setting.login_required? ? l(:text_project_is_public_non_member) : l(:text_project_is_public_anonymous) %></em>
+ <% end -%>
</div>
<% end %>
</code></diff>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1

Private information may be leaked if the settings are mistakenly made public when creating a project.
I think this feature is needed to quickly notice that the project is open to the public.
--------------------------------------------------------------------------------
+1

On a somewhat related note:
About 1 month ago we also implemented and posted a patch for a new permission for publishing projects in response to #9029 . Maybe this could be considered for Redmine 5.0 ? It would surely help to counter the security concerns regarding public projects....
--------------------------------------------------------------------------------
Maybe we should add a Public badge next to Overview title as we have for issues and versions.
--------------------------------------------------------------------------------
I have attached a patch that adds a test to #35044#note-1. => attachment:0001-Add-test.patch

I also made attachment:0002-Add-project-public-badge.patch to add a badge based on the opinion of #35044#note-5. Please let me know if you need to separate the issue.
!{width: 500px; border: 1px solid #ccc}screenshot.png!

These patches were developed with "Ko Nagase":https://redmine.org/users/388654 and "Akihiro MATOBA":https://www.redmine.org/users/86605 .
--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> I have attached a patch that adds a test to #35044#note-1. => attachment:0001-Add-test.patch
>
> I also made attachment:0002-Add-project-public-badge.patch to add a badge based on the opinion of #35044#note-5. Please let me know if you need to separate the issue.
> !{width: 500px; border: 1px solid #ccc}screenshot.png!

Thank you for the patch but I think it is better to post as a new issue because the feature implemented by the patch is very different from the original proposal.

In addition, I suggest the following improvements:

* The badge is for a single project, the noun should be singular ("projects" -> "project")
* Maybe "public project" is too long. I think "public" is enough
* The color #d22 is too prominent. Also, the red color gives a wrong impression that the public project itself is dangerous and bad. Making a project public is not dangerous. The danger is that you will set it up incorrectly
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Thank you for the patch but I think it is better to post as a new issue because the feature implemented by the patch is very different from the original proposal.
>
> In addition, I suggest the following improvements:
>
> * The badge is for a single project, the noun should be singular ("projects" -> "project")
> * Maybe "public project" is too long. I think "public" is enough
> * The color #d22 is too prominent. Also, the red color gives a wrong impression that the public project itself is dangerous and bad. Making a project public is not dangerous. The danger is that you will set it up incorrectly

Thank you for your feedback.
I made a new issue #35221 and attached a new patch that was modified based on the feedback.
--------------------------------------------------------------------------------
We should show this info only once on this page and the members box is not the best option because the project visibility is an attribute of the project, not of the members. Also, in projects with multiple members or news, the information will be visibile only after more or less scroll.

From my point of view, having the bagde with a title attribute should be enough. If you don’t like this approach, then we should show this info in the project attributes box (top left).
--------------------------------------------------------------------------------
One more thing, project content visibility depends on the rights configured for anonymous/non member roles, maybe the message should be more specific because the current one says that the content is publicly available. Also, in an era of SaaS/cloud applications, we should avoid using the word network. .
--------------------------------------------------------------------------------
What I wanted to show in the members box is public not whether the project is public or not, but anonymous users and nonmembers can access the project.

I think it would be good to discuss how to indicate that a project is public, based on the patch in #35221.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> What I wanted to show in the members box is public not whether the project is public or not, but anonymous users and nonmembers can access the project.
>
I understand now and I think it's a valuable information.

> I think it would be good to discuss how to indicate that a project is public, based on the patch in #35221.

Ok, I will add my proposals there in the following days.
--------------------------------------------------------------------------------


related_issues

relates,Closed,27009,Clarify consequences of disabling the login_required setting

Admin Redmine さんが約2年前に更新

  • カテゴリProjects_11 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0