Skip to content

Conversation

@adam-knights
Copy link
Contributor

Tested with all sequence views, some examples:

Character sequences unfiltered
image

with filter:
image

Feature:
image

Creator:
image

Universe correctly pops it:
image

For anything not involved in Marvel/DC, universes filter doesnt appear whenno sequences have a universe in data to filter:
image

And then finally, the addition of story type filter I noticed meant we started to overhang on mobile, this would have made it worse, so added a wrap, example on mobile size:
image

Copy link
Contributor

@jochengcd jochengcd left a comment

Choose a reason for hiding this comment

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

This is filtering on the story universe, not the character universe ? To clarify, we maybe should label this with 'Story Universe' and not 'Universe' ?

Another thing, in difference to the other filters, here 'None' is a valid selection, i.e. filter for those stories without a universe set. Can we look into adding that ? Not sure if feasible, but the question will come from users.

@jochengcd
Copy link
Contributor

@adam-knights adam-knights force-pushed the sequence-filter-by-universe branch from 801ec4c to 04c856f Compare January 15, 2026 15:51
@adam-knights
Copy link
Contributor Author

adam-knights commented Jan 15, 2026

This is filtering on the story universe, not the character universe ? To clarify, we maybe should label this with 'Story Universe' and not 'Universe' ?

Correct, have updated for that before I forget.

Another thing, in difference to the other filters, here 'None' is a valid selection, i.e. filter for those stories without a universe set. Can we look into adding that ? Not sure if feasible, but the question will come from users.

I will give it a try :)

if publishers:
qs = Publisher.objects.filter(id__in=publishers)
self.form['publisher'].field.queryset = qs
if universe:
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking further, I don't think that this should in CommonFilter, since it only applies to Sequences ?

universes = set(self.qs.values_list(universe, flat=True))
universes.discard(None) # Remove None before checking if set is empty
if universes:
qs = Universe.objects.filter(id__in=universes).select_related('verse')
Copy link
Contributor

Choose a reason for hiding this comment

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

style guide of code is less then 80 characters

self.form['publisher'].field.queryset = qs
if universe:
universes = set(self.qs.values_list(universe, flat=True))
universes.discard(None) # Remove None before checking if set is empty
Copy link
Contributor

Choose a reason for hiding this comment

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

adding
null_label='No Universe',
to universe = ModelMultipleChoiceFilter(...) will do the filtering on no universe set, which we should support.

But then the universe filter will not show when selecting that, so unsetting only by going back, which is not ideal. Removing will show the universe box for characters without any, which we don't want either.
Can there be a different check ?

Copy link
Contributor

Choose a reason for hiding this comment

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

        if 'null' not in self.data.getlist('universe'):
            universes.discard(None) # Remove None before checking if set is empty

@jochengcd
Copy link
Contributor

Another aspect to consider, universe will show on all sequence list, also for creators, features, ... Which I am not sure we want ?

@adam-knights
Copy link
Contributor Author

I also wonder now if we want this at all, we have pages such as https://www.comics.org/character/6122/issues/character_universe/3/

and your story type filter solved my immediate need.

We also have https://www.comics.org/universe/3/sequences/

The more I think about it, the more i wonder if this is adds the cumbersome of a filter that the users won't really need.

@jochengcd
Copy link
Contributor

Maybe ask on main on use cases ?

We can:

  • find issues with sequences of a character set in a specific universe
  • find issues set in a specific universe
  • find sequences set in a specific universe

We cannot:

  • find sequences of a character set in a specific universe
  • find issues or sequences of a character set in one of selected universes

But can we make use of that ? Adding many filters (at least in the current way) can become unwidely.

@adam-knights
Copy link
Contributor Author

Yeah i'll ask the question - and we can find issues of a character set in a specific universe with https://www.comics.org/character/6261/issues/story_universe/2/ - so just boils down to if its worth it for 1) sequences only and 2) selecting multiple story universes.

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