/srv/irclogs.ubuntu.com/2016/01/09/#ubuntu-google.txt

=== salem_ is now known as _salem
adueppenwould anyone here feel it's a bit unethical to do https://codein.withgoogle.com/tasks/5458583860805632/ since I'm going to attend the ubuntu wisconsin monthly meeting whether I claim the task or not?01:33
xcubnot really, even though you're going to the meetup regardless, no one's going to blame you for getting a little credit :)01:56
darkxstadueppen, I would say that is fine, the whole point of this competition is to participate in the community, and the mentors won't know you went to the meetup if you don't claim it!09:48
DanChapmanGirish, hey! sorry had to shoot off yesterday. did you get dekko running ok in the end?10:34
MatthewAllenballoons, was the task "Remove Hello username link from QA Tracker" ever completed or fix? As it is still active on the bug tracker and I am going to have  a look at fixing it, however the task I cannot find the task on CodeIn anymore.11:23
GirishDanChapman: Yep. Now where\what do I start next?11:26
DanChapmanGirish, excellent. So first off you probably want to get the "Include me in replies" switch in place and stored it's value in the configuration file. I'd say for now stick it under the "Add identity" option in account settings. You also need to add a property to Dekko::Settings::Preferences in src/app/Settings.h to store & reload the value11:32
DanChapmanPreferences is attached to the Account object available in that account settings page. So you can access it with account.preferences11:33
DanChapmanGirish, actually Preferences settings are applied to all accounts so sticking it there isn't going to work. Hmmm..... stick the property in SmtpSettings instead for now.11:41
DanChapmanalso in src/app/Settings/Settings.h11:42
MatthewAllenballoons, had a play around with the 404 coming from the user management page, have a look at https://code.launchpad.net/~whosdaz/ubuntu-qa-website/fix1194770/+merge/282091 - not 100% sure if it was what was wanted, so just checking with you :)11:48
Meverynoobhi12:50
Meverynooberm12:50
Meverynoobemergency ._.12:50
Meverynoobmy task is about to expire in 30 minutes' time12:50
Meverynoobsorry to disturb12:50
Meverynoobbut right now I can't complete my task12:51
Meverynoobit is simply to install ubuntu calculator and run all testsuites12:51
Meverynoobhowever the qml testing is not working12:51
Meverynoobfor unit testing12:51
Meverynoobplease help12:52
Meverynoobctest keeps saying no tests found12:52
MatthewAllenMeverynoob, are you sure you are inside the directory?12:52
MatthewAllenyou may me in your home directory, and thus it wont detect the tests12:53
MeverynoobI am inside the directory12:53
Meverynoobin fact I already ran the autopilot testing12:53
Meverynoobim in the unit directory now12:53
MatthewAllenwho are the mentors on the task? You may want to message them.12:53
Meverynoobnot sure if that's still feasible in 30 minutes12:53
MatthewAllenwho is it, you can probally get them on IRC12:54
MeverynoobCarla Sella Alan Pope Samsruti12:54
MatthewAllenpopey, ^12:54
Meverynoobping popey12:55
Meverynoobbut well12:55
Meverynoobin the scenario he doesn come12:55
Meverynoobdo you know how to solve this?12:55
MatthewAllenso are you running it using the command 'ctest' in terminal?12:56
Meverynoobi tried12:56
Meverynoobalso tried qmltestrunner12:56
Meverynoobboth returned that no tests were found12:56
MatthewAllenIf so you need to be in the "ubuntu-calculator-app" root directory, NOT the tests or unit directory12:56
MatthewAllengive me and second and I'll grab the source12:57
Meverynoobstill no12:57
Meverynoobthanks so much!12:57
MatthewAllenwhat is the exact output when you run that?12:57
MeverynoobTest project /home/meverynoob/Downloads/trunk No tests were found!!!12:58
Meverynoobthe name trunk is the branch i got through ubuntu sdk12:58
Meverynoobits the same thing12:58
Meverynoobif i run qmltestrunner in the tests/unit directory12:58
Meverynoobqmltestrunner: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmltestrunner': No such file or directory12:59
Meverynoobthis is what I get12:59
MeverynoobI retyped well over 10 times12:59
Meverynoobthis isnt working12:59
MeverynoobI tried to update all my qml related software but that didnt work either12:59
MatthewAllenwhat readme is reffering to Ctest? I can only find Autopilot13:00
Meverynoobthe one that says README-unitttest13:00
MeverynoobI was about to wrap up this task13:01
Meverynoobtill I saw that document13:01
MatthewAllenyou may run the autopilot tests and the qml test seperatly13:01
Meverynooband then now I'm here13:01
Meverynoobhuh?13:01
MeverynoobI've already ran the autopilot tests13:01
Meverynoobthe qml test is the only thing left13:01
MatthewAllenDo you have to ubuntu sdk installed?13:02
Meverynoobyes13:03
MatthewAllenhmmm, I'm not 100% sure then - You'll have to wait for Popey to give you a hand - have you said anything on the CodeIn task itself?13:03
Meverynoobnot yet13:04
MatthewAllenI'd do that before it expires, they'll get notified as soon as you write something there13:04
Meverynoobyea13:05
Meverynoobjust wrote it there13:05
Meverynoobthanks for the effort13:05
Meverynoobping @popey13:05
MatthewAllenawesome, goodluck then - sorry I couldn't help13:05
Meverynoobits ok13:05
Meverynoobpopey please13:09
knomeMeverynoob, please, asking again and again isn't going to help13:14
knomeMeverynoob, if you have commented what you have done on the task, and what you couldn't do, it'll be fine13:15
Meverynoobif you had 11 minutes to get an online admin to respond, for a matter as trivial as this, in my opinion13:17
Meverynoobit probably could13:17
knomenope; if he's available, he has seen the ping and/or the email already13:18
Meverynoobit seems i havent built the app in ubuntu sdk yet13:21
Meverynoobshucks13:21
Meverynoobnot sure if thats gonna be an issure13:21
Meverynoobissue13:21
robbertdarkxst, are you here? :)13:21
Meverynoobwelp13:26
Meverynoobthere goes13:26
MeverynoobI'll just reclaim it the moment its gone13:27
popeyhey13:30
popeysorry, I'm busy cooking lunch13:31
popeywill take a look after I'm done13:31
knomepopey, maybe just extend the time by a few hours would be fine13:31
popeylink?13:31
knomeMeverynoob, ^13:31
popeythanks for the ping13:31
popeyoh, found it, I have a mail/comment13:31
knomegood13:32
knomeand bon appetit :)13:32
popeyadded some time13:32
popeythanks :D13:32
Meverynoobwoah13:32
Meverynoobjust in time13:33
popey:)13:33
* popey disappears again13:33
Meverynoobhey er13:34
Meverynoobpopey13:34
Meverynoobif you dont mind13:34
Meverynoobcould you help me with my task?13:34
Meverynoobafter youre done with your lunch and all of course13:34
GirishDanChapman: Ok, lets begin.15:25
DanChapman:-)15:27
GirishSo I need to add a property in the SmtpSettings class.15:30
Meverynoobping popey15:32
DanChapmanYep and store via the classes save & reload slots. You might need to add a settings key to Dekko::SettingsNames15:32
GirishEvery setting in SettingsNames is of the data type QString. I need a bool right?15:35
GirishOhh this is the name'15:36
GirishAnd names a re strings15:36
DanChapmanYes they are your settings keys (names). and the settings values take any QVariant. Take a look in ~/.config/dekko.dekkoproject.conf to see how they get stored. Should make a bit more sense  then :-)15:39
ahayzenMeverynoob, i don't work on Calculator but it looks like they don't have any (working) Unit tests in trunk ? http://bazaar.launchpad.net/~ubuntu-calculator-dev/ubuntu-calculator-app/trunk/files/head:/tests/unit/15:39
ahayzeneven that hellocomponent test has an import which points to a directory that doesn't exist15:40
DanChapmanoops sorry that should of been ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf15:40
GirishHaving a look!15:41
Meverynoobreally?15:41
Meverynoobbut i thought there was the one tst_hellocomponent?15:41
Meverynooboh15:42
Meverynoobok15:42
Meverynoobbut in any case15:42
ahayzenMeverynoob, that looks the same as the example Qt one, so i don't think that is maintained...15:42
ahayzenMeverynoob, check with your mentor, but if you have done the autopilot testing then i think that'll be enough for the testing part15:42
Meverynoobi'm also not sure if there is a missing file in the repository15:42
Meverynoobi tried to import it in ubuntu sdk15:43
Meverynoobbut it needed to create a cbp file15:43
Meverynoobthanks for the heads up15:43
Meverynoobi have no idea what a cbp file is, i'll go ask on the tasksite15:45
Meverynoobim gonna sleep now15:45
GirishDanChapman: So the setting should be something like msa.smtp.<nameOfSetting> = true/false15:47
DanChapmanhmmm not sure... were just putting it in SmtpSettings (i.e msa.smtp) for now as it isn't worth creating a whole new settings class for one property. As the identities evolve more properties will come. How about "identities.includeInReplies=bool"?15:50
GirishYeah that will be better.15:51
GirishSo it should be something like const QString SettingsNames::includeInRepliesKey = QLatin1String("identities.includeInReplies"); in the dekko namespace?15:59
GirishDanChapman ^16:00
DanChapmanYup, looks good :-)16:00
GirishAnd the .config is something which is created evertime the app is run right? I don't have to insert identities.includeInReplies=bool manually myself, right?16:02
GirishDanChapman ^16:04
DanChapmanYeah that file is autocreated if it doesn't already exist. You just need to implement m_settings->setValue(YourKey, bool_value) in the save function to store it16:05
GirishI've added static const QString includeInRepliesKey in struct SettingsNames.16:07
GirishDanChapman: DanChapman Where do I find this save function?16:12
Girishin settings.cpp?16:13
DanChapmanIt's in the SmtpSettings class https://git.launchpad.net/dekko/tree/src/app/Settings/Settings.cpp#n61216:13
DanChapmanyeah16:13
GirishI should edit the bool SmtpSettings::save() class right?16:14
DanChapmanYep and it needs to go between the m_settings->beginGroup() & m_settings->endGroup() calls16:15
GirishDanChapman: Okay since the default value is 'true' should I do m_settings->setValue(Dekko::SettingsNames::includeInRepliesKey, true);?16:17
GirishOr should I construct an If-else construct to check the value?16:18
Girishstatement*16:19
DanChapmanThe default should actually be false for this, and the user should "opt-in" to being included. But anyway your going to need a member variable to store the value in. bool m_includeInReply or something like that. You  set the initial default value in the reload function. something like m_includeInReply = m_settings->value(MyKey, false).toBool() have a read of the QSettings docs to see how that works :-)16:22
GirishDanChapman: Link to QSettings docs?16:44
GirishWhere should this bool m_includeInReply be declared so that it remains global?16:45
DanChapmanGirish, you'll want to declare it in the private: section in the header file of the SmtpSettings class. Then initialise it in the constructor.20:04
DanChapmanoh and http://doc.qt.io/qt-5/qsettings.html20:04

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!