-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Contribute a shape for the filtering/ordering pages API
Signed-off-by: Florian ROUËNÉ <florian.rouene@obeosoft.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
doc/iterations/2023.8/shapes/order_and_filter_from_pages.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
= (S) Add an API for filtering and ordering view properties pages | ||
|
||
== Problem | ||
|
||
A form in view properties can be composed of several pages from various contributions. | ||
A specifier should be able to order and filter these pages to control the form representation. | ||
|
||
== Key Result | ||
|
||
Offer the specifier the ability to programmatically order and filter the pages of a form. | ||
|
||
== Solution | ||
|
||
Add a new API with in entry the list of the pageDescription which can be applied on an item. | ||
This API should return the list of the pages to display in the form. | ||
|
||
[source,java] | ||
---- | ||
public interface IPropertiesPageDescriptionPostProcessFiltering { | ||
List<String> postProcessFiltering(List<PageDescription> pageDescriptions, PropertiesConfiguration propertiesConfiguration, IEditingContext editingContext); | ||
} | ||
---- | ||
|
||
The API must return the ordered ids only of the pages to be displayed. | ||
|
||
=== Scenario | ||
|
||
* Contributors add a list of pages matching an element. | ||
* Specifier declares through the API a new filter and changes pages order. | ||
* On the form representation, only the pages filtered by the API are displayed and in the specified order. | ||
|
||
=== Cutting backs | ||
|
||
== Rabbit holes | ||
|
||
* This filter only concerns the view properties, for the form editor the specifier already controls the order and content. | ||
* The API return page's id and no directly the page, in order to not offer the ability to add page through this API. | ||
There is already an API for contributing new pages. | ||
|
||
== No-gos |