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

Event art archive support #39

Merged
merged 28 commits into from Oct 29, 2023
Merged

Event art archive support #39

merged 28 commits into from Oct 29, 2023

Conversation

mwiencek
Copy link
Member

@mwiencek mwiencek commented Dec 14, 2020

  • Add API support for events, and for fetching an eventartarchive.org index page
  • Upgrade Python to 3.11
  • Upgrade SQLAlchemy to v2
  • Remove Bootstrap

This project will also serve event art in the future.
Fixes line wrapping and some grammar.
that this was missing from the h1 on the homepage disturbs me greatly
This seems to be required by the new musicbrainz-test-database images I
switched over to in 8eb69cd.
I don't see any good reason to use Bootstrap (pulling in hundreds of
kilobytes of JS/CSS) just to display a single static page that links to
documentation.

I've kept the display of the page nearly identical. The only real
feature of BS we used was the navbar collapse. It no longer collapses
(and doesn't need to, as there are only three items), but does re-orient
itself below the main logo.

This reduces the project complexity significantly (dropping dependencies
on Bootstrap and less, both of which were severly out of date, plus node
and npm), and reduces the unminified page size from ~243 KB to ~71 KB.
@mwiencek mwiencek changed the title [WIP] event art archive support Event art archive support Oct 26, 2023
Copy link
Member

@reosarevok reosarevok left a comment

Choose a reason for hiding this comment

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

Seems generally fine AFAICT.

README.md Outdated Show resolved Hide resolved
def resolve_event_art(self, mbid, type, thumbnail):
"""Get the frontiest artwork image."""

if type == "Front":
Copy link
Member

Choose a reason for hiding this comment

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

Wait, so events have a "front"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, it's just the "most representative" image for the event, but the terminology was kept the same for simplicity (I think the IA had asked about it, since they use the "front" flag to determine what image to show on their details page).

Copy link
Member

Choose a reason for hiding this comment

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

Oh, ok :)

static/eventartarchive.html Outdated Show resolved Hide resolved
@mwiencek mwiencek merged commit 18dbe5a into master Oct 29, 2023
1 check passed
@mwiencek mwiencek deleted the eaa branch October 29, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants