photools.com Community

IMatch Bug Reports and Feature Requests => Bug Reports => Solved Bug Reports (for next version) => Topic started by: axel.hennig on September 11, 2024, 03:05:30 PM

Title: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: axel.hennig on September 11, 2024, 03:05:30 PM
All steps are important, because if e.g. step 3. is skipped, the bug does not appear. Same for step 6.

Steps to reproduce

The sum of the two categories "novalue" and "hasvalue" does not sum up to the total files in the database.

sc1.jpg

Doing the following does not solve the problem:
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: Mario on September 11, 2024, 04:00:18 PM
Probably this formula ignores files without an Attribute record?
This is to check if an attribute in a record has a value. If a file has no Attribute records, it is probably ignored.
Did you check that?
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: axel.hennig on September 11, 2024, 04:25:36 PM
I've just entered and Attribute record for 3 files (see first post step 6.). In total there are 336 files in the DB. That means the "novalue / hasvalue" categories should show:
 Because these 30 files do not differ from all the other files (apart of the 3 files with Attribute record).

By the way: I've imported 336 times the same file just with different filenames, so also no difference here.
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: Mario on September 11, 2024, 07:10:34 PM
That's definitely not right. I shall investigate at the earliest opportunity I'll look into it!
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: axel.hennig on September 11, 2024, 09:25:41 PM
Would it help if I provide you with the IMatch-DB (test-DB; approx. 30MB) containing above described behaviour?
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: Mario on September 12, 2024, 10:54:21 AM
I'll create a small test db with 10 files and an Attribute Set. I post more after I had time to test this.
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: Mario on September 12, 2024, 04:48:18 PM
I have fixed this for the next release, thanks.
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: axel.hennig on September 12, 2024, 05:53:57 PM
Out of curiosity, what was the problem?
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: Mario on September 12, 2024, 08:30:57 PM
Wrongly used BitVector operations in the QueryManager when processing the result of a nvalue query.
Basically | instead of &
Title: Re: Attribute-formula hasvalue and novalue does not sum up to total files count
Post by: axel.hennig on September 13, 2024, 09:19:39 AM
Thanks for explaining and fixing.