View Issue Details

IDProjectCategoryView StatusLast Update
0032726mantisbtfilterspublic2023-10-31 16:32
Reportergthomas Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.25.7 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032726: Filtering on "projection" field is missing
Description

I (ab)use the "projection" field for some kind of categorization, but cannot filter for it.

Additional Information

PR #1896 (https://github.com/mantisbt/mantisbt/pull/1896) fixes this, will add a proper commit message to it.

TagsNo tags attached.

Relationships

related to 0033027 closeddregad Permalinks on "projection" field does not work 

Activities

atrol

atrol

2023-06-26 15:23

developer   ~0067866

@dregad @gthomas we have to consider this configuration option

/**
 * Enable or disable usage of the Projection field.
 * @global integer $g_enable_projection
 */
$g_enable_projection = OFF;
dregad

dregad

2023-06-26 18:44

developer   ~0067867

Thanks @atrol, I actually noticed that in my first round of testing, and was planning to add the check after fixing the spacing issue, then totally forgot to implement it...

atrol

atrol

2023-10-16 15:59

developer   ~0068230

Last edited: 2023-10-17 09:27

Getting "INTERNAL APPLICATION ERROR - Call to undefined function filter_encode_filed_and_value()" when trying to create a permalink if projection is filtered.

PR https://github.com/mantisbt/mantisbt/pull/1931

dregad

dregad

2023-10-17 02:23

developer   ~0068232

Thanks for spotting that typo @atrol I just merged your PR

atrol

atrol

2023-10-17 02:52

developer   ~0068234

@dregad the next issues is, that the generated permalink does not work.
Projection in URL is not considered in filter.
I don't know if/when I will have time to have a deeper look.

dregad

dregad

2023-10-17 03:11

developer   ~0068235

So 2 options

  1. revert the whole thing for 2.26.0 and re-target at 2.27
  2. keep the (working) GUI change in 2.27.0 and open a new ticket to track the non-working permalink.

Personally I'm in favor of 2.

atrol

atrol

2023-10-17 04:12

developer   ~0068237

Personally I'm in favor of 2.

Same for me

dregad

dregad

2023-10-17 09:40

developer   ~0068240

Follow-up on broken permalink issue in 0033027.

dregad

dregad

2023-10-30 04:15

developer   ~0068276

@vboctor committed a follow-up fix for REST API MantisBT master 7ac30ed0

Related Changesets

MantisBT: master 4435c8b9

2023-06-25 14:06

dregad


Details Diff
Use colspan=1 for date range filters

I'm not really sure why the date submitted and last updated fields were
set to span 2 columns in the first place. The browser will take care of
dynamically resizing the filter table when the UI is expanded to display
the date range selection fields, so in my opinion it is not necessary.

Switching these to single-column span frees some space, so new filter
fields can be easily inserted without having to completely reorder the
filter area (see issue 0032726).
Affected Issues
0032726
mod - core/filter_form_api.php Diff File

MantisBT: master 75fa6816

2023-06-26 04:30

dregad


Details Diff
Reverting unrelated changes

Changes to the field header labels were inadvertently committed with
4435c8b936d06106b1383f3625810108202c21f5.
Affected Issues
0032726
mod - core/filter_form_api.php Diff File

MantisBT: master 9d6366d4

2023-06-26 05:18

gthomas

Committer: community


Details Diff
Allow filtering Issues on projection

Fixes 0032726, PR https://github.com/mantisbt/mantisbt/pull/1896
Affected Issues
0032726
mod - core/classes/BugFilterQuery.class.php Diff File
mod - core/filter_api.php Diff File
mod - core/filter_constants_inc.php Diff File
mod - core/filter_form_api.php Diff File

MantisBT: master cab449e6

2023-06-26 18:59

dregad


Details Diff
Only display projection filter when field is enabled

Initial implementation displayed the filter field even when
$g_enable_projection = OFF.

Fixes 0032726
Affected Issues
0032726
mod - core/filter_form_api.php Diff File

MantisBT: master 03e5aeb7

2023-10-16 15:54

atrol


Details Diff
Fix permalink creation when filtering based on projection

Issue 0032726
Affected Issues
0032726
mod - core/filter_api.php Diff File

MantisBT: master a0918f11

2023-10-17 12:45

dregad


Details Diff
Fix permalinks with projection field

New Filter field was added in issue 0032726, but the change was not
reflected in search.php.

Fixes 0033027
Affected Issues
0032726, 0033027
mod - search.php Diff File

MantisBT: master 7ac30ed0

2023-10-22 17:22

vboctor


Details Diff
Handle `projection` in FilterConverter

This handles the conversion of the projection filtering in the REST API
Affected Issues
0032726
mod - core/classes/FilterConverter.class.php Diff File