Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue 756 geoJson namespace error #757

Conversation

thomas-topway-it
Copy link
Contributor

@thomas-topway-it thomas-topway-it commented Oct 27, 2023

fixes #756
fixes 12 related errors running tests

the content of fillParserOutput has been fetched from Mediawiki 1.39.3 JsonContentHandler and SemanticGeoJsonStore -> storeGeoJson argument contains the encoded raw json.

The following block seems to cause the issue

GeoJsonMapPageUi::forExistingPage( $content->beautifyJSON() )
			->addToOutput( OutputFacade::newFromParserOutput( $parserOutput ) );

@thomas-topway-it thomas-topway-it changed the title Issue 756 geo json namespace error Fixes issue 756 geo json namespace error Oct 27, 2023
@thomas-topway-it thomas-topway-it changed the title Fixes issue 756 geo json namespace error Fixes issue 756 geoJson namespace error Oct 27, 2023
@@ -1,5 +1,9 @@
<?php

/**
* @reviewer thomas-topway-it for KM-A
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not add author or reviewer tags in this repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

$parserOutput->setText( '' );
return;
}
parent::fillParserOutput( $content, $cpoParams, $parserOutput );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add this call?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is to set the correct parserOutput text by calling the same method in the parent class (JsonContentHandler)

@JeroenDeDauw JeroenDeDauw merged commit ef5478f into ProfessionalWiki:master Nov 7, 2023
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeoJson namespace error (GeoJsonContentHandler)
3 participants