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

size: composite configuration #79

Merged
merged 2 commits into from
Mar 22, 2023
Merged

size: composite configuration #79

merged 2 commits into from
Mar 22, 2023

Conversation

srvaroa
Copy link
Owner

@srvaroa srvaroa commented Mar 22, 2023

In retrospect, the previous config for size was not very fortunate as it splits properties that have a semantic relation in two unrelated ones:

- label: M
    size-above: 10
    size-below: 100

In order to support file exclusions for the size calculation it'd make a cleaner config schema to have all size properties in a single Size node.

This change introduces a size node as a condition configuration that replaces size-above and size-below, while respecting backwards compatibility. Older config files will continue working, but from now on the way to specify the file condition will be:

    - label: M
        above: 10
        below: 100

In retrospect, the previous config for size was not very fortunate as it
splits properties that have a semantic relation in two unrelated ones:

    - label: M
        size-above: 10
        size-below: 100

In order to support file exclusions for the size calculation it'd make a
cleaner config schema to have all size properties in a single Size node.

This change introduces a `size` node as a condition configuration that
replaces `size-above` and `size-below`, while respecting backwards
compatibility. Older config files will continue working, but from now on
the way to specify the file condition will be:

        - label: M
            above: 10
            below: 100

Signed-off-by: Galo Navarro <anglorvaroa@gmail.com>
@srvaroa srvaroa merged commit 6187a7d into master Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant