Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise exception in UserTimelineController if no user with the nickname provided #11465

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

fblupi
Copy link
Member

@fblupi fblupi commented Aug 9, 2023

🎩 What? Why?

Raise ActionController::RoutingError exception in UserTimelineController if no user with the nickname provided

📌 Related Issues

Testing

  1. Without login into the system, go to /profiles/non_existing_user_nickname/timeline and see a 404 Not Found page shown.

♥️ Thank you!

@fblupi fblupi added type: bug Issues that describe a bug module: core labels Aug 9, 2023
@fblupi fblupi requested a review from a team August 9, 2023 11:52
Copy link
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ... but i would change the condition to make it more clear

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
@fblupi fblupi requested a review from alecslupu August 9, 2023 15:17
Copy link
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alecslupu alecslupu added type: fix PRs that implement a fix for a bug and removed type: bug Issues that describe a bug labels Aug 9, 2023
@alecslupu alecslupu added this to the 0.27.5 milestone Aug 9, 2023
@alecslupu alecslupu merged commit d2f2766 into release/0.27-stable Aug 9, 2023
45 checks passed
@alecslupu alecslupu deleted the fix/11464 branch August 9, 2023 16:03
@alecslupu alecslupu linked an issue Aug 9, 2023 that may be closed by this pull request
fblupi added a commit that referenced this pull request Aug 10, 2023
…ame provided (#11465)

* Raise exception in timeline controller if no user with the nickname provided

* Update decidim-core/app/controllers/decidim/user_timeline_controller.rb

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
alecslupu added a commit that referenced this pull request Aug 14, 2023
…he nickname provided' to v0.26 (#11470)

* Raise exception in `UserTimelineController` if no user with the nickname provided (#11465)

* Raise exception in timeline controller if no user with the nickname provided

* Update decidim-core/app/controllers/decidim/user_timeline_controller.rb

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>

* Fix spec

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
@andreslucena andreslucena added the no-backport Pull Requests that should not be backported label Nov 2, 2023
@andreslucena
Copy link
Member

Adding the no-backport label so I can exclude it from the backports_checker script, as this isn't happening in develop and was already backported to v0.26 by @fblupi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core no-backport Pull Requests that should not be backported type: fix PRs that implement a fix for a bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Error accessing user timeline
3 participants