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: extract QueryLayoutOptions from LayoutOptions #2521

Merged

Conversation

ilandikov
Copy link
Collaborator

@ilandikov ilandikov commented Dec 19, 2023

Description

Extract QueryLayoutOptions from LayoutOptions.

Motivation and Context

Starting to think about implementing issues such as #848 #2380 #2198

Separate concerns between options for task & query rendering.

How has this been tested?

Unit tests + smoke tests (https://github.com/obsidian-tasks-group/obsidian-tasks/actions/runs/7263529954)

Types of changes

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)

Checklist

  • My code follows the code style of this project and passes yarn run lint.
  • My change has adequate Unit Test coverage.

Terms

@ilandikov ilandikov marked this pull request as draft December 19, 2023 12:01
Manual operation. Automated refactoring not available, probably due to optional parameters
@ilandikov ilandikov marked this pull request as ready for review December 19, 2023 15:24
@ilandikov
Copy link
Collaborator Author

Smoke tests are good, added link for reference.

@claremacrae claremacrae added the type: internal Only regards development or contributing label Dec 20, 2023
Copy link
Collaborator

@claremacrae claremacrae left a comment

Choose a reason for hiding this comment

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

All changes done by pairing together...
Thanks for fixing the parameter order in that last commit.

@claremacrae claremacrae merged commit dc5ecbc into obsidian-tasks-group:main Dec 21, 2023
1 check passed
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