These are chat archives for kevindeasis/cmput410-project

11th
Mar 2015
Jeff YE
@chongyangye
Mar 11 2015 00:02
where we meeting today
audreyx
@audreyx
Mar 11 2015 00:03
Now I see actually both of our versions are working and have protential to satisty all functionality, but in VERY different structure design, from model to UI. In this case it is not worth to spend time on replace yours with mine. Now I switch to study how to do unit test.
audreyx
@audreyx
Mar 11 2015 00:16
Need help: where is the unit test files in the project? @diego04
audreyx
@audreyx
Mar 11 2015 00:28
I found it........
Kevin De Asis
@kevindeasis
Mar 11 2015 00:30
@audreyx I can integrate yours, but not all. However you need to make a separate branch for that
@audreyx also another branch that doesnt have your model and your html. that one should have the unit test and should be the one thats up to date to the server
@/all does anyone have a room booked at 7?
Jeff YE
@chongyangye
Mar 11 2015 00:34
2-18
i just booked
audreyx
@audreyx
Mar 11 2015 00:34
We have a meeting tonight??
Jeff YE
@chongyangye
Mar 11 2015 00:34
Start at 7
yes
audreyx
@audreyx
Mar 11 2015 00:36
I am half hour driving from school. Should I work at home for the unit test? Or it is very important to be there?
@diego04 Maybe you just leave it there, use your version and move on, we still have a lot to do.
Kevin De Asis
@kevindeasis
Mar 11 2015 00:51
@audreyx youdont have to be here
@audreyx yes but it takes me literally less than 5 minutes to integrate your code once i see it.
Dylan Cassidy
@DylanCassidy
Mar 11 2015 00:52
Glenn and I will be a bit late
Kevin De Asis
@kevindeasis
Mar 11 2015 00:52
@chongyangye ill be there at 7:05 ish
Jeff YE
@chongyangye
Mar 11 2015 00:53
Ok
Kevin De Asis
@kevindeasis
Mar 11 2015 00:56
@chongyangye might want to tell us in the meeting more about the server thats hosting. ie: apache etc... and if were able to modify the configuration
Glenn Meyer
@gmeyer1
Mar 11 2015 01:08
Sorry, class is going pretty long today...I can ask if we can head out soon though...
audreyx
@audreyx
Mar 11 2015 01:14
@all I need a lot of time to explore the testing so I stay at home.
Kevin De Asis
@kevindeasis
Mar 11 2015 01:16
@audreyx yeah thats cool.
hey audrey can you push your branch. everyone wants to see your html page. we might adopt your html
Glenn Meyer
@gmeyer1
Mar 11 2015 01:23
just wrapping up, should only be 5-10 more min hopefully
Kevin De Asis
@kevindeasis
Mar 11 2015 02:07
@jasonqi77 @chongyangye posts and privacy tonight & UI
@audreyx testing
@DylanCassidy testing
@gmeyer1 admin, documenting (API)
Kevin De Asis
@kevindeasis
Mar 11 2015 02:35
@jasonqi77 the html is in audreys link
Glenn Meyer
@gmeyer1
Mar 11 2015 02:42
Working from home, just need to finish up a take-home quiz I forgot about and then I'll finish up the admin stuff. Also, talked to a couple other groups about part 1 requirements and they also interpreted 1/2 of requirements as 1/2 of user stories so I'm a bit less panicked now.
Kevin De Asis
@kevindeasis
Mar 11 2015 02:45
ok great, as long as you push that api documentation too and fill out your name in the read me section thanks.
Glenn Meyer
@gmeyer1
Mar 11 2015 02:47
Will do
Also, if it would be easier for me to work at school with anyone who's there, let me know. I can be there in 15ish min so it's not a big trek.
audreyx
@audreyx
Mar 11 2015 02:56
Just now I edited the tests.py file but ONLY some comments to markdown my thoughts. After I pull from master (in which there came some changes), "$ ./manage.py test" could not run properly anymore. I guess that changes has break the unit test?? It is not about testing fail, but the file cannot run through at all. Anyone can help a little bit?
Kevin De Asis
@kevindeasis
Mar 11 2015 03:03
@audreyx did you download all the modules
django-extensions, django-nose, nose, coverage, factory_boy, djangorestframework
Kevin De Asis
@kevindeasis
Mar 11 2015 03:13
@audreyx is it working now?
Kevin De Asis
@kevindeasis
Mar 11 2015 03:25
@chongyangye @jasonqi77 ok sorry you guys want might to pull again, i did something wrong
Jeff YE
@chongyangye
Mar 11 2015 03:27
ok
did you push?
Kevin De Asis
@kevindeasis
Mar 11 2015 03:32
not yet
sorry im merging audreys test
@audreyx you forgot assert, im guessing youll add that later?
@chongyangye you should be good
Jeff YE
@chongyangye
Mar 11 2015 03:35
ok
audreyx
@audreyx
Mar 11 2015 03:59
It runs now...
Kevin De Asis
@kevindeasis
Mar 11 2015 04:05
great, what did you do? some people might have the same problem too, in the future.
audreyx
@audreyx
Mar 11 2015 04:06
I don't know, I remove the local repo and install+pull everything again, then it works
Kevin De Asis
@kevindeasis
Mar 11 2015 04:06
ok great
Jeff YE
@chongyangye
Mar 11 2015 04:20
@diego04 I have question about friends model you created while we meeting, if A and B are friends in the table Friends, the initiator is A and reciever is B and friend_private = True, is that right?
jasonqi77
@jasonqi77
Mar 11 2015 04:28
add friend is not working, somthing wrong with it?
Kevin De Asis
@kevindeasis
Mar 11 2015 04:54
@chongyangye so you want things to be private to only friends
@chongyangye then yes
@jasonqi77 so essentially i didnt update friends yet.. Im still finishing it up
@jasonqi77 its working but ive only set it up that a is initiator and b is reciever
@jasonqi77 i still have to set it up so that when friend request is accepted b will also be initiator and a will be reciever
@jasonqi77 right now its only set up one way, because i have to change the Friend model to Friend Request Model...
@jasonqi77 essentially were still missing one model, but i cant refactor right now
@jasonqi77 what are you specifically trying to happen?
Kevin De Asis
@kevindeasis
Mar 11 2015 05:01
@jasonqi77 oh shit did you mean the url
yea its not done yet, well actually what do you mean?
jasonqi77
@jasonqi77
Mar 11 2015 05:02
well I click "add friends" and the page does not show up
btw, how to include your navigationbar.html to every page
what code should I add
Kevin De Asis
@kevindeasis
Mar 11 2015 05:15
@jasonqi77 ok gotcha, yea its not finished yet
@jasonqi77 you could put it in the issue tracker in github ;)

{% extends "index.html" %}

{%block head%}

{% include 'navigationbar.html' %}
{% endblock %}

{%endblock%}
audreyx
@audreyx
Mar 11 2015 05:35
@diego04 Being lazy... how to install coverage?
Kevin De Asis
@kevindeasis
Mar 11 2015 05:39
pip install coverage
@audreyx
audreyx
@audreyx
Mar 11 2015 05:41
thanks
Kevin De Asis
@kevindeasis
Mar 11 2015 06:01
@chongyangye @jasonqi77 so another requirement is that if i posted this: <b>XYX</b>
XYZ should be bold
that was the markdown lol
Jeff YE
@chongyangye
Mar 11 2015 06:05
every post?
or make I button say"markdown", if I click the post I make will markdown
Kevin De Asis
@kevindeasis
Mar 11 2015 06:06
@chongyangye do it however you like lol
Jeff YE
@chongyangye
Mar 11 2015 06:06
lol
Kevin De Asis
@kevindeasis
Mar 11 2015 06:06
@chongyangye as long as its there then that makes it a checkmark for the requirment
Jeff YE
@chongyangye
Mar 11 2015 06:07
ok
I am working on the post private to me,friends,FOAF right now, there is a problem I can't fix
type object 'Friends' has no attribute 'objects'
My way of doing this is get all post from Posts table and get all relations from Friends table, and check if the user and author are friends and the visiability is "Friend" in HTML
But when I run this friends =Friends.objects.all()
the error occurs
Kevin De Asis
@kevindeasis
Mar 11 2015 06:12
ok
to find your friends
its going to be complicated since its not completely done
but
allfriends = Friends.friendmanager.getFriends(request.user)
finds all your friends
            ourfriends = []
            for afriend in allfriends:
                if afriend.reciever = True:
                    afriendusername = afriend.reciever.get_username()
                    ourfriends.append('{s}'.format(s=afriendusername))
however remember that you have to set this in localhost:9000/admin
but when you add them as a friend it should be "a is friend with b"
and "b is friend with a"
Jeff YE
@chongyangye
Mar 11 2015 06:17
I didn't get you
Kevin De Asis
@kevindeasis
Mar 11 2015 06:17
ok
so first in the database
make friends
Jeff YE
@chongyangye
Mar 11 2015 06:17
set what in localhost:9000/admin
Kevin De Asis
@kevindeasis
Mar 11 2015 06:18
a friend b
and b friend a
Jeff YE
@chongyangye
Mar 11 2015 06:18
I understand the above about friends
Kevin De Asis
@kevindeasis
Mar 11 2015 06:18
and then
Jeff YE
@chongyangye
Mar 11 2015 06:18
I don't quite sure about set in localhost:9000/admin
what's that mean
Kevin De Asis
@kevindeasis
Mar 11 2015 06:19
you have to create the friends in the admin page
Jeff YE
@chongyangye
Mar 11 2015 06:19
okok
I see
thank you
Kevin De Asis
@kevindeasis
Mar 11 2015 06:19
and set approved request == true
Jeff YE
@chongyangye
Mar 11 2015 06:19
ok
BTW, where can I send friend request
Kevin De Asis
@kevindeasis
Mar 11 2015 06:20
then do something like this #find the user/authors friends
ourfriends = []
for afriend in allfriends:
if afriend.approvedrequest = True:
afriendusername = afriend.reciever.get_username()
ourfriends.append('{s}'.format(s=afriendusername))
in the browser?
im still finishing it up
but
you can follow someone
and then they should follow you
Jeff YE
@chongyangye
Mar 11 2015 06:20
ok
Kevin De Asis
@kevindeasis
Mar 11 2015 06:20
and you guys are friends
if its a mutual follow their registered as friends in the database
Jeff YE
@chongyangye
Mar 11 2015 06:22
ok
Let me try
Kevin De Asis
@kevindeasis
Mar 11 2015 06:22
fuck
masters broken im not sure if its me or not i didnt check the previous masters
wait is master working for you guys?
Jeff YE
@chongyangye
Mar 11 2015 06:24
Which part broken for you
Kevin De Asis
@kevindeasis
Mar 11 2015 06:25
nvm its working
one of the previous ones, but were good now
Jeff YE
@chongyangye
Mar 11 2015 06:26
Just want to remind you that if we do markdown, we need to add a coloum in Post model named "markdown" and we will set it's default value be False
ok
Kevin De Asis
@kevindeasis
Mar 11 2015 06:27
gotcha
Kevin De Asis
@kevindeasis
Mar 11 2015 06:45
@chongyangye @jasonqi77 can you guys do a pull?
and python manage.py makemigrations
and python manage.py migrate
just to make sure if someones passing a bad Database
Glenn Meyer
@gmeyer1
Mar 11 2015 07:00
Is it okay if I push some changes to admin.py?
Just finished making a number of changes there that make it way easier to do user admin and ties users and authors together better
jasonqi77
@jasonqi77
Mar 11 2015 07:02
finished markdown
Jeff YE
@chongyangye
Mar 11 2015 07:02
I finish the private to me friend and FOAF now
and I will push
Kevin are you still in SUB
@diego04
Glenn Meyer
@gmeyer1
Mar 11 2015 07:18
@/all Just making sure since I believe that 5:40 was mentioned at the meeting today, but it looks like our presentation tomorrow is at 5:20. Not sure if I misheard or if the time was changed between when we met with Ali and when he sent out the email.
Jeff YE
@chongyangye
Mar 11 2015 07:19
I will email him tomorrow morning
Glenn Meyer
@gmeyer1
Mar 11 2015 07:22
Sounds good. Also, was wondering if what's the in the readme right now might be better in the wiki? I've made a copy of it there for now as the wiki home page but that can be changed easily if we'd like to leave it in the readme. If we do want to move it to the wiki I can also split it into chunks and place them on separate pages.
Kevin De Asis
@kevindeasis
Mar 11 2015 07:36
@chongyangye hey
@chongyangye no i came home to eat
@chongyangye but i can go there again or wherever
Also
Links in the navbar is broken
Jeff YE
@chongyangye
Mar 11 2015 07:37
Me and Bowen went back to home
Markdown is done
Kevin De Asis
@kevindeasis
Mar 11 2015 07:38
sweet
Jeff YE
@chongyangye
Mar 11 2015 07:38
When you create post, there is a checkbox for markdown
Currently, UI and post part are done
I will like our docs to wiki tomorrow
Link
Kevin De Asis
@kevindeasis
Mar 11 2015 07:40
hey @chongyangye can you fill in the read me too
Jeff YE
@chongyangye
Mar 11 2015 07:40
Ok
audreyx
@audreyx
Mar 11 2015 07:41
IN unit test, I can not figure out how to check post data. Also for the friend part, maybe Kevin can help me fill in the gap.
Kevin De Asis
@kevindeasis
Mar 11 2015 07:42
just comment it out and let me know which ones they are
audreyx
@audreyx
Mar 11 2015 07:43
Yeah, I've already draw the outline using comment.
Kevin De Asis
@kevindeasis
Mar 11 2015 07:44
ok cool, i ll check them later or tomorrow
Jeff YE
@chongyangye
Mar 11 2015 07:45
Are there anything else you guys need me to do
Before I sleep
I will get up at 8:30
Kevin De Asis
@kevindeasis
Mar 11 2015 07:45
not really, but markdown is somewhat buggy, but its working
i could still see the html tags and i cant get to a link
but asides from that
were all good
thanks for the help
Jeff YE
@chongyangye
Mar 11 2015 07:46
Bowen did that, I will ask him to fix it tomorrow
Kevin De Asis
@kevindeasis
Mar 11 2015 07:46
ok sweet lol
Jeff YE
@chongyangye
Mar 11 2015 07:46
Good night guys
Kevin De Asis
@kevindeasis
Mar 11 2015 07:46
see ya man thanks good work
Jeff YE
@chongyangye
Mar 11 2015 07:47
You are welcome
audreyx
@audreyx
Mar 11 2015 07:49
Share some important discovery about unit test, not 100% sure but at least it is true through by experience: For every class, when you make an user+author for all the def tests, put them in a function called setUp (just like I did). And only by so, the other def can share the status that you are 'that' author. @diego04 What's more tricker, the function name must be EXACTLY setUp(self). @diego04
We shall sleep. Good night all.
Kevin De Asis
@kevindeasis
Mar 11 2015 07:51
@audreyx awesome
before you leave
can you put that in the git issues
@gmeyer1 ok i see the wiki cool
Glenn Meyer
@gmeyer1
Mar 11 2015 08:02
@diego04 One thing I'm a bit confused about which you may be able to answer for me is how the friend/follower databases are designed. I don't think I quite understand what the sentrequest, fof_private, friend_private, own_private, and remote_private fields are for
audreyx
@audreyx
Mar 11 2015 08:06
You ruin my dream Kevin (just kidding). Okay, I will make it in git issue then.
@diego04 Done
Kevin De Asis
@kevindeasis
Mar 11 2015 08:10
@gmeyer1 so those things are the one we just added during the meeting
they needed to implement posts right away and that was the fastest way to do them
fof_private means friend of friend private; if its true friends of friends cant see posts
friend_private that friend cant see their posts
remote private, if its true other nodes cant see that authors post
own_private i think they wanted that for hiding post for everyone
Glenn Meyer
@gmeyer1
Mar 11 2015 08:12
Why would that be built into the friend model and not the post model?
Kevin De Asis
@kevindeasis
Mar 11 2015 08:13
a default setting for the user profile
theres going to be those attributes as well for post
and then a post manager to manage authors and posts
Glenn Meyer
@gmeyer1
Mar 11 2015 08:15
If it's a default setting for the user profile, shouldn't it be in author? I'm just kind of confused as to why it is where it is.
Adding a section in the documentation for models and I think I've understood everything well enough to document it except that.
Kevin De Asis
@kevindeasis
Mar 11 2015 08:16
crap...
youre right
thats in the friends thing
one sec
let me just check their post functions
ok
fof_private would make things private for friends of friends
so if A and B are friends, if fof_private = true then fof cant see A's post
i dont know why own_private is their
Glenn Meyer
@gmeyer1
Mar 11 2015 08:19
But that should be entirely post dependent, shouldn't it
Kevin De Asis
@kevindeasis
Mar 11 2015 08:19
yes exactly, there gonna be one for that as well
so a specific post, can be hidden to a specific user
or multiple users
would that be problematic in the future
?
so, what we got is that we have different privacy settings.. all posts to a specific person, and one type of post for a specific person, and then later a global setting?
i cant think of a better way to do this right now, so if theres an efficient way please do tell us? but it might not get implemented for tomorrow
Glenn Meyer
@gmeyer1
Mar 11 2015 08:23
According to the project spec, it seems to say that privacy is set on a per post basis, not on a per friend basis which is why I'm confused as to why these privacy settings are in the friend model
Kevin De Asis
@kevindeasis
Mar 11 2015 08:23
ok let me check the requrement again one sec
Glenn Meyer
@gmeyer1
Mar 11 2015 08:23
Maybe I'm not understanding it properly, but it doesn't seem like these should be defined on a per user basis
The use cases say "posts I create can be X", not that these privacy settings are different for each friend the user has.
Kevin De Asis
@kevindeasis
Mar 11 2015 08:25
yup def misread that during the meeting
youre right
ok can you put that in the issue tracker?
Glenn Meyer
@gmeyer1
Mar 11 2015 08:26
Ok, adding it now
Kevin De Asis
@kevindeasis
Mar 11 2015 08:27
if you want to put those attribute for the author go for it. then you or someone else can make the managers
that was a really good catch though
Glenn Meyer
@gmeyer1
Mar 11 2015 08:29
So those fields were just for the default settings, correct?
Kevin De Asis
@kevindeasis
Mar 11 2015 08:32
those fields in the Friends were for the default settings, yes. Although, bowen and jeff used those attributes already
Glenn Meyer
@gmeyer1
Mar 11 2015 08:32
Also, there's a comment in the friend model that says "this can be removed due to the following use case". What does this refer to?
And I can take a look at fixing that model in the morning, not sure I want to tackle it right now as I'd have to dig through their code while they're asleep.
Kevin De Asis
@kevindeasis
Mar 11 2015 08:33
actually i dont see those attributes being used, so you might wanna double check with those guys
Glenn Meyer
@gmeyer1
Mar 11 2015 08:33
Ok, I'll leave it until morning then, no worries.
Kevin De Asis
@kevindeasis
Mar 11 2015 08:34
Ok, so dont remove those yet.
essentially that was suppose for a refactoring that didnt hapen yet
the friend model we have right now should be FriendRequest Model
and then there should be another actual friend model
So, theres this big issue of refactoring thats obvious
Theres a big issue with the friend model that happened because it was rushed
the model that suppose to be there are these
Friend FriendRequest Follow FollowManager FriendManager Post PostManager AuthorPostManager
Kevin De Asis
@kevindeasis
Mar 11 2015 08:39
But, youre correct, certainly the model we have right now def needs alot of refactoring
Glenn Meyer
@gmeyer1
Mar 11 2015 21:52
@/all Just to make sure everyone is on the right track, our presentation appears to be at 5:20. Not entirely sure on the location but it will either be in the lab or one of the breakout rooms in comp sci. Ali is in 3-26 at the moment so we may be in there.
Jeff YE
@chongyangye
Mar 11 2015 22:44
@/all HI guys, Joe's group just finished demo with TA, half of the requirements means requirements, not UC
Dylan Cassidy
@DylanCassidy
Mar 11 2015 22:45
Seems like none of the groups are prepared then...
Glenn Meyer
@gmeyer1
Mar 11 2015 22:48
@/all Well, that's kind of terrifying.
Jeff YE
@chongyangye
Mar 11 2015 22:49
there is one group did very good
they almost done with the requirements
Joe's group done like 9/17 requirements
Glenn Meyer
@gmeyer1
Mar 11 2015 22:52
I had other groups who've met with him tell me it was the use cases
This is all really confusing
Let's just hope they go easy on us with marking
Jeff YE
@chongyangye
Mar 11 2015 22:53
Oh really, that's good
just ask TA about this
the TA doesn't know anything
Glenn Meyer
@gmeyer1
Mar 11 2015 22:53
Yeah, too much conflicting information going around.
Jeff YE
@chongyangye
Mar 11 2015 22:53
he doesn't even know the deadline for project part2
Glenn Meyer
@gmeyer1
Mar 11 2015 22:54
Oh. Well.
Lets hope he's marking it then, if he has no what he's doing we should all get 100%!
Jeff YE
@chongyangye
Mar 11 2015 22:54
He told Joe's group to finish the rest requirements before the meeting in next week, and they guys crazy
Glenn Meyer
@gmeyer1
Mar 11 2015 22:55
Well, let's just see how it goes. Also, requirements don't need to be completed until part 3...
Jeff YE
@chongyangye
Mar 11 2015 22:56
ok
Kevin De Asis
@kevindeasis
Mar 11 2015 23:17
heading there