Skip to content

Implement a DebateXML exporter#90

Open
tienne-B wants to merge 1 commit intochief-nerd:masterfrom
tienne-B:debate-xml
Open

Implement a DebateXML exporter#90
tienne-B wants to merge 1 commit intochief-nerd:masterfrom
tienne-B:debate-xml

Conversation

@tienne-B
Copy link
Contributor

DebateXML is an interchange and archival format for debate tournaments of multiple styles, including BP.

This commit adds a quick DebateXML exporter function to tournament tab-masters, which is also available after the tournament closes. The link is available under the Tournament drop-down with the Tabbie1/DebReg integrations.

A helper function was also added to the tournament model to fetch all questions at once, rather than just a type thereof. Further, novice status was not implemented in the exporter as it does not seem to be complete.

I have not measured the performance of the exporter as I do not have a dataset to work with. It would be good if one were available for development/tests.

Schema: TabbycatDebate/DebateXML#4 (and more information about the project available in the repo)

DebateXML is an interchange and archival format for debate tournaments
of multiple styles, including BP.

This commit adds a quick DebateXML exporter function to tournament tab-
masters, which is also available after the tournament closes. The link
is available under the Tournament drop-down with the Tabbie1/DebReg
integrations.

A helper function was also added to the tournament model to fetch all
questions at once, rather than just a type thereof. Further, novice
status was not implemented in the exporter as it does not seem to be
complete.

Schema: TabbycatDebate/DebateXML#4
$institutions = [];
foreach ($adjudicator->getSocieties() as $inst)
{
array_push($institutions, self::SOCIETY_PREFIX . $inst->id);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are adjudicators associated with only one society in a tournament? I took it as no, but if I'm wrong, is it appropriate to release all current affiliations? Same for speakers above.

/**
* @return \yii\db\ActiveQuery
*/
public function getAllQuestions()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a standard style for code in this project? For example, this file uses spaces while TournamentController.php uses tabs.

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.

1 participant