Extension talk:StructuredDiscussions

About this board

Any questions about the StructuredDiscussions extension.

Summary by Tinss

Seach was experimental and has now been removed from the code base. Discussions are underway here to get it working again.

Bovlb (talkcontribs)

How do you search an archive of structured discussions?

Tinss (talkcontribs)

Hello,

There is a configuration parameter named $wgFlowSearchEnabled which defaults to false because it's is still experimental.

Sadly, integration with Elastic has been removed in some recent commits.

If you give it a go tell me about it because we could petition the dev team to put it back in.

Bovlb (talkcontribs)

Thanks. I'll start a discussion.

Tinss (talkcontribs)

Cool, please cc me or give me link here so I can subscribe.

Bovlb (talkcontribs)

Enable the visual editor on the mobile frontend

1
Tinss (talkcontribs)

In mobile mode, only the wikicode is available which is problematic as most users are not versed in wikicode edition. Below is a patch to enable the visual editor in mobile mode.

There is however one bug that I cannot solve: searching users to tag them does not work, the exact user name has to be entered.

In extension.json

Above "ext.flow.visualEditor":

"ext.flow.mobileVisualEditor": {
	"scripts": [
		"editor/editors/visualeditor/mw.flow.ve.Target.js",
		"editor/editors/visualeditor/mw.flow.ve.UserCache.js",
		"editor/editors/visualeditor/ui/inspectors/mw.flow.ve.ui.MentionInspector.js",
		"editor/editors/visualeditor/ui/tools/mw.flow.ve.ui.MentionInspectorTool.js",
		"editor/editors/visualeditor/ui/tools/mw.flow.ve.ui.MWEditModeTool.js",
		"editor/editors/visualeditor/ui/contextitem/mw.flow.ve.ui.MentionContextItem.js",
		"editor/editors/visualeditor/ui/widgets/mw.flow.ve.ui.MentionTargetInputWidget.js",
		"editor/editors/visualeditor/mw.flow.ve.CommandRegistry.js",
		"editor/editors/visualeditor/mw.flow.ve.SequenceRegistry.js"
	],
	"styles": [
		"editor/editors/visualeditor/mw.flow.ve.Target.less"
	],
	"dependencies": [
		"ext.visualEditor.core",
		"ext.visualEditor.core.mobile",
		"ext.visualEditor.mediawiki",
		"ext.visualEditor.mwwikitext",
		"ext.visualEditor.switching",
		"mediawiki.editfont.styles",
		"oojs-ui.styles.icons-editing-advanced",
		"ext.flow.visualEditor.icons",
		"mediawiki.api",
		"mediawiki.util"
	],
	"messages": [
		"flow-ve-mention-context-item-label",
		"flow-ve-mention-inspector-title",
		"flow-ve-mention-inspector-remove-label",
		"flow-ve-mention-inspector-invalid-user",
		"flow-ve-mention-placeholder",
		"flow-ve-mention-tool-title"
	],
	"targets": [
		"mobile"
	]
},

In "ext.flow.visualEditor.icons":

"targets": [
	"desktop",
	"mobile"
]

In extensions/Flow/modules/flow/ui/widgets/editor/mw.flow.ui.EditorWidget.js

Comment out !OO.ui.isMobile() in

mw.flow.ui.EditorWidget.static.isVisualEditorSupported = function () {
	/* global VisualEditorSupportCheck:false */
	return !!(
		//!OO.ui.isMobile() &&
		mw.loader.getState( 'ext.visualEditor.core' ) &&
		mw.user.options.get( 'flow-visualeditor' ) &&
		window.VisualEditorSupportCheck && VisualEditorSupportCheck()
	);
};


Replace line modules = [ 'ext.flow.visualEditor' ].concat(

with modules = [ OO.ui.isMobile() ? 'ext.flow.mobileVisualEditor' : 'ext.flow.visualEditor' ].concat(

Reply to "Enable the visual editor on the mobile frontend"
197.202.110.178 (talkcontribs)

Is Flow being discontinued next year?

Jdforrester (WMF) (talkcontribs)
Revansx (talkcontribs)

Are there any discussions about how to migrate to comment streams?

Jdforrester (WMF) (talkcontribs)
Tinss (talkcontribs)

How about migration to the new talk page system in use on the English Wikipedia?

Reply to "Flow"
SaltyMolaontheMoon (talkcontribs)

MediaWiki version 1.37.2

I have installed all dependencies and checked special:version to ensure all of them have been installed successfully. But it seems that Flow isn't applied. And no warning no error, just like I haven't installed Flow. I cant figure it out and really upset.

Is there any configuration to pay attention to? Thanks for any help.

Konodiol (talkcontribs)

Did you add $wgNamespaceContentModels[NS_TALK] = 'flow-board'; $wgNamespaceContentModels[NS_USER_TALK] = 'flow-board'; to your LocalSettings.php?

Reply to "Doesn't work"

Error when adding text with VisualEditor

5
Summary by Fokebox

This patch has resolved the problem. I hope that the solution will be deployed in future versions of extension

Fokebox (talkcontribs)

Hi team!

When I add text at Discussion pages with VisualEditor (not source editing) I have an error (see screenshot).

When I post messages with source editing then everything works perfect. How can fix the bug?

Revansx (talkcontribs)

What version MW? What version StructuredDiscussions? Check your Special:Version page and share the version info of the pertinent software.

Fokebox (talkcontribs)

I have:

MediaWiki 1.35.3
PHP 7.4.21 (cgi-fcgi)
MySQL 5.7.34
ICU 57.1
Lua 5.1.5

Flow:

Flow 1.2.0 (28ad95e) 22:21, 22 July 2021

This patch helped as in the topic below.

Fokebox (talkcontribs)

Hi! I have updated my wiki to 1.38.0:

Продукт Версия
MediaWiki 1.38.0
PHP 7.4.28 (cgi-fcgi)
MySQL 5.7.27-30
ICU 50.1.2
Lua 5.1.5

Flow:

Flow 1.2.0 (74ffd17) 08:41, 26 May 2022

And the problem is back again. When I have a message made in VisualEditor I have error again. The patch I used to have (linked above) doesn't work, i.e. now it makes discussion pages with error. How to resolve the problem?

Fokebox (talkcontribs)

This patch has resolved the problem. I hope that the solution will be deployed in future versions of extension

flow

1
Summary by Uvas magicas

for the problem this use the next patch - The patch with MW 1.38.0 and Flow 1.2.0 (74ffd17) 08:41, 26 May 2022 does not work, or you can config the next variable: $wgVirtualRestConfig['modules']['parsoid']['url'] and point to the url access of the rest.php of the wiki.

Uvas magicas (talkcontribs)

when trying to publish a topic in flow in visual edition I get this

[c5691ad38140b1463dccece8] Caught exception of type Flow \ Exception \ WikitextException

Reply to "flow"

HTML to Wikitext Conversion Issue

18
Knomanii (talkcontribs)

I just did a fresh install of Mediawiki 1.35 with Flow-REL1_35.

When I click "Save" on any Flow comment with VisualEditor, I get this HTML to Wikitext conversion error.

What caused this error?

I did only the basic setup for VisualEditor and Flow with MW-1.35 — are any special Parsoid settings needed?

Any help would be appreciated.

Error message
Knomanii (talkcontribs)

Bump. Anyone able to help?


This extension does not work with a fresh install of 1.35.0. Is a RESTBase required or something?

Knomanii (talkcontribs)

Alternatively, if there's not a way to fix Visual Editing, can I disable it? Is it possible to only allow Source Editing?


Any help would be appreciated!

Sophivorus (talkcontribs)

I'm experiencing the same issue, only that I just upgraded from 1.34 to 1.35. On regular pages, the visual editor is working fine.

For now I 'fixed' it by disabling visual editing on talk pages, by setting $wgFlowContentFormat = 'wikitext';

I reported the issue at https://phabricator.wikimedia.org/T267407

Msnhinet8 (talkcontribs)

Me too, how can i do?

Spas.Z.Spasov (talkcontribs)

Hello!

I'm experiencing the same problem. Recently I've switched from MW 1.34 to 1.35. Visual Editor works fine everywhere except Flow. I'm using the autoconfigure mode, so $wgVirtualRestConfig is not set. At the moment I found three different error messages:

Somme errors occurred with mw:Extension:Flow REL1_35, 07.11.2020

(1) When I'm tring to edit an old existing comment:

An error occurred. The error message received was: internal_api_error_Flow\Exception\WikitextException

(2) When I'm tring to save a comment in visual mode:

[X6akA72QQzSDKWPFYEuVSAAAAAU] Exception caught: Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion

(3) When I'm trying to switch from visual to text mode (the other direction works):

Unable to transfer content: Error contacting the server for conversion between wikitext and HTML. Please check your Internet connection or try again later if the problem persists. If you still get this error please file a bug

Here is my current Setup:

wfLoadExtension( 'VisualEditor' );
$wgGroupPermissions['user']['writeapi'] = true;
$wgSessionsInObjectCache = true;
$wgVisualEditorAvailableNamespaces = array(
        NS_USER => true,
        NS_HELP => true,
        NS_PROJECT => true,
        NS_TEMPLATE => true,
        NS_LINK => true
);

wfLoadExtension( 'Flow' );
$wgFlowContentFormat = 'html';
$wgFlowEditorList = array( 'visualeditor', 'none' );
$wgFlowParsoidTimeout = 100;
$wgFlowParsoidForwardCookies = true;

My additional research:

  1. I can switch between the visual and text mode only when I'm creating a new comment. Or sometimes when I save the post after 3rd message occurs, bot not every time.
  2. 1st problem appear when I'm in a text mode. If I'm in visual mode I can open an existing comment for edit, but of course I can't save it because of the 2nd issue.
  3. I can't say using $wgFlowContentFormat = 'wikitext'; solve any of the issues.
  4. Using $wgFlowEditorList = array( 'wikitext' ); in order to force the usage only of the wikitext editor doesn't work.
  5. $wgFlowContentFormat and $wgFlowEditorList doesn't change anything at all.

Does we need something like $wgGroupPermissions['flow']['writeapi'] = true;?

Cloudcell (talkcontribs)

bump. I'm experiencing the same issue. Tried everything.

Knomanii (talkcontribs)

Anyone know if this will be patched in MW-1.35.1?

Per phab:T267407, phab:T260648#6645078 seems to be the patch but I can't tell if it will be included in 1.35.1 or if it will resolve this issue downstream.

154.21.21.29 (talkcontribs)

Running into the same issue. Tried switching flow content formats as well, no luck. Has anybody figured this out?

Cloudcell (talkcontribs)
2001:E60:B00C:A4BF:553D:8BF:6BB4:7CEC (talkcontribs)

Bump. Same issue using MW 1.35.1

Spas.Z.Spasov (talkcontribs)

I can't confirm the issue disappear with MW 1.35.1, but I can confirm the patch (phab:T260648#6645078) provided above works!

Knomanii (talkcontribs)

I just upgraded to MW 1.35.1 and encountered the same issue. I checked and the patch you mentioned (phab:T260648#6645078) was not included in 1.35.1. :(

But I was able to apply the patch, and it worked! Though I do hope WMF includes it in the next upgrade… I'm afraid it'll get overwritten when our staff upgrades our wiki next. They may not know how to fix this issue and ditch mediawiki altogether. It's somewhat frustrating that out-of-the-box fresh installs are this difficult to get working.

Anyhoo, thanks for mentioning the patch! I'm really glad it worked.

Beginneruser (talkcontribs)

Hi

I have same top error when use following config:

wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'Flow' );
$wgFlowContentFormat = 'html';

But when change config by remove the wfLoadExtension( 'VisualEditor' );

wfLoadExtension( 'Flow' );
$wgFlowContentFormat = 'html';

Error solve in Flow, But Visual Editor is disable

How use Visual Editor + Flow without error in Mediawiki 1.35.1 LTS version

Please help me!

Tinss (talkcontribs)
Beginneruser (talkcontribs)
MarkAHershberger (talkcontribs)

I'm not sure why I'm pinged here, but looking at the patch in gerrit, it looks like it has been forgotten about.

Reply to "HTML to Wikitext Conversion Issue"

How to allow users just comment and reply

3
Fokebox (talkcontribs)

I have following problem: I want users and guests to post comments and reply without rights to edit pages in my wiki. If I disable editing rights so it is possible to create a topic without right to reple on any other? How can I configure that?

Trizek (WMF) (talkcontribs)

That's not possible at the moment.

Coyote897 (talkcontribs)

I think that's such a limitation to the present implementation of Flow. There's a significant difference between an anonymous user entering a question or comment on a wiki and having rights to edit articles on a wiki.

With the project I'm setting up, we specifically wanted to allow anon users to have the opportunity to enter comments on a talk page without having the rights to make edits to articles at the same time (i.e. anon users just have the right to read articles).

Do hope you will give this functionality request due consideration.

Reply to "How to allow users just comment and reply"

Postgres Required due to Echo status

1
Rijvirajib (talkcontribs)

Currently, Echo is required which does not have Postgres support.

Perhaps it should be updated that StructuredDiscussions only support MySQL right now.

Reply to "Postgres Required due to Echo status"

Flow Board Description on the left

1
Revansx (talkcontribs)

Presently, the Flow Board Description appears on right-hand side of the Flow Talk page.

How hard would it be to make a configuration parameter that configures flow to show the Flow Board Description on the left-hand side? Could this be done with Common.css?

(Sometimes it's the little things 😀 )

/Rich

Reply to "Flow Board Description on the left"
Return to "StructuredDiscussions" page.