Project

General

Profile

Actions

Defect #417

closed

Filter on tree nodes by parent tree node fails

Added by Radek Tomiška almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Peter Štrunc
Category:
Spring - DATA
Target version:
Start date:
05/12/2017
Due date:
% Done:

100%

Estimated time:
6.00 h
Affected versions:
Owner:

Description

After filter were moved to api and refactored (entity -> uuid) filter on tree nodes by parent tree node fails. Please check other refactored filters too.


Related issues

Copied to IdStory Identity Manager - Defect #450: Tree structure in GUI errorRejectedMarcel Poul05/29/2017

Actions
Actions #1

Updated by Peter Štrunc almost 7 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Peter Štrunc almost 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Peter Štrunc to Ondřej Kopr
  • % Done changed from 0 to 70

I fixed the problem and implemented a test that should cover it for the future. I did it by implementing find method on IdmTreeNodeService which now uses Criteria API instead of JPQL query. Old method on IdmTreeNodeRepository is marked deprecated, but it is not fixed since it will be removed anyway.

Ondra, please do review. Implementation is in psourek/filter-fix branch.

Actions #3

Updated by Ondřej Kopr almost 7 years ago

  • Assignee changed from Ondřej Kopr to Radek Tomiška
Actions #4

Updated by Radek Tomiška almost 7 years ago

  • Status changed from Needs feedback to Closed
  • Assignee changed from Radek Tomiška to Peter Štrunc
  • % Done changed from 70 to 100

It works and code looks fine. Rewriting find method from HQL to criretia JPA is nice - we had to do it eventually, so you killed two flies with one punch :)
I've made some small refactoring (remove find method impl from repository, spliting rest and integration tests, unused imports, add authors etc.) and i've merged psourek/filter-fix branch into develop.

Thx.

Actions #5

Updated by Radek Tomiška almost 7 years ago

  • Status changed from Closed to In Progress
Actions #6

Updated by Peter Štrunc almost 7 years ago

  • Assignee changed from Peter Štrunc to Radek Tomiška

I fixed like search in queries. I also added test to cover this case. Please give me feedback, thanks. It is in commit f100e6130bd.

Actions #7

Updated by Peter Štrunc almost 7 years ago

  • Status changed from In Progress to Needs feedback
Actions #8

Updated by Radek Tomiška almost 7 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Peter Štrunc

Ok (review only), merge it please to develop.

Actions #9

Updated by Peter Štrunc almost 7 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Peter Štrunc to Radek Tomiška

I fixed the corrupted test in commit 13b75c17d1788. Please look at it so develop will become stable again.

Actions #10

Updated by Radek Tomiška almost 7 years ago

Ok (review only), merge it please to develop.

Actions #11

Updated by Radek Tomiška almost 7 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Peter Štrunc
Actions #12

Updated by Radek Tomiška almost 7 years ago

  • Status changed from In Progress to Closed
Actions #13

Updated by Radek Tomiška almost 7 years ago

  • Copied to Defect #450: Tree structure in GUI error added
Actions

Also available in: Atom PDF