Generate new template
AbandonedPublic

Authored by ervin on Mar 29 2016, 7:44 AM.

Details

Summary

Display the window which users can input the name and select the list of project in order to create new template

Diff Detail

Repository
R4 Zanshin
Lint
Lint Skipped
Unit
Unit Tests Skipped
rottanaly updated this revision to Diff 2992.Mar 29 2016, 7:44 AM
rottanaly retitled this revision from to Create new template.
rottanaly updated this object.
rottanaly edited the test plan for this revision. (Show Details)
rottanaly added reviewers: ervin, bensi, franckarrecot.
rottanaly set the repository for this revision to R4 Zanshin.
rottanaly added a project: Zanshin.
rottanaly added subscribers: rottanaly, dyhia, thuynguyen.
franckarrecot edited edge metadata.Mar 29 2016, 8:26 AM

First of all, there are not test at all to cover this up, do you guys plan to bring them in later ? should be pushed at the same time so It would be easier for me to grasp how your whole mechanism is supposed to work (test is a spec too!). I'll apply this patch later to see what it looks like tho.

ervin requested changes to this revision.Mar 30 2016, 8:59 PM
ervin edited edge metadata.

The dialog is still not working at that point since you don't produce a project list model yet as advised last week. Did you look at TaskListModel as I proposed? Really you simply need to write a ProjectListModel...

Also I think the whole part about TemplatePageModel has no place at this stage, you're still trying to create a template from a project (from the story you're working on), not to list a template content yet.

src/presentation/applicationmodel.h
34

This change is unneeded.

50

"availableProjectTemplates" would be a better name

62

Ditto.

78

Rename to m_availableProjectTemplates.

src/presentation/templatepagemodel.h
4–5

Copyright is wrong in this file, you wrote it, put the real authors.

45

Are you creating this TemplatePageModel to display the content of a template?

If yes, then I would expect the first argument to be a "Domain::Template::Ptr", this type obviously doesn't exist yet. Up to you to turn it into reality.

46–49

Similarly those are probably the wrong queries and repositories... you would need to introduce your own to list templates and their content.

src/widgets/availablepagesview.cpp
63

Remove that empty line

293

m_projects is still a null pointer at that point. You need to initialize it with a model wrapping a list of projects. So you're missing a class inheriting from QAbstractItemModel for that... again TaskListModel would be a good inspiration for you to start from.

399

Remove that empty line.

src/widgets/availablepagesview.h
86

The name looks wrong, you're not providing a list here.

src/widgets/newtemplatedialog.cpp
4

I didn't write that file either.

src/widgets/newtemplatedialog.h
4

Fix the copyright line, I didn't write that file.

src/widgets/newtemplatedialoginterface.cpp
4

I didn't write that file.

src/widgets/newtemplatedialoginterface.h
4

I didn't write that file.

This revision now requires changes to proceed.Mar 30 2016, 8:59 PM
rottanaly updated this revision to Diff 3678.May 6 2016, 3:03 PM
rottanaly retitled this revision from Create new template to Generate new template.
rottanaly edited edge metadata.
rottanaly changed the visibility from "All Users" to "Public (No Login Required)".

Generate new template

rottanaly updated this revision to Diff 4294.Jun 8 2016, 3:36 PM
rottanaly edited edge metadata.
ervin commandeered this revision.Jun 28 2016, 3:57 PM
ervin abandoned this revision.
ervin edited reviewers, added: rottanaly; removed: ervin.