vrtsev / lifelog Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
url: lifelog.com.ua/diary/categories
location: diary/categories > create/update
bug: There is no validation error box when creating/deleting category
expected: When diary category isn't valid then page should display validation error box
url: /objectives/categories/9
location: objectives/categories > new/edit
bug: There is no field validation for goal category
expected: Field changes color to red and shows error message before form submit
url: http://lifelog.com.ua/diary/posts/7
location: diary/posts > show (comments block)
issue: Output of comment content in diary post is not formatted for html.
expected: Output displays correctly including line breaks, paragraphs etc
solution: apply '.simply_format' or use method 'raw'
url: /posts/1/comments
error: 500
logs:
2017-08-27T14:58:36.508213+00:00 app[web.1]: I, [2017-08-27T14:58:36.508122 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Started POST "/posts/1/comments" for 37.229.149.101 at 2017-08-27 14:58:36 +0000 2017-08-27T14:58:36.510698+00:00 app[web.1]: I, [2017-08-27T14:58:36.510594 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Processing by Publications::CommentsController#create as HTML 2017-08-27T14:58:36.510841+00:00 app[web.1]: I, [2017-08-27T14:58:36.510784 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Parameters: {"utf8"=>"✓", "authenticity_token"=>"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==", "comment"=>{"content"=>"2"}, "commit"=>"Отправить", "post_id"=>"1"} 2017-08-27T14:58:36.518153+00:00 app[web.1]: D, [2017-08-27T14:58:36.518039 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.527477+00:00 app[web.1]: D, [2017-08-27T14:58:36.527361 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Visit Load (3.4ms) SELECT "visits".* FROM "visits" WHERE "visits"."visit_token" = $1 ORDER BY "visits"."id" ASC LIMIT $2 [["visit_token", "a0e30a91-6425-4ae5-aef9-3acab003d489"], ["LIMIT", 1]] 2017-08-27T14:58:36.531397+00:00 app[web.1]: D, [2017-08-27T14:58:36.531282 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.8ms) BEGIN 2017-08-27T14:58:36.535518+00:00 app[web.1]: D, [2017-08-27T14:58:36.535412 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] SQL (2.0ms) INSERT INTO "ahoy_events" ("user_id", "name", "properties", "time") VALUES ($1, $2, $3, $4) RETURNING "id" [["user_id", 1], ["name", "publications/comments > create"], ["properties", "{\"utf8\":\"✓\",\"authenticity_token\":\"nCmJ92/nudW1/keE1O67lX3hBUcY7tb97FsL6t+bUpf3Nc579aiUIqmKZspJJLz7dRWND4gJNGCZxzN/1D0Wtw==\",\"comment\":{\"content\":\"2\"},\"commit\":\"Отправить\",\"controller\":\"publications/comments\",\"action\":\"create\",\"post_id\":\"1\"}"], ["time", 2017-08-27 14:58:36 UTC]] 2017-08-27T14:58:36.538293+00:00 app[web.1]: D, [2017-08-27T14:58:36.538193 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (2.1ms) COMMIT 2017-08-27T14:58:36.554715+00:00 app[web.1]: D, [2017-08-27T14:58:36.554592 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (3.3ms) BEGIN 2017-08-27T14:58:36.547633+00:00 app[web.1]: D, [2017-08-27T14:58:36.547511 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Post Load (6.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] 2017-08-27T14:58:36.559756+00:00 app[web.1]: D, [2017-08-27T14:58:36.559634 #4] DEBUG -- : [92e2408a-68e5-424b-a840-dfcf57c87406] (0.9ms) ROLLBACK 2017-08-27T14:58:36.567861+00:00 app[web.1]: F, [2017-08-27T14:58:36.567781 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.566101+00:00 app[web.1]: I, [2017-08-27T14:58:36.565996 #4] INFO -- : [92e2408a-68e5-424b-a840-dfcf57c87406] Completed 500 Internal Server Error in 55ms (ActiveRecord: 22.4ms) 2017-08-27T14:58:36.567933+00:00 app[web.1]: F, [2017-08-27T14:58:36.567869 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] ActionView::MissingTemplate (Missing template publications/comments/new, publications/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder, :haml]}. Searched in: 2017-08-27T14:58:36.567935+00:00 app[web.1]: * "/app/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/devise-4.2.0/app/views" 2017-08-27T14:58:36.567936+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/semantic-ui-sass-2.2.11.0/app/views" 2017-08-27T14:58:36.567937+00:00 app[web.1]: * "/app/vendor/bundle/ruby/2.3.0/gems/ckeditor-4.1.6/app/views" 2017-08-27T14:58:36.567996+00:00 app[web.1]: F, [2017-08-27T14:58:36.567936 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] 2017-08-27T14:58:36.567938+00:00 app[web.1]: ): 2017-08-27T14:58:36.568063+00:00 app[web.1]: F, [2017-08-27T14:58:36.568009 #4] FATAL -- : [92e2408a-68e5-424b-a840-dfcf57c87406] app/controllers/publications/comments_controller.rb:18:in
create'`
case:
expected: submit form, send comment and redirect to commented post
url: /posts/new
location: publications/posts > new, index, show
issue: User can enter infinite title for post in publications
expected: Add validation for post title and restrict amount of symbols
url: /posts/3/edit
location: publications/posts > edit
case:
issue: You can see that category in select box points to other category. If you submit post form - then it category will be applied to post
expected: Empty select box if post's category is deleted
url: http://lifelog.com.ua/diary/posts
location: diary/categories > destroy
bug: There is no dependent destroy of diary posts when deleting diary category
expected: When deleting diary category, all dependent posts should be deleted too
solution: add dependent: :destroy
to diary category model
url: http://lifelog.com.ua/diary/posts
location: diary/posts > index
bug: Diary posts grouped by date but displaying in ascending order. When you create 1 more post in the same date, first will be older post and only then a new post
expected: Posts displays in descending order
url: http://localhost:3000/users/edit
location: users/registrations_controller > update_resource
case: enter different password & password confirmation -> password saves and no error are shown to user
issue:
expected:
solution: write condition in Users::RegistrationsController#update_resource
issue: Selected color not applying to category during create action
expected: After category create, it color matches selected color during create action
url: /users/1/posts
code location: publications/users/posts > index
case: I as registered user on site with id 1 can visit my page in guest mode (ex. /users/1/posts) and can click button 'Subscribe'.
issue: User can subscribe to himself
expected: hide subscribe button if page of current user == page of visited user OR redirect user from own guest page to own default page with posts
url: http://lifelog.com.ua/news_feed
location: news_feed
issue: Pinned posts has default border color
expected: Border color is red (pinned state)
url: http://lifelog.com.ua/tags/Lifelog, http://lifelog.com.ua/news_feed
location: news_feed > index, publications/tags > index
issue: hidden posts are visible in news feed and in tag search
expected: hidden posts aren't visible
url: /diary/posts/9
location: diary/comments > new/edit
bug: There is no field validation for diary comment
expected: Field changes color to red and shows error message before form submit
url: http://lifelog-staging.herokuapp.com/news_feed
code location: news_feed > index
case: I as guest visit url '/news_feed' and then see exception
issue: Exception if not logged in and visit pages for logged users
expected: Redirect guest to login page from main site pages for logged users
url: /search?utf8=%E2%9C%93&query=%D0%B0%D0%BF&button=&post%5Bvisible%5D=on
location: publications/search > index'
issue: Invalid filter option 'Скрытые' for showing only visible posts
expected: Filter option 'Видимые' for showing only visible posts
Case:
Bug: News feed page throws error 'Undefined method for nil class'
File location: 'app/views/news_feed/_posts.html.erb'
Code fragments:
image_tag(post.user.photo_url, class: 'img-circle w-32 m-r pull-left') if post.user
link_to post.title, (post.user ? user_post_path(post.user.id, post) : '#' )
post.user ? post.user.name : 'Удален'
Expected: There is a 'placeholder user' with name 'Deleted' which will be displayed insted real deleted user. You should implement decorators or use 'gem Cells' which will give you ability to setup logic for view templates of application
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.