Skip to content

Conversation

@DrewProebstel
Copy link
Contributor

@DrewProebstel DrewProebstel commented Nov 6, 2025

What was done?

  • creates a concern that redirects to root page when the fyst_sunset_pya_live flipper is enabled

How to test?

  • Enable fyst_sunset_pya_live

@github-actions
Copy link

Heroku app: https://gyr-review-app-6104-4916c0a62b34.herokuapp.com/
View logs: heroku logs --app gyr-review-app-6104 (optionally add --tail)

Copy link
Contributor

@powersurge360 powersurge360 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

Copy link
Contributor

@mrotondo mrotondo left a comment

Choose a reason for hiding this comment

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

One non-blocking question about how this interacts with before_actions from other concerns.

module Questions
class QuestionsController < ::Questions::QuestionsController
include StateFile::StateFileIntakeConcern
include StateFile::FystSunsetRedirectConcern
Copy link
Contributor

@mrotondo mrotondo Nov 13, 2025

Choose a reason for hiding this comment

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

(I'm not sure if this how multiple before_actions from different concerns work, but)
Should this go before StateFileIntakeConcern, so that this redirect applies even if they try and load a question page with no logged-in intake (i.e. if require_state_file_intake_login fails)

Note that this should be very uncommon, and so I don't think this is a blocking question one way or another.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good call. I'm not sure if it's first in, first out or last in, first out in setting up before_actions. Looks like it's first in, first out for before_action and last in, first out for after_action. Seems like it's worth putting first in inheritance just for maximum safety.

https://reganchan.ca/blog/ordering-of-filters-in-rails-controllers/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call it is first in first out and it was causing a problem with the redirect

@DrewProebstel DrewProebstel merged commit fa13a9c into main Nov 14, 2025
8 checks passed
@DrewProebstel DrewProebstel deleted the FYST-2082-redirect-all-existing-ty-24-fyst-ur-ls-to-fileyourstatetaxes-org branch November 14, 2025 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants