Skip to content

Conversation

@apetrynet
Copy link
Contributor

Added support for "post_adapter_write" hooks.
Post hooks are run after the file is written to disk by an adapter and passes the file path to the hooks through _filepath key in the argument_map.

Updated unit tests and added example in the hooks docs.

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2020

Codecov Report

Merging #730 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #730   +/-   ##
=======================================
  Coverage   81.88%   81.88%           
=======================================
  Files          72       72           
  Lines        2755     2755           
=======================================
  Hits         2256     2256           
  Misses        499      499           
Flag Coverage Δ
#py27 81.86% <ø> (ø)
#py36 81.86% <ø> (?)
#py37 81.86% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 635faee...070f5a0. Read the comment docs.

Copy link
Collaborator

@ssteinbach ssteinbach left a comment

Choose a reason for hiding this comment

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

Looks pretty good, a couple (really small) things. @reinecke @jminor what do you think about this feature?

apetrynet and others added 2 commits June 12, 2020 08:52
Suggested change from @ssteinbach

Co-authored-by: Stephan Steinbach <61017+ssteinbach@users.noreply.github.com>
@apetrynet apetrynet requested a review from ssteinbach June 12, 2020 07:03
@apetrynet
Copy link
Contributor Author

I was a bit quick on the draw, so the first test didn't finish before I pushed the next one.

…adapter_arguments']` to avoid modifying the original arguments implicitly.
@apetrynet
Copy link
Contributor Author

apetrynet commented Jun 26, 2020

@ssteinbach
Seems like something went wrong in the py3.7 build in Travis. Could you please resubmit?

Copy link
Collaborator

@ssteinbach ssteinbach left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @apetrynet

@ssteinbach ssteinbach added this to the Public Beta 13 milestone Jul 7, 2020
@ssteinbach ssteinbach merged commit 64a1ae6 into AcademySoftwareFoundation:master Jul 7, 2020
@apetrynet apetrynet deleted the post_write_hook branch October 9, 2025 20:24
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