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

Adds error notification, prevent unneeded changes #60

Conversation

ryanjamurphy
Copy link

This PR does two things:

  1. Re: issue Kanban helper function throws error #45, this PR adds a user-facing notification to help users see which files are missing the YAML metadata property Kanban Helper is looking for.

  2. Previously, if Kanban Helper was operating on a board, when a user changed a card, Kanban Helper would rewrite the metadata of every card on the board, even if there was no change to a linked file's metadata. This led to every file e.g., getting a new date modified on the file system. I've added a check, const propertyHasChanged = (targetProperty.content != heading);, which returns true if the linked file's metadata property has a value that is different from the one the user has changed it to. Kanban helper will therefore only run updatePropertyInFile if propertyHasChanged is true.

Thanks for a fantastic plugin!

@chhoumann
Copy link
Owner

PR looks great, thank you very much @ryanjamurphy!

@chhoumann chhoumann merged commit 74badca into chhoumann:master Feb 9, 2022
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