Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Report the affected resources for each event #1050

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

squaremo
Copy link
Member

Hitherto we have used a single list of ResourceIDs to populate the
event field. It was calculated by looking at which files have changed
since last sync, and which resources are in those changed files.

This is inaccurate because

  1. files don't always contain one resource (though currently, files
    we can change only contain one resource)
  2. each event gets the list of resources changed in any commit.

To address 2., use the Result field from the git note, which has a
record of what was actually changed in that operation.

1.) is less of a problem for now, because we can only change files
containing one resource at present anyway.

Fixes #729.

Hitherto we have used a single list of `ResourceID`s to populate the
event field. It was calculated by looking at which files have changed
since last sync, and which resources are in those changed files.

This is inaccurate because

 1. files don't always contain one resource (though currently, files
 _we can change_ only contain one resource)
 2. each event gets the list of resources changed in _any_ commit.

To address 2., use the Result field from the git note, which has a
record of what was actually changed in that operation.

1.) is less of a problem for now, because we can only change files
containing one resource at present anyway.
@squaremo squaremo merged commit 1fc5294 into master Apr 24, 2018
@squaremo squaremo deleted the issue/1026-look-at-git-not-cluster branch April 24, 2018 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants