Main Page: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
== VisualData examples and feature requests ==
__TOC__
 
 
== Feature examples ==


=== Examples ===


* [[Hierarchical form tree]]
* [[Hierarchical form tree]]
* [[Preload data with nested and multiple values]]
* [[Preload data with nested and multiple values]]
* [[Result format Count]]
* [[Pre-select form tab (if multiple schemas)]]
* [[Result format json-raw]]
* [[Extension:UniquePageTitle]]
* [[Test Lua VisualData]]




=== Feature requests ===
== Feature requests ==


{| class="wikitable"
{| class="wikitable" style="width: 100%; max-width: 1600px"
!Feature
|+
!Comment
! style="width:50%" | Feature
! Comment
|-
|-
| Better ID management than {{#idprovider-increment:}} (Extension:IDProvider)
|Lua equivalents for #visualdataquery and #visualdataprint and possibility to retrieve JSON from json-data slot in Lua
| * Similar to <unique number> in PageForms (see here). Solved with its own Extension:UniquePageTitle - Extension UniquePageTitle still needs improvement for better handling of namespaces
|frame:callParserFunction() can be an alternative. Retrieving json-raw in Lua seems to be a problem, mw.text.jsonDecode() fails, possibly because of strip markers (About [[mediawikiwiki:Strip_marker|strip makrers]], [[Result format json-raw|Example]] )?
|-
|-
| Sorting function for multiple fields
| <s>Better ID management than <code>{{#idprovider-increment:}}</code> '{{#idprovider-increment:}}' (Extension:IDProvider)</s>
| Similar to <unique number> in PageForms (see here). Solved with [https://www.mediawiki.org/wiki/Extension:UniquePageTitle Extension:UniquePageTitle]
|-
| Sorting function for multiple fields / sub-items
|
|
|-
|-
| Image preview on file upload
| Image preview on file upload
| * Theoretically already provided in the code, see /resources/VisualDataForms.js
| Theoretically already provided in the code, see /resources/VisualDataForms.js
|-
|-
| Pre-filled fields on form call
|CSV Import
| * Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData
|
|-
|-
| Generate page title (PAGENAME) from another field (e.g., from project title)
| <s>Pre-filled fields on form call</s>
| * Works, if titles already exist, Extension UniquePageTitle is applied
| Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData
|-
|-
| For long pages: Scroll back to the previous page position after saving popup forms
| For long pages: Scroll back to the previous page position after saving popup forms
Line 32: Line 44:
|-
|-
| Internationalization for values in select and dropdown lists
| Internationalization for values in select and dropdown lists
| * Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
| Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
|-
|-
| Display label instead of schema name in tabs in forms
| Display label instead of schema name in tabs in forms
|
|
|-
|-
| Add sub-items and fields in forms based on queries
| Ability to open forms from the content block of another form (form button is currently not rendered)
|
|
|-
|-
| Ability to open forms from the content block of another form (form button is currently not rendered)
| Ability to show conditonal fields/form elements depending on VisualData queries
|  
|-
|Ability to edit json-data Slot
|
|-
|Form parameter to restrict forms to given user groups
|
|-
|Additional operators in queries (OR) - does it make sense to impelement a JSON query language like https://jmespath.org/
|
|}
|}




== Bugs ==
{| class="wikitable"  style="width: 100%; max-width: 1600px"
|+ v1.0.8
! style="width:50%" | Bug
! Comment
|-
| <s>Anonymous users can edit data in popup forms although <code>$wgGroupPermissions['*'][“visualdata-caneditdata”] = false;</code> is set in LocalSettings.php</s>
| Fixed with [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/VisualData/+/c97112247d8ec9d6322a9a01eccab9acdabc46b4 v1.0.8b]
|-
| VE (VEForAll) does not load in inactive form tabs
|
|-
| <s>Internationalisation of labels does not work anymore, i.e. <code><nowiki>{{int:User}}</nowiki></code></s>
|Works after resaving the Schemas
|}


{| class="wikitable"  style="width: 100%; max-width: 1600px"
|+ v1.0.6
! style="width:50%" | Bug
! Comment
|-
| <s>Anonymous users can edit data in popup forms although <code>$wgGroupPermissions['*'][“visualdata-caneditdata”] = false;</code> is set in LocalSettings.php</s>
| Fixed with [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/VisualData/+/c97112247d8ec9d6322a9a01eccab9acdabc46b4 v1.0.8b]
|-
| <s>Categories are stored in an extra slot, which conflicts with the normal categories (these are not displayed)</s>
| Fixed with v1.0.5
|-
| Import script does not work due to incorrect version check 1.41 instead of 1.41.0
|
|-
| <s>includes/classes/SchemaProcessor.php: Line 1225: Typo $properties $this->replaceFormula( $proprties, $wiki['options-label-formula'] ) );</s>
| Fixed with v1.0.5
|-
| VE (VEForAll) does not load in inactive form tabs
|
|-
| <s>mw.widgets.UsersMultiselectWidget throws an error</s>
| Fixed with v1.0.8
|-
|Triggers for conditional field do not work reliably, especially with OO.ui.ToggleSwitchWidget
|
|}


=== Bugs ===
{{DISPLAYTITLE:VisualData feature ideas}}

Latest revision as of 08:03, 16 August 2024


Feature examples[edit | edit source]


Feature requests[edit | edit source]

Feature Comment
Lua equivalents for #visualdataquery and #visualdataprint and possibility to retrieve JSON from json-data slot in Lua frame:callParserFunction() can be an alternative. Retrieving json-raw in Lua seems to be a problem, mw.text.jsonDecode() fails, possibly because of strip markers (About strip makrers, Example )?
Better ID management than 5701 '5702' (Extension:IDProvider) Similar to <unique number> in PageForms (see here). Solved with Extension:UniquePageTitle
Sorting function for multiple fields / sub-items
Image preview on file upload Theoretically already provided in the code, see /resources/VisualDataForms.js
CSV Import
Pre-filled fields on form call Works in newer versions of VisualData - Custom code adjustment for handling nested and multiple values - should be committed to VisualData
For long pages: Scroll back to the previous page position after saving popup forms
Internationalization for values in select and dropdown lists Possibly via switch statement, see: https://www.mediawiki.org/wiki/Extension:VisualData/Queries_in_forms
Display label instead of schema name in tabs in forms
Ability to open forms from the content block of another form (form button is currently not rendered)
Ability to show conditonal fields/form elements depending on VisualData queries
Ability to edit json-data Slot
Form parameter to restrict forms to given user groups
Additional operators in queries (OR) - does it make sense to impelement a JSON query language like https://jmespath.org/


Bugs[edit | edit source]

v1.0.8
Bug Comment
Anonymous users can edit data in popup forms although $wgGroupPermissions['*'][“visualdata-caneditdata”] = false; is set in LocalSettings.php Fixed with v1.0.8b
VE (VEForAll) does not load in inactive form tabs
Internationalisation of labels does not work anymore, i.e. {{int:User}} Works after resaving the Schemas
v1.0.6
Bug Comment
Anonymous users can edit data in popup forms although $wgGroupPermissions['*'][“visualdata-caneditdata”] = false; is set in LocalSettings.php Fixed with v1.0.8b
Categories are stored in an extra slot, which conflicts with the normal categories (these are not displayed) Fixed with v1.0.5
Import script does not work due to incorrect version check 1.41 instead of 1.41.0
includes/classes/SchemaProcessor.php: Line 1225: Typo $properties $this->replaceFormula( $proprties, $wiki['options-label-formula'] ) ); Fixed with v1.0.5
VE (VEForAll) does not load in inactive form tabs
mw.widgets.UsersMultiselectWidget throws an error Fixed with v1.0.8
Triggers for conditional field do not work reliably, especially with OO.ui.ToggleSwitchWidget