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

chore: remove Solari screen type and "v1" code #2280

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

digitalcora
Copy link
Contributor

@digitalcora digitalcora commented Oct 31, 2024

  • Remove the solari screen type; we have no remaining screens of this type in the wild.

  • Remove the "v1" screen page/API endpoints; there are now no remaining v1 screen types.

  • Remove a substantial amount of code that was only used by v1 screens (likely not all of it, but there are few reliable tools available for detecting unused "public" code in Elixir).

  • Remove the solari_large_v2 screen type; this was added a long time ago in anticipation of the "large" Solari layout being ported to the v2 framework, but no real functionality was ever added to it, and the only screens of this type in the wild are now permanently offline and waiting to be decommissioned.


@digitalcora digitalcora marked this pull request as ready for review October 31, 2024 18:13
@digitalcora digitalcora requested a review from a team as a code owner October 31, 2024 18:13
Copy link
Contributor

@cmaddox5 cmaddox5 left a comment

Choose a reason for hiding this comment

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

Love it. Thanks for taking the time to do this.


def index(conn, _params) do
render_not_found(conn)
end

def show_image(conn, %{"filename" => filename}) do
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know what uses this endpoint? Curious if we can just get rid of this file altogether.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is definitely being used somehow in the wild, based on logs (search for GET /image/), so I'm inclined not to mess with it for now.

Base automatically changed from cfg-remove-old-eink to main November 1, 2024 15:11
* Remove the `solari` screen type; we have no remaining screens of this
  type in the wild.

* Remove the "v1" screen page/API endpoints; there are now no remaining
  v1 screen types.

* Remove a substantial amount of code that was only used by v1 screens
  (likely not all of it, but there are few reliable tools available for
  detecting unused "public" code in Elixir).

* Remove the `solari_large_v2` screen type; this was added a long time
  ago in anticipation of the "large" Solari layout being ported to the
  v2 framework, but no real functionality was ever added to it, and the
  only screens of this type in the wild are now permanently offline and
  waiting to be decommissioned.
@digitalcora digitalcora merged commit cd49ce0 into main Nov 1, 2024
11 checks passed
@digitalcora digitalcora deleted the cfg-remove-solari branch November 1, 2024 15:33
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