Page MenuHomePhabricator

Implement abstract boilerplate extension for Speech Data Collector
Closed, ResolvedPublic0 Estimated Story Points

Description

Create initial extension with boilerplate code, extension configuration, test cases, documentation etc. This is a preparation for starting actual work on the project.

As for code, this should include the data classes to be used (they will most probably change over time), database tables and service classes to access the data classes. Basically an ORM backend.

It should probably also include examples of JSON data transfer objects from different root views, e.g. how a complete object graph representing recording is represented, how a complete user is represented, how a complete manuscript is represented, and so on.

Event Timeline

Change 609518 had a related patch set uploaded (by Karl Wettin (WMSE); owner: Karl Wettin (WMSE)):
[mediawiki/extensions/WikispeechSpeechDataCollector@master] Abstract boilerplate extension for Speech Data Collector

https://gerrit.wikimedia.org/r/609518

Lokal_Profil moved this task from Backlog to In progress on the Wikispeech-Jobrunner (Sprint) board.
Lokal_Profil set the point value for this task to 16.

@Addshore Would you mind taking a look at this patch and please let us know if the persistency pattern is acceptable?

It's basically an ORM, data classes mapped to the database using a CRUD-pattern. I can't seem to get the tests running (perhaps due to my AutoloadNamespaces in extension.json?) so I'm afraid I can't quite demonstrate that it actually works. I didn't invent anything new though, so it ought to work unless I've miserably failed to understand some concept of PHP.

Let me know if you need some guidance understanding what's going on in there. I could also try to dig up class diagrams describing the domain model and what not, if that could be helpful.

Thanks!

Lokal_Profil changed the point value for this task from 16 to 3.Oct 1 2020, 8:43 AM
kalle removed the point value for this task.Oct 15 2020, 9:48 AM
kalle set the point value for this task to 0.

Change 609518 merged by Karl Wettin (WMSE):
[mediawiki/extensions/WikispeechSpeechDataCollector@master] Abstract boilerplate extension for Speech Data Collector

https://gerrit.wikimedia.org/r/609518