Git Product home page Git Product logo

lifelog's People

Contributors

vrtsev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lifelog's Issues

Posts counter includes hidden posts

url: /anatoliy
location: publications/users/posts > index

issue: I can visit page of other user and can see posts counter including hidden posts
expected: Show posts counter without hidden posts
3

Default tab selection leaves when changing tab in search

url: /search?utf8=%E2%9C%93&query=%D0%B0%D0%BF&button=&post%5Bcommentable%5D=on
location: publications/search > index

issue: Default tab selection leaves when changing tab in search
expected: Standart behavior when changing tab

2017-08-27 18-40-32

Wrong posts counter in category title

url: /users/anatoliy/categories/3
location: publications/USERS/categories > show

issue: When i visit category page of lifelog user, I can see wrong post counter only if category includes hidden posts
expected: Scope of category posts counter is only visible posts
2017-08-27 17-12-28

Infinite title for publication category

url: /categories/2
location: publications/categories > index, show

issue: User can enter a huge title for category
expected: There is validation for numericality of category title
2017-08-27 17-05-02

500 error when sending comment

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:

  1. Create post with enabled comments
  2. Then turn off comments
  3. Again turn on comments
  4. Submit new comment

expected: submit form, send comment and redirect to commented post

Wrong category select box selection on edit post page if post category is deleted

url: /posts/3/edit
location: publications/posts > edit

case:

  1. Create category
  2. Create post and assign it to created category
  3. Delete category
  4. Visit post edit page

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

User can update profile when password doesn't match password confirmation

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:

  1. User can update profile when password doesn't match password confirmation
  2. No error are shown to user
  3. No field current password

expected:

  • When user enters new password (and pass confirmation and current password) -> Update password with validations
  • When user leaves password fields empty -> Update user profile without password

solution: write condition in Users::RegistrationsController#update_resource

User can subscribe to himself

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

There is no field validation for diary comment

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

Invalid filter name in posts search

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

View errors when calling methods on deleted user of the post

Case:

  1. Login

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

Empty blocks in news feed

location: news_feed > index

issue: empty blocks if no content
expected: hide EACH BLOCK if it hasn't content or show placeholder

1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.