Skip to content

Unexpected behaviour when there's only until field in report-config.yaml #2546

@lyuanww

Description

@lyuanww

Please include the steps to reproduce the bug.

  1. Add only the until field in your repo settings in report-config.yaml
Image
  1. Run Reposense without any CLI flags
  2. You will receive an unexpected warning.
Image

What was expected to happen?

Reposense should run without this warning and provide repo info until the date specified by the until field

Additional context

The faulty code is found in setSinceUntilDate in OneStopConfigRunConfiguration.java
When stepping through the code, it is found that while the cli flags is not explicitly provided, there's a cli default since flag which will trigger this piece of code.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions