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

Remove Flask-Sitemap package #1139

Closed
wants to merge 4 commits into from
Closed

Remove Flask-Sitemap package #1139

wants to merge 4 commits into from

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Dec 18, 2024

Description of Changes

AFAIK, we do not seem to be using Sitemap within the application to any meaningful extent. There is no mention of it in the documentation, and it seems to only be loosely used throughout the application. If we are looking to flesh out the API further, I think it's worth removing it and potentially adding it back in a more explicit manner so that it doesn't seem like it's just legacy code.

Documentation: link.

Screenshots (if appropriate)

Screenshot 2024-12-18 at 5 34 22 PM

Tests and Linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@michplunkett michplunkett self-assigned this Dec 18, 2024
@@ -44,7 +41,6 @@
ENCODING_UTF_8 = "utf-8"
FILE_TYPE_HTML = "html"
FILE_TYPE_PLAIN = "plain"
SAVED_UMASK = os.umask(0o077) # Ensure the file is read/write by the creator only
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This constant is unused.

@@ -124,23 +123,6 @@
)


# Ensure the file is read/write by the creator only
SAVED_UMASK = os.umask(0o077)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This constant is unused.

@michplunkett michplunkett changed the title Remove Flask-Sitemap package Remove Flask-Sitemap package Dec 18, 2024
@michplunkett michplunkett marked this pull request as ready for review December 18, 2024 23:36
@michplunkett
Copy link
Collaborator Author

Sitemap is failing due to the large amount of data we have. It's good to keep it, but we may need to adjust how it's used to actually make it work. Thanks for the extra info, @sea-kelp!

@michplunkett michplunkett deleted the remove-sitemap branch December 19, 2024 03:28
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.

1 participant