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

RangeMonthly should deal with whole months #2666

Merged
merged 2 commits into from
Apr 2, 2019
Merged

Conversation

lallea
Copy link
Contributor

@lallea lallea commented Mar 4, 2019

RangeMonthly should deal with whole months, i.e. months_forward=0 should require only complete months, and not the current month. This was the intended behaviour, and is consistent with other Range* tasks.

I have executed the unit tests for RangeMonthly, as well as updated them to reflect the intended behaviour.

@dlstadther
Copy link
Collaborator

I agree this makes more sense than what currently exists. And I appreciate the test case additions!

My only (mild) concern is that someone is using RangeMonthly based on a now which is not the first of the month and thus this patch will change their behavior.

So either moving the day of month to the first should be configurable, OR we explicitly call out in the next release that this may be a breaking change for anyone using RangeMonthly on a date which is not the first of the month.

@lallea
Copy link
Contributor Author

lallea commented Mar 5, 2019 via email

Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

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

Since the current behaviour is not useful, I don't think that we should keep it as a configurable option. IMHO, it does make sense to bump the minor release number instead of the patch number for the next release in order to signal the risk of breakage, however.

Sounds good to me! I think you added this 3 months ago, so it's probably also not going to break for to many users. Since we're "understaffed" I think it's fine to cut maintenance corners if the negative impact is low.

@lallea
Copy link
Contributor Author

lallea commented Mar 6, 2019 via email

@Tarrasch
Copy link
Contributor

Tarrasch commented Mar 8, 2019

I still think that it is wise to bump the minor number to indicate risk of breakage, however.

Oh yes. I didn't mean otherwise.

I have had Luigi patch releases break pipelines in the past. I think that it is better to be generous with major and minor bumps in order to set expectations on compatibility.

Totally agree. Sorry for any breakages!

@dlstadther
Copy link
Collaborator

Sorry for my silence @lallea

Looks like we agree for this to be merged, given infancy of feature and minimal breakage.

I'll merge. Thanks @lallea !

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.

3 participants