Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318630

Summary: Proposed patch : Tool to convert a QuerySet to a FacetSet
Product: [Modeling] MoDisco Reporter: Nicolas Guyomar <nicolas.guyomar>
Component: InfrastructureAssignee: Fabien Giquel <fabien.giquel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fabien.giquel, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: fabien.giquel: indigo+
Target Milestone: 0.9.0 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Tool QueryToFacetSet fabien.giquel: iplog+

Description Nicolas Guyomar CLA 2010-07-01 11:57:15 EDT
Hi everyone,

I was creating a querySet with nearly 50 queries when I realized I would have to create another 50 facets to create to associated facetSet.

Because there are some common informations between those two MoDisco tools, I implemented a model transformation to convert a querySet to a facetSet

This tools only treated queries with no parameter and which return scope is Boolean.

Because it saved me a lot of time, I thought you might be interested in it

Regards

Nicolas
Comment 1 Nicolas Guyomar CLA 2010-07-01 11:58:12 EDT
Created attachment 173230 [details]
Tool QueryToFacetSet

This tool converts a querySet directly into a faceSet
Comment 2 Nicolas Guyomar CLA 2010-07-01 12:02:28 EDT
1. I, Nicolas Guyomar, and others contributors listed in this bug, authored
100% of the content
2. I have the rights to donate the content to Eclipse under the EPL
3. I have already provided the filled Employer Consent Forms to the Foundation

Regards

Nicolas
Comment 3 Fabien Giquel CLA 2010-07-01 12:17:00 EDT
Hi Nicolas,

thanks for this utility class. 
The class is less than 250 lines.
It has been commited into SVN, as an an internal API at the moment.

Fabien.
Comment 4 Hugo Bruneliere CLA 2010-10-04 13:54:44 EDT
The patch has been successfully applied.