Skip to content

Exclusion logic for formats #184

Description

@andybak

What should this do?: assets?format=GLTF2&format=-TILT

  1. (current behaviour I think) All assets that EITHER have gltf2 OR have no tilt file
  2. All assets that have gltf2 BUT have no tilt file

Option 2 seems more useful to me and solves a use case I actually have ("I want all these formats but not if they have tilt files"). I can't think of a use case for the current behaviour..?

Extending it to multiple formats and it seems consistent to do:

  1. Get all the non-negative results
  2. Exclude the negative results

How to handle multiple negative formats types?

  1. OR them all together: "Exclude all assets that have tilt or blocks"
  2. AND: "Exclude all assets that have tilt AND blocks"

Option 1 is consistent with how the non-exclude queries work. And it seems at first glance to be more likely to be useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions