Last modified: 2013-08-27 14:58:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44577, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42577 - Review and deploy CodeEditor extension
Review and deploy CodeEditor extension
Status: RESOLVED DUPLICATE of bug 39653
Product: Wikimedia
Classification: Unclassified
Extension setup (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Extens...
:
Depends on:
Blocks: 31235 39654 42561
  Show dependency treegraph
 
Reported: 2012-11-30 13:29 UTC by Dereckson
Modified: 2013-08-27 14:58 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dereckson 2012-11-30 13:29:31 UTC
The CodeEditor extension is currently used as a Scribunto dependency.

But according CommonSettings, the extension "core functionnality" shouldn't be enabled "it has been reviewed and approved".
Comment 1 Andre Klapper 2012-11-30 14:37:41 UTC
Marking as blocking bug 31235 - also see https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment
Comment 2 Dereckson 2012-11-30 14:44:10 UTC
Already added on [[MediaWiki:Review queue]].
Comment 3 MZMcBride 2012-11-30 14:47:21 UTC

*** This bug has been marked as a duplicate of bug 39654 ***
Comment 4 Dereckson 2012-11-30 15:10:13 UTC
Reopening bug.

* bug 42577 is to review the extension, and have it deployed for availability on wikis requesting it
* bug 39654 is for universal deployment on every wiki
Comment 5 MZMcBride 2012-11-30 15:44:08 UTC
(In reply to comment #4)
> Reopening bug.
> 
> * bug 42577 is to review the extension, and have it deployed for availability
> on wikis requesting it
> * bug 39654 is for universal deployment on every wiki

I'm sorry, I don't see the distinction you're making here. The extension is already reviewed and deployed. If it weren't, it would be live on MediaWiki.org (cf. <https://www.mediawiki.org/wiki/Special:Version>). We would never allow an un-reviewed extension to be deployed to a production site, surely.

I think there are a few usability bugs that need to be addressed first in the CodeEditor extension, but the step of reviewing and deploying the extension is already complete, isn't it?

(In reply to comment #0)
> The CodeEditor extension is currently used as a Scribunto dependency.
> 
> But according CommonSettings, the extension "core functionnality" shouldn't be
> enabled "it has been reviewed and approved".

---
if ( $wmgUseScribunto ) {
	include( "$IP/extensions/CodeEditor/CodeEditor.php" );
	// Don't enable core functionality until it has been reviewed and approved
	$wgCodeEditorEnableCore = false;

	include( "$IP/extensions/Scribunto/Scribunto.php" );
	$wgScribuntoUseGeSHi = true;
	$wgScribuntoUseCodeEditor = true;
	$wgScribuntoDefaultEngine = 'luasandbox';
	$wgScribuntoEngineConf['luasandbox']['cpuLimit'] = 10;
}
---

Hmm.
Comment 6 Dereckson 2012-11-30 15:49:19 UTC
(In reply to comment #5)
> (In reply to comment #4)
>> We would never allow an
>> un-reviewed extension to be deployed to a production site, surely.

You answered yourself to the question with this code:
> ---
> if ( $wmgUseScribunto ) {
>     include( "$IP/extensions/CodeEditor/CodeEditor.php" );
>     // Don't enable core functionality until it has been reviewed and approved
>     $wgCodeEditorEnableCore = false;
>     [...]
> }
> ---

We currently have Scribunto + the CodeEditor part used by Scribunto reviewed, not all the CodeEditor code.
Comment 7 MZMcBride 2012-11-30 15:57:28 UTC
$wgCodeEditorEnableCore seems to control the CodeEditor functionality only for CSS and JS pages:

---
class CodeEditorHooks {
	static function getPageLanguage( $title ) {
		global $wgCodeEditorEnableCore;

		// Try CSS/JS
		if( $wgCodeEditorEnableCore && $title->isCssOrJsPage() ) {
			if( preg_match( '/\.js$/', $title->getText() ) )
				return 'javascript';
			if( preg_match( '/\.css$/', $title->getText() ) )
				return 'css';
		}
---

I still feel this bug is fundamentally a duplicate of bug 39654.
Comment 8 MZMcBride 2012-11-30 15:59:15 UTC
(In reply to comment #6)
> We currently have Scribunto + the CodeEditor part used by Scribunto reviewed,
> not all the CodeEditor code.

I don't believe this is accurate, given comment 7.
Comment 9 Dereckson 2012-11-30 16:02:40 UTC
I added brion in cc, he will be able to comment on what has exactly been reviewed.
Comment 10 Brion Vibber 2012-11-30 17:46:20 UTC
I don't know anything about review status... I originally wrote the extension so not sure if I can help with review other than feedback and fixes. :)
Comment 11 MZMcBride 2013-08-27 14:58:28 UTC
The CodeEditor extension has already been reviewed and deployed. The plan is for it to go out to all Wikimedia wikis on Thursday, August 29. I don't see anything that's actionable here, but feel free to revert the duplicate resolution if you feel otherwise.

*** This bug has been marked as a duplicate of bug 39653 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links