Skip to content

Eliminate duplicates in expansion #129

@lanthaler

Description

@lanthaler

In a recent update to the test suite Dave changed the behavior of expansion to remove duplicates in sets. Is this what we wanna do?

So, e.g., "prop": [ 1, 2, 2, 2, 2, 3 ] will now be expanded to "prop": [ 1, 2, 3 ] (of course as @value objects). Is this what we wanna do? Or is this something we should do as part of framing resp. subject map generation?

My concern is that we introduce a lot of overhead in expansion with very little advantages. An application will have to eliminate duplicates again as sets aren't merged at that phase in the processing piplelined yet. A subject could be represented several times in the expanded output - each of which could hold a subset of "the set".

In contrast, in the subject map generation algorithm we collect all data that belongs to a subject and so it makes sense to eliminate duplicates there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions