|Anonymous | Login | Signup for a new account||2013-12-12 18:03 EST|
|Main | My View | View Issues | Change Log | Roadmap | Wiki | Repositories|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002077||mantisbt||bugtracker||public||2002-06-02 03:10||2013-08-16 12:43|
|Target Version||1.3.x||Fixed in Version|
|Summary||0002077: Project news not visible site wide|
|Description||Currently a manager can post news for the managed projects but not to site-wide (all projects). Admins are the only ones who can post to site-wide. It would be good if there is a configurable option that makes "All Products" also show the news for all the products to which the logged in user is a viewer or for public projects. Of course this will be limited by the configured news limits.|
|Additional Information||The current behaviour is that site wide news are viewable when any project or all projects is selected, but project specific news is only visible when the corresponding project is selected.|
|Tags||No tags attached.|
|Attached Files||bug2077.patch [^] (12,041 bytes) 2007-07-03 18:20 [Show Content]|
The attached patch should solve this issue. Basically, what I've done
1. defined 3 new constants specific for the news view states (public,
private, and a new one, global) along with the corresponding enum
2. replaced all references to the old constants, where used in the
context of news, with new ones
3. reworked the queries for reading the news set so that:
a. with a project selected, show all news from the project + global news
b. with "All projects" selected, show all news from all projects
Transcript of a chat with Victor (vboctor), small typos fixed:
Victor: I am not sure I agree with your proposed solution for the news.
Did you consider using a different project id instead of a different view state?
12:28 AM me: yes.
but the problem is you really want to have a project issue that escalate to a global status
12:29 AM not vice-versa
Victor: How about a flag that is similar to announcement.
me: also considered, and was more attractive than using a project id
12:30 AM Victor: any reason why you didn't go with a flag?
me: no schema changes
Victor: I am ok with a schema change if it makes sense.
me: easier to code, easier upgrade
Victor: otherwise the view state will have to be private-global, private, public-global, public.
12:31 AM me: I thought about that but the question is:
does private-global make sense?
12:32 AM and global implies public
all in all, if you foresee we will be asked to support private-global news
I agree for the schema change
12:33 AM otherwise, I'd prefer the current solution
which is also toward solving 0006919 :)
|As per our discussion earlier, I do no think it is wise to allow a manager of a project to post news on other projects. What we can do is to have a threshold that once a user has can post site-wide news. Not sure if we currently support that or we only allow it for Admin.|
|There is an enumeration for project_view_status but the project pages seem to be using the view_status instead. I modified the project_view_status enum in Config_inc.php (removing the public option to enforce all projects to be created as private) and patched manage_proj_Create_page.php and manage_proj_edit_page.php to use the correct enumeration. I did thatbefore actually checking this issue. Is there a better way to do this? The patch in the attachment seemed a bit complicated and over my head (I am not a php programmer).|
|Removed assignment. giallu will not contribute to this issue in near future.|
|2004-08-09 04:59||jlatour||Relationship added||child of 0004181|
|2007-07-03 07:57||giallu||Target Version||=> 1.1.0|
|2007-07-03 18:20||giallu||File Added: bug2077.patch|
|2007-07-03 18:22||giallu||Note Added: 0014860|
|2007-07-04 02:58||giallu||Note Added: 0014862|
|2007-07-05 19:04||vboctor||Note Added: 0014879|
|2007-07-08 20:14||vboctor||Assigned To||vboctor => giallu|
|2007-07-08 20:19||vboctor||Relationship deleted||child of 0004181|
|2007-07-11 17:06||giallu||Relationship added||related to 0005505|
|2007-07-21 17:29||giallu||Relationship added||related to 0002699|
|2007-09-25 02:22||vboctor||Target Version||1.1.0 => 1.2.0|
|2008-07-12 18:19||giallu||Target Version||=> 1.2.0|
|2008-08-26 17:52||ccruzmoncada||Note Added: 0019248|
|2009-05-04 14:27||siebrand||Target Version||1.2.2 => 1.x.x|
|2013-08-16 12:43||atrol||Note Added: 0037886|
|2013-08-16 12:43||atrol||Assigned To||giallu =>|
|2013-08-16 12:43||atrol||Status||assigned => new|
| MantisBT 1.2.16dev master-1.2.x-9aa19be [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.1144 seconds.|
memory usage: 2,923 KB