Skip to content

Remove Opts and include_schedules from Departures Query config#71

Merged
robbie-sundstrom merged 1 commit intomainfrom
rs/remove-include-schedules
Nov 5, 2025
Merged

Remove Opts and include_schedules from Departures Query config#71
robbie-sundstrom merged 1 commit intomainfrom
rs/remove-include-schedules

Conversation

@robbie-sundstrom
Copy link
Contributor

Asana task: Screens: Remove include_schedules configuration

  • include_schedules has been removed in screens codebase
  • include_schedules option has been removed from screen configs in dev, dev-green, and prod
  • documentation in Notion has been updated

With all that done, should be good to remove from here!

@robbie-sundstrom robbie-sundstrom requested a review from a team as a code owner November 5, 2025 19:09
@robbie-sundstrom robbie-sundstrom changed the title Remove Opts and include_schedules from Departures Query config Remove Opts and include_schedules from Departures Query config Nov 5, 2025
Copy link
Contributor

@deanshi deanshi left a comment

Choose a reason for hiding this comment

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

🚀

@@ -1,16 +0,0 @@
defmodule ScreensConfig.Departures.Query.Opts do
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 🎆

Is this the opts that matches the opts type in departure.ex? Does this mean that we could in the future clean up all of the opts usage within departure.ex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No that's a different opts that includes the now time for testing purposes. I also added an additional field to that opts in my PR to remove include_schedules, so it's still necessary. The fetch in departure.ex is called by multiple places, which is why that additional field is necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually did catch one additional reference to Query.Opts that I removed in departures.ex, which is updated in this PR

@robbie-sundstrom robbie-sundstrom merged commit 5982c53 into main Nov 5, 2025
14 checks passed
@robbie-sundstrom robbie-sundstrom deleted the rs/remove-include-schedules branch November 5, 2025 20:40
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.

2 participants