MantisBT

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002077mantisbtbugtrackerpublic2002-06-02 03:102009-05-04 14:27
Reportervboctor 
Assigned Togiallu 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version1.3.xFixed in Version 
Summary0002077: Project news not visible site wide
DescriptionCurrently 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 InformationThe 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.
TagsNo tags attached.
Attached Filespatch file icon bug2077.patch [^] (12,041 bytes) 2007-07-03 18:20 [Show Content]

- Relationships
related to 0005505new All Projects issue... 
related to 0002699new News related to a project should have a different colored title 

-  Notes
User avatar (0014860)
giallu (developer)
2007-07-03 18:22

The attached patch should solve this issue. Basically, what I've done
is:

1. defined 3 new constants specific for the news view states (public,
private, and a new one, global) along with the corresponding enum
strings

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
User avatar (0014862)
giallu (developer)
2007-07-04 02:58

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?
  bool global
 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 :)
User avatar (0014879)
vboctor (administrator)
2007-07-05 19:04

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.
User avatar (0019248)
ccruzmoncada (reporter)
2008-08-26 17:52

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).

- Issue History
Date Modified Username Field Change
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


MantisBT 1.2.16dev master-1.2.x-8c2bd07 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.1087 seconds.
memory usage: 2,815 KB
Powered by Mantis Bugtracker