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

Add Duration Extension API #576

Merged
merged 16 commits into from
Oct 10, 2024
Merged

Add Duration Extension API #576

merged 16 commits into from
Oct 10, 2024

Conversation

VoigtS
Copy link
Member

@VoigtS VoigtS commented Oct 8, 2024

This PR introduces an API to extend the duration of a commitment to a valid one provided in its configuration.
This is implemented as a draft, because I'm unsure wheter to create a new commitment or overwrite the current one and add a new DB column with an "Extended_at" field. As an alternative I simply updated the commitment. I would like to hear your oppinion and will implement as desired.

Another note: Before this goes live, the PR requests a change on the vendor file, which would have to be updated first.

TODO:

  • I updated the documentation to describe the semantical or interface changes I introduced.

@VoigtS VoigtS marked this pull request as draft October 8, 2024 10:35
internal/api/commitment.go Outdated Show resolved Hide resolved
internal/api/commitment.go Outdated Show resolved Hide resolved
@VoigtS VoigtS marked this pull request as ready for review October 8, 2024 11:54
replace it with a string compare
internal/api/commitment.go Outdated Show resolved Hide resolved
internal/api/commitment.go Outdated Show resolved Hide resolved
internal/api/commitment.go Outdated Show resolved Hide resolved
internal/api/commitment_test.go Show resolved Hide resolved
internal/api/commitment_test.go Outdated Show resolved Hide resolved
@VoigtS VoigtS requested a review from majewsky October 8, 2024 15:54
Copy link
Contributor

@majewsky majewsky left a comment

Choose a reason for hiding this comment

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

Nitpick: Some comments on the tests say "date" instead of "duration". Other than that, please proceed with the rollout in my absence.

replace date with the proper word duration
@VoigtS VoigtS merged commit f73791d into master Oct 10, 2024
7 checks passed
@VoigtS VoigtS deleted the extend_duration branch October 10, 2024 14:06
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.

2 participants