Page MenuHomePhabricator

Implement abstract boilerplate extension for Speech Data Collector
Open, Needs TriagePublic16 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

kalle created this task.Jul 4 2020, 12:48 PM

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

Restricted Application added a project: Wikispeech-Jobrunner. · View Herald TranscriptJul 9 2020, 10:30 AM
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.
kalle added a subscriber: Addshore.Tue, Jul 14, 4:39 AM

@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!

kalle moved this task from This week to Väntar på andra on the User-kalle board.Tue, Jul 14, 5:10 AM