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

refactor: DateField, HappensDateField and approval tests on DueDateField #1665

Merged

Conversation

ilandikov
Copy link
Collaborator

@ilandikov ilandikov commented Feb 16, 2023

Description

The idea is to prepare the date ranges introduction as in #1613

'DateField' class shall be optimised first. No new functionalities have been introduced. Also approval tests on 'DueDateField' class have been introduced (Just showing the current behaviour)

'HappensDateField' class has also been refactored in the same manner as it contains somehow a duplication of the logic.

Motivation and Context

There will be a need to introduce a change in the logic in DateField class however doing that requires first to refactor its code.

How has this been tested?

No new functions have been introduced so the same test suite has been run

Screenshots (if appropriate)

Types of changes

Changes visible to users:

  • Bug fix (prefix: fix - non-breaking change which fixes an issue)
  • New feature (prefix: feat - non-breaking change which adds functionality)
  • Breaking change (prefix: feat!! or fix!! - fix or feature that would cause existing functionality to not work as expected)
  • Documentation (prefix: docs - improvements to any documentation content)
  • Sample vault (prefix: vault - improvements to the Tasks-Demo sample vault)

Internal changes:

  • Refactor (prefix: refactor - non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)
  • Tests (prefix: test - additions and improvements to unit tests and the smoke tests)
  • Infrastructure (prefix: chore - examples include GitHub Actions, issue templates)

Checklist

Terms

@ilandikov ilandikov changed the title Refactor and approval DateField refactor: DateField, HappensDateField and approval tests on DueDateField Feb 16, 2023
@claremacrae claremacrae merged commit c560387 into obsidian-tasks-group:main Feb 16, 2023
@claremacrae
Copy link
Collaborator

Thanks very much, I was able to review all the individual commits and confirm that each was a safe, small change in behaviour.

@claremacrae claremacrae added the type: internal Only regards development or contributing label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: internal Only regards development or contributing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants