swsnu / swpp2019-team15 Goto Github PK
View Code? Open in Web Editor NEWaskAT - ask a kat about that
askAT - ask a kat about that
Our API in feature branch uses custom user models, but it seems like using the default user model provided by django makes things easier. (e.g. hashing passwords and so on)
https://docs.djangoproject.com/en/2.2/ref/contrib/auth/#django.contrib.auth.models.User
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-custom-user-model
What are your thoughts?
We currently use boilerplate ifs in our view.py in order to check validity of the request and user logins. I think it is a better to use decorators to write DRY code. These are example snippets of a decorator.
def check_request(view_func):
def inner(*args, **kwargs):
try:
return view_func(*args, **kwargs)
except (KeyError, json.JSONDecodeError) as e:
return HttpResponseBadRequest(str(e))
return inner
def login_required(view_func):
def inner(request, *args, **kwargs):
if request.user.is_authenticated:
return view_func(request, *args, **kwargs)
else:
return HttpResponse(status=401)
return inner
There seems to be an error whereby the profile cannot be viewed if location has not been initialized
cannot reply to question
Add user ranking system based on accumulated points.
We should either store user consent in server side, or browser side, so that settings are not reset, and respected.
question시 위치를 지정하지 않는 경우는 제출이 안되는데 위치만 지정하고 오른쪽 버튼들을 클릭하지 않은 경우는 제출이 됩니다.
그리고 위치를 지정하지 않아 제출이 안 될 경우 메세지같은걸 띄워주면 좋을 것 같습니다.
Code style
Wrong design
Low coverage
Can we delete some branches that are unused?
Side button이 간헐적으로 먹통이 됩니다.
An incentive for an user to answer a question. (Karma system, points, achievements...)
A way to detect malicious users. (how off is the user's answer from the average?)
What to do when there are no replies from users?
ML.
As requested, I will add travis to dev branch.
In pull request, you can check if my codes work well with your own browser.
When I tested code, it worked well at firefox.
When you clicked on answer button on main page you can go to answer page.
And if you answer to that question the answer is sent to question sender.
Multiple same questions could be registered.
At main page if we click question in 'My Questions', the user can check that question.
So how about adding 'Past Questions' button in main page which renders past questions list.
If user clicks one of past question button then it renders like Detail Page.
I want to hear your opinions.
위치정보를 허용하지 않고 검색을 통해 관악구청이 조용한지 게시해봤는데 작동하지 않았습니다.
피드에 있는 질문을 선택했을 때 어떤 질문은 제대로 나오지만, 어떤 질문은 클릭했을 때 빈 화면으로 나옵니다.
어떤 조건에서 그런지 몰라서 더 자세한 사항은 말씀드리지 못할 거 같아요.
Let's add bootstrap to our frontend to make the interface a bit easier on the eyes :)
I think it would be convenient to be able to see how many answers a question has in the Question feed. What does everyone think?
Instead of storing authorized data in frontend, ask backend if I am authorized.
Create custom errors pages instead of just displaying "Not Found"
It takes around 0.02~0.04s to accomplish post question,
But it takes 0.7s to submit an answer. I don't know why, and am looking into it.
Currently, we can only place a marker at a map via search, but I think it would be nice to move the map with dragging, and tapping to create a marker.
When a Question is posted by a user to to the backend or an Answer to a Question has been posted, we need to implement a feature that can send web push notifications to clients in the target location. What are your thoughts on using websockets with Redis or Firebase Cloud Messaging to implement this feature?
Firebase
https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support
follow를 눌렀을 때 아무런 이펙트가 등장하지 않아서 follow가 된 건지 확인이 어려운 것 같습니다. 뭔가 간단한 이펙트를 넣어주면 좋을 것 같습니다!
사이드바가 손으로 누르지 않아도 옆으로 들어가졌으면 좋겠습니다.
가끔씩 answer버튼을 누르면 빈 화면이 나옵니다
Current UI layout doesn't show up properly in mobile view
Didn't we have travis in our install apps???
In branch features/notify_users,
I have implemented a skeleton code that sends notification to every user that have subscribed upon question creation. ( The subscription check is done by send_push)
Can you please improve this method (better name? check if user is near the question's target location, ....)
and also implement method to be called upon answer creation? I believe the user pool to be notified upon answer creation is simple, lets just send to the owner of the question. (We might extend it by letting other users subscribe to a question they will be interested in.... but that's sometime later)
현재 구현이 안된 상태라서 작동이 안되는 건지 모르겠으나 사이드바의 기능이 동작하지 않는 것으로 보입니다.
I found there is no subscribe button in question page, though I remember when it existed.
I wonder if it has some problem so it was deleted from dev branch or not.
Was it deleted by fault or on purpose?
Yesterday we decided that the component that gets user location should exist in every page.
Now I think getting user location only in the main page and the map page is a better idea, since
What are your thoughts?
It will be much better if there is marker on location which shows question_location.
I tried reusing our GoogleMap by transferring location information from NewAnswer.js, but it was not that easy.
I will try it again tomorrow if nobody has interest on it.
Our stored time is not KST, so there is a need to change it to KST.
Currently the Question and Answer view cards automatically redirect to Question detail page on click. It's prone to users being unintentionally redirected when trying to highlight text or accidental clicking which can be a bit annoying.
Perhaps we can restrain the onClick function to only the Question text instead and allow the user to view a person's profile by clicking on the username. What do you guys think?
As of now, when a question is answered, we only send a notification to the user who wrote the question.
However, I think it would be nice if users can 'follow' a question they are interested in from the main page.
For mac OS
pip install mysqlclient
Finally,
sudo mysql -e "CREATE DATABASE Askat_DB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sudo mysql -e "CREATE USER 'Askat'@'localhost' IDENTIFIED BY '1234';"
sudo mysql -e "GRANT ALL PRIVILEGES ON Askat_DB.* to 'Askat'@'localhost';"
sudo mysql -e "GRANT ALL PRIVILEGES ON test_Askat_DB.* to 'Askat'@'localhost';"
sidebar를 연 상태에서 클릭하면 안먹히네요
sidebar button들이 잘 작동하지 않네요...
I read codes in models.py and I saw some examples about getting signal between models by using decorator.
I checked examples on Google separated those related codes to signals.py.
How about separating like those implementation? It looks better and will be easy to manage codes for future implementation.
https://simpleisbetterthancomplex.com/tutorial/2016/07/28/how-to-create-django-signals.html
Let's implement redirection with PrivateRoute
How about using private router?
Originally posted by @Minji1234 in #9
선택을 하지 않아도 poll을 제출할 수 있네요
끊임 없이 뒤로가서 사인업페이지까지 뒤로가기가 됩니다.
Follow below.
Go to swpp2019-team15/oga/backend/
Now you can run backend.
로그인 후 back
버튼을 누르면 로그아웃됩니다.
I think this information can be safely stored in local storage.
The functions that require the permissions will only execute when the permissions are valid.
Add rating field to Answer model
Prevent users from making duplicate ratings
Users can change ratings made on an answer
Add point system based on answer ratings
Display user rank based on accumulated points
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.