After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565365 - Can't add new categorie with SQLite backend
Can't add new categorie with SQLite backend
Status: RESOLVED WONTFIX
Product: Tasque
Classification: Other
Component: Backend/Local (Sqlite)
git
Other Linux
: Normal enhancement
: ---
Assigned To: tasque-maint
tasque-maint
gnome[unmaintained]
: 586261 590328 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-22 16:55 UTC by Maxime Carron
Modified: 2018-07-11 22:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to implement the feature (27.98 KB, patch)
2009-03-03 01:31 UTC, Peter Johanson
none Details | Review
Updated patch with a few file locations changed, and a unit test. (33.95 KB, patch)
2009-03-03 16:06 UTC, Peter Johanson
none Details | Review
Updated patch with a few style fixes, and added a toplevel "test" make target. (34.66 KB, patch)
2009-03-03 16:40 UTC, Peter Johanson
none Details | Review
Added bin/ directory to diff. (contains Rhino.Mocks.dll) (289.02 KB, patch)
2009-03-05 17:10 UTC, Peter Johanson
none Details | Review

Description Maxime Carron 2008-12-22 16:55:10 UTC
Can't add new categorie with SQLite backend.
Comment 1 Richard Venneman 2009-01-12 15:52:06 UTC
Confirming.
Only possible categories are 
Family, Personal, Project, Work

There should the possibility to manage categories at the Local File tab in the preferences.
Comment 2 Peter Johanson 2009-03-03 01:31:03 UTC
Created attachment 129911 [details] [review]
Patch to implement the feature

Let's say, theoretically, I wanted this feature as well. This patch would be how I might do it.

Questions:

1) I've added a reusable set of classes for "configuring categories" (ICategoryEditorView, ICategoryRepository, CategoryEditorPresenter), but since I only needed them for the Sqlite backend, left them in that namespace. Should I promote them to the general Tasque namespace?

2) Ideally, I would like to unit test CategoryEditorPresenter, and TaskCountHelper, but there's no existing unit test setup in Tasque. Any objections/opinions on me adding a tests/ toplevel directory with an NUNit setup? (Might also use NMock or Rhino.Mocks for a mock framework for testing)

3) If I screwed up on any code style things, I apologize. Let me know.
Comment 3 Peter Johanson 2009-03-03 16:06:04 UTC
Created attachment 129947 [details] [review]
Updated patch with a few file locations changed, and a unit test.

Ok, Here's a version that:

1) Puts a few of the new files in a common location.
2) Adds a basic unit test to CategoryEditorPresenter.

I didn't end up testing TaskCountHelper, since it uses gtk# foo (TreeModel, TreeIter, etc) and didn't want to deal with the hassles of properly unit testing GUI shtuff.

Thoughts?
Comment 4 Sandy Armstrong 2009-03-03 16:21:44 UTC
Okay, no chance to review yet, but to answer some questions:

* Yes, setting up NUnit tests is very desirable.  I'm not a big fan of using a mock library, but I concede that it might be necessary given how much our backends and business logic are intertwined with GUI code.
* Coding style is sadly different in any random set of files.  http://live.gnome.org/Tasque/CodingGuidelines is really not specific enough.  Try to follow the style of the surrounding code, and when in doubt, refer to the Mono coding guidelines.  Thanks for reminding me that we need to fix this!

Will look at this as soon as I can.
Comment 5 Peter Johanson 2009-03-03 16:40:00 UTC
Created attachment 129950 [details] [review]
Updated patch with a few style fixes, and added a toplevel "test" make target.

I fixed a couple style issues, added some info to the configure output about whether or not tests can be built, and added a toplevel 'test' make target.
Comment 6 Peter Johanson 2009-03-05 17:10:19 UTC
Created attachment 130140 [details] [review]
Added bin/ directory to diff. (contains Rhino.Mocks.dll)

This includes the new bin/ directory, which right now just has the Rhino.Mocks.dll (the diff doesn't actually include the dll, but it was pulled from the 3.5 zip file from the Rhino.Mocks website).
Comment 7 Sandy Armstrong 2009-06-18 13:43:00 UTC
*** Bug 586261 has been marked as a duplicate of this bug. ***
Comment 8 Sandy Armstrong 2009-07-30 23:59:34 UTC
*** Bug 590328 has been marked as a duplicate of this bug. ***
Comment 9 Mario Carrion 2010-03-25 18:07:13 UTC
Setting component to "Local / Sqlite". Sorry for the spam
Comment 10 Mario Carrion 2010-04-15 21:31:27 UTC
Sorry for the spam. Setting milestone to 0.1.11 aka "Enhancements Release"
Comment 11 Mario Carrion 2010-04-15 21:52:23 UTC
Beware! New wave of spam! Changing severity to enhancement.
Comment 12 André Klapper 2018-07-11 22:56:47 UTC
Tasque is not under active development anymore and has not seen code
changes for five years, and both its mailing lists have seen their last activity three years ago at https://mail.gnome.org/archives/tasque-list/ and https://groups.google.com/forum/#!forum/tasky

Its codebase has been archived:
https://gitlab.gnome.org/Archive/tasque/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.