These are chat archives for Deadarius/SugoiOverflow

8th
Mar 2015
Sandy987
@Sandy987
Mar 08 2015 00:11
ahhh
port 3000
i didn't know that
all gravy now
Deadarius
@Deadarius
Mar 08 2015 00:23
seet
sweet
Let me know if there are any problems, I made quite a few changes
Sandy987
@Sandy987
Mar 08 2015 01:10
ok, i got typeahead search working (finally, the documentation for it is pretty crap)
what should I work on next? I'll be back within a couple of hours
Deadarius
@Deadarius
Mar 08 2015 01:32
you can work on upvoting/downvoting answers
and marking them as correct
Deadarius
@Deadarius
Mar 08 2015 01:41
Than you can also add functionality to subsribe to questions
all this is already implemented in api
but be aware that there is no validation for any actions at the moment
So, don't let user do anything wrong on client
Deadarius
@Deadarius
Mar 08 2015 02:37
There is now route /api/tags/top - you can use it to retrieve tags suggestions
Also, can someone please configure our tags control to not accept spaces in tags and add new tag on space keypress?
jackyzhen
@jackyzhen
Mar 08 2015 03:42
done
Sandy987
@Sandy987
Mar 08 2015 04:19
i'll begin working on the upvote/downvote
Deadarius
@Deadarius
Mar 08 2015 04:26
Sweet
Sandy987
@Sandy987
Mar 08 2015 05:02
added upvote/downvote support, along with some rudimentary (pretty buggy really) checks to see if the user has already voted
i'll continue working on it tonight, I've got some other shit to do (surprisingly busy day today)
Deadarius
@Deadarius
Mar 08 2015 05:28
Jacky, are you here?
Sandy987
@Sandy987
Mar 08 2015 06:25
For future thought, our current implementation of upvotes/downvotes is quite flawed. A user can have both an upvote and downvote for the same question (clearly it should be exclusive). Doesn't need to be fixed now, but something to consider
Deadarius
@Deadarius
Mar 08 2015 06:30
Bro, told you, it has no validation, you should check all of this stuff on client for now.
You can upvote answer twice at the moment lol
Sandy987
@Sandy987
Mar 08 2015 07:01
Fixed a couple more voting bugs. Still not 100% (you can't un-upvote or un-downvote, this leads to some awkward situations). I've also added subscribe functionality (and it checks if you already subscribed). However, unsubscribing is not yet implemented
Deadarius
@Deadarius
Mar 08 2015 07:03
That's ok, will add it later a bit
Sanchit, can you implement notifications ui?
So that when you click on it nice panel slides in and shit
Going tro implement search functionality now
Deadarius
@Deadarius
Mar 08 2015 07:14
Do you have trouble with gulp dev sometimes? Watch sometimes stops working apparently. If for some reason you find that scripts or tempaltes no longer loaded - just try to restart it
Hey, someone did try to implement search ui already? Doesn't work for me.
Sandy987
@Sandy987
Mar 08 2015 07:25
I did a VERY basic type-ahead for the search, it seems to only filter based on actual words (you have to type a whole word). This seems to be a server-side thing
Also, pressing enter doesn't do anything, you have to click it >.>
Deadarius
@Deadarius
Mar 08 2015 07:29
Click what?
Sandy987
@Sandy987
Mar 08 2015 07:33
the search result? It seems to be a bit...buggy
sometimes it matches, sometimes it doesn't
Deadarius
@Deadarius
Mar 08 2015 07:34
i cannot see search results
Sandy987
@Sandy987
Mar 08 2015 07:34
type Lorem
does that get anything?
Deadarius
@Deadarius
Mar 08 2015 07:35
no
Sandy987
@Sandy987
Mar 08 2015 07:35
sometimes it takes a while too
damnit
i dunno
i'm literally just passing the string directly to server
and processing the result
Deadarius
@Deadarius
Mar 08 2015 07:35
service gets results
but nothing displayed
typeahead-template="questionSearchTemplate.html"
Sandy987
@Sandy987
Mar 08 2015 07:36
oh
OH
dude
thats odl
old
Deadarius
@Deadarius
Mar 08 2015 07:36
Pretty sure it expects actual template
Sandy987
@Sandy987
Mar 08 2015 07:36
you need to sync
Deadarius
@Deadarius
Mar 08 2015 07:36
I have the latest
Sandy987
@Sandy987
Mar 08 2015 07:36
its supposed to be typeahead-template-url
and its also meant to be /views/shared/questionSearchTemplate.html
Deadarius
@Deadarius
Mar 08 2015 07:36
are you sure yo commited this template?Can you send it to me or recommit it?
Sandy987
@Sandy987
Mar 08 2015 07:37
typeahead-template-url="/views/shared/questionSearchTemplate.html"
im sure i have
there are no uncommited changes
Deadarius
@Deadarius
Mar 08 2015 07:38
wait
What the fuck is header.html?
Sandy987
@Sandy987
Mar 08 2015 07:38
i was confused
Deadarius
@Deadarius
Mar 08 2015 07:38
If we have header in index.html
Sandy987
@Sandy987
Mar 08 2015 07:38
i made changes to that first
but its not supposed to be there
i should've deleted it
whoops
Deadarius
@Deadarius
Mar 08 2015 07:38
ok
but still
doesn't work :(
Sandy987
@Sandy987
Mar 08 2015 07:39
:/
Deadarius
@Deadarius
Mar 08 2015 07:39
I get error in ui-bootstrap-tpls.js:3602 once I start typing
Sandy987
@Sandy987
Mar 08 2015 07:44
what errror?
Deadarius
@Deadarius
Mar 08 2015 07:46
Do not delete header btw, I will include in in indexz
TypeError: Cannot read property 'length' of undefined
at ui-bootstrap-tpls.js:3602
at processQueue (angular.js:13189)
at angular.js:13205
at Scope.$get.Scope.$eval (angular.js:14401)
at Scope.$get.Scope.$digest (angular.js:14217)
at Scope.$get.Scope.$apply (angular.js:14506)
at NgModelController.$$debounceViewValueCommit (angular.js:23263)
at NgModelController.$setViewValue (angular.js:23235)
at HTMLInputElement.listener (angular.js:19656)
at HTMLInputElement.eventHandler (angular.js:3014)
what is your version of this file?
Sandy987
@Sandy987
Mar 08 2015 07:49
oh bullshit
i fixed that
when you include header
you need to actually use whats in index.html
header.html is out of date
i've found a good open source directive to have a notifications shade/slider
once you check in changes to header, i can work it in
Deadarius
@Deadarius
Mar 08 2015 07:59
no
Problem was that search function supposed to return promise
It is working for me now
I copied stuff in header.html and included it on index.html
please pull
Deadarius
@Deadarius
Mar 08 2015 08:04
Can you please try make it jump to question on enter?
Damn. I like this typeahead, but it doesn't seem to be working the way we need
I think we should just go with simple search box which redirects to search results
And add tags to typeahead now
later if we will have time we will add often used words
On it now
Sandy987
@Sandy987
Mar 08 2015 08:13
whoa whoa what
so
uh
what should i do now?
Deadarius
@Deadarius
Mar 08 2015 08:23
Notifications?
I thought that's what you're working on
Sandy987
@Sandy987
Mar 08 2015 08:26
ok
i just got confused
when you said i should try to do all this other stuff
Deadarius
@Deadarius
Mar 08 2015 08:27
No no, I mean I am doing it
Sorry for confusing
Sandy987
@Sandy987
Mar 08 2015 08:29
we don't have any server side notification stuff yet right?
i'll just mock up some data services
Deadarius
@Deadarius
Mar 08 2015 08:32
No, we don't, I am going to work on it soon
Deadarius
@Deadarius
Mar 08 2015 10:06
Yo, Sanchit. How is notifications thing going on?
Deadarius
@Deadarius
Mar 08 2015 10:24
Giang, are you here?
Sandy987
@Sandy987
Mar 08 2015 19:38
I'm going to work on improving upvate/downvote