Skip to content

Conversation

@bhagany
Copy link
Contributor

@bhagany bhagany commented Dec 2, 2016

Each built-in task that modifies file metadata conjes a keyword onto the :perun/trace vector. This will aid in debugging, and possibly have applications in tasks.

Following @MartyGentillon here: #113 (comment). Two notes:

  • I went with namespaced keywords. It felt right, and I was more comfortable breaking with the existing style with :perun/trace than with :include-rss and :include-atom, because :perun/trace feels like a different kind of metadata. For the values in the vector, I went with :perun/ namespaced keywords as well, because 3rd party code may want to hook into the trace functionality. I still think that namespaced keywords are a good idea pretty much everywhere in perun, fwiw.
  • Some tasks, most notably render, don't use trace, because they don't currently modify metadata. If Add a :meta task option to markdown, render, and collection #116 gets merged before this one, I'll modify this PR to trace render as well.

Each built-in task that modifies file metadata conjes a keyword onto
the `:perun/trace` vector. This will aid in debugging, and possibly
have applications in tasks.
@martinklepsch
Copy link
Contributor

martinklepsch commented Dec 2, 2016

I still think that namespaced keywords are a good idea pretty much everywhere in perun, fwiw.

👍

One suggestion would be :io.perun instead of :perun. Just to comply with the current namespacing scheme...

Copy link
Member

@podviaznikov podviaznikov left a comment

Choose a reason for hiding this comment

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

Great idea. I like it

@bhagany
Copy link
Contributor Author

bhagany commented Dec 2, 2016

One suggestion would be :io.perun instead of :perun. Just to comply with the current namespacing scheme...

I was going to make a case for the shorter thing, but :io.perun makes aliasing easier, so you win :). It's done.

@bhagany bhagany changed the title Add :perun/trace to file metadata Add :io.perun/trace to file metadata Dec 2, 2016
@podviaznikov
Copy link
Member

Small conflict, will merge when resolved

@bhagany
Copy link
Contributor Author

bhagany commented Dec 6, 2016

Okay, fixed.

@podviaznikov podviaznikov merged commit ed9b285 into hashobject:master Dec 7, 2016
@bhagany bhagany deleted the trace branch December 7, 2016 12:37
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