https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-10-12T20:08:56ZRedmineRedmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=213012010-10-12T20:08:56ZFelix Schäfer
<ul></ul><p>The attributes you name are inherent attributes of tickets in the redmine model, not things that are induced or "only there for" any of the modules you mentioned. There are plans to have more flexibility wrt the attributes shown with issues, but that's not something that will happen soon.</p>
<p>Your best bet to remove those would be to patch the core views and remove the elements you don't need, all should have default values with which the issues should validate every time.</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=213292010-10-13T09:27:47ZAlbert Rosenfield
<ul></ul><blockquote>
<p>The attributes you name are inherent attributes of tickets in the redmine model,<br />not things that are induced or "only there for" any of the modules you mentioned.</p>
</blockquote>
<p>Apparently we have no use for any of the modules that make use of these attributes, what with the attributes being completely useless to us and all.</p>
<blockquote>
<p>There are plans to have more flexibility wrt the attributes shown with issues,<br />but that's not something that will happen soon.</p>
</blockquote>
<p>Hmm, what is the stumbling block?</p>
<p>From a totally superficial point of view, it seems that the part of the issue view where fields are displayed is a pretty straight-forward two-column layout.</p>
<p>I could imagine working on making an administrative settings page where each field can be shown/hidden, placed in column left/right, and moved up/down at will.</p>
<blockquote>
<p>Your best bet to remove those would be to patch the core views and remove the elements you don't need,</p>
</blockquote>
<p>I did this already, but the attributes still pop up in various places (filter dropdowns for example). Then people come around asking me why they are there and if I can get rid of them (and if I can add other, custom, attributes that are missing which they mistook them for - but that's another story).</p>
<p>My solution so far is to dig into the database and remove the relevant columns by hand. This causes the web interface to fail. I then test every page in the web interface and fix it up to work without the unwanted attributes.</p>
<p>The problem with this approach is maintainability, every time I upgrade Redmine, I have to start all over. I would be much happier with a generic solution.</p>
<blockquote>
<p>all should have default values with which the<br />issues should validate every time.</p>
</blockquote>
<p>Agreed, this part works perfectly.</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=213372010-10-13T10:47:27ZFelix Schäfer
<ul></ul><p>Albert Rosenfield wrote:</p>
<blockquote><blockquote>
<p>There are plans to have more flexibility wrt the attributes shown with issues,<br />but that's not something that will happen soon.</p>
</blockquote>
<p>Hmm, what is the stumbling block?</p>
</blockquote>
<p>Time, and other tasks to be done before that, particularly the refactoring going on (should provide more flexibility in the code) and a complete overhaul of the permissions system (which currently is tied too much to projects).</p>
<blockquote>
<p>From a totally superficial point of view, it seems that the part of the issue view where fields are displayed is a pretty straight-forward two-column layout.</p>
<p>I could imagine working on making an administrative settings page where each field can be shown/hidden, placed in column left/right, and moved up/down at will.</p>
</blockquote>
<p>The idea was to have it even configurable per role what fields to show or not, should it be configurable per project or not (and seeing everything tends to be configurable per project more and more, it probably will be), provide facilities for plugins/modules, deactivate other parts of the UI that would need knowledge about those fields, as well as search, and so on, and so on. All that should also be taken with a grain of performance salt, if you end up having 30 "UI"-queries to the DB for 3 queries to fetch one issue and related info, that won't fly either. Anyway, there's not been much discussion going on around this, but it's probably not something that will happen "overnight".</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=213452010-10-13T11:36:39ZAlbert Rosenfield
<ul></ul><blockquote>
<p>The idea was to have it even configurable per role what fields to show or not,</p>
</blockquote>
<p>Sounds nice.</p>
<blockquote>
<p>should it be configurable per project or not<br />(and seeing everything tends to be configurable<br />per project more and more, it probably will be)</p>
</blockquote>
<p>Fair enough.</p>
<p>Personally, I would configure the layout as a whole, not per role and definitely not per project. I think it results in too much confusion if one user sees one thing and another user sees something else. I think that if "you" need to hide some fields from some users, what you have is probably a problem with the organisations workflow more than it is a problem in the Redmine UI. But that's just me :-).</p>
<blockquote>
<p>[...] deactivate other parts of the UI that would need knowledge about those fields</p>
</blockquote>
<p>Agree, needs to be possible somehow..</p>
<blockquote>
<p>All that should also be taken with a grain of performance salt,<br />if you end up having 30 "UI"-queries to the DB for 3 queries to<br />fetch one issue and related info, that won't fly either.</p>
</blockquote>
<p>Yes, I see your point.</p>
<p>Google Code has an interesting solution to this problem, where all the fields that are not related to other issues (think foreign keys or similar) are stored as in the same 'labels' structure, even when they have nothing in common.</p>
<p>Such as <br /> Severity-Criticial<br /> Target-1.7<br /> Affects-Everyone</p>
<p>The first part is the pseudo-field-name, and the second part is the value. That way, you can query for a whole bunch of field values in one big swoop of a query.</p>
<p>Also possible to query for which fields are actually used in a project/installation, if you make it easy to query for just the first part (in example above, Severity, Target and Affects). One query gives all the possible search criteria, for example.</p>
<p>[Technically, database's have substring indexes that could be useful, or triggers that update a cache table, or .. there might be more techniques]</p>
<p>(Also fixes a default value problem quite nicely, because you don't have to insert odd NULLs in any field.)</p>
<p>I don't like Google Code's UI very much, where you can manually enter anything into any label. But I think the storage structure where non-referential fields are all stored as labels is very nice.</p>
<blockquote>
<p>Anyway, there's not been much discussion going on around this,<br />but it's probably not something that will happen "overnight".</p>
</blockquote>
<p>Okay.</p>
<p>I am upgrading a specific redmine install right now, and I would like to remove unwanted stuff again, what do you think is the best approach?</p>
<p>(My best idea right now is I could restart with removing database columns and patching the UI, but it seems silly.)</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=213602010-10-13T18:25:31ZFelix Schäfer
<ul></ul><p>Albert Rosenfield wrote:</p>
<blockquote>
<p>I am upgrading a specific redmine install right now, and I would like to remove unwanted stuff again, what do you think is the best approach?</p>
<p>(My best idea right now is I could restart with removing database columns and patching the UI, but it seems silly.)</p>
</blockquote>
<p>Can't really think of anything better really, other than delving into the code and making sure you miss nothing… Regarding the maintainability, I have found git and having a branch per "feature" (or in your case lack thereof) very handy, as the changes you do to it are focused on one thing only. That might make your job and upgrading a little easier.</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=220542010-11-02T00:02:31ZGergely Daróczi
<ul></ul><p>This feature would be really helpful for us also.<br />If anyone could manage to implement this option, please let me know.</p> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=619282015-03-06T03:42:11ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/1091">Feature #1091</a>: Disabling default ticket fields per tracker</i> added</li></ul> Redmine - Feature #6637: "unwanted" features as pluginshttps://www.redmine.org/issues/6637?journal_id=619302015-03-06T03:44:09ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>We can disable standard fields from Redmine 2.1 (<a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Disabling default ticket fields per tracker (Closed)" href="https://www.redmine.org/issues/1091">#1091</a>).<br />I close this issue.</p>