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

fix: reprocess all resources for file updates #675

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

olensmar
Copy link
Member

This PR...

Changes

Fixes

How to test it

Screenshots

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

}
});

// all existing resources with broken refs (since they might now work) -> this should be improved to
Copy link
Member

Choose a reason for hiding this comment

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

good point, should we refactor reprocessResources from services/resource to do a filtering like this instead of checking for all dependent resource kinds and then reprocessing all resources of that kind?

Copy link
Member Author

Choose a reason for hiding this comment

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

i was thinking we would add an optional list of targetResourceKinds to the unsatisfied ref (since we know them when we try to discover the ref) - which we could use here for further filtering!?

Copy link
Member Author

Choose a reason for hiding this comment

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

actually - looking at the code it seems we already add this to the ref - will see how that works!

Copy link
Member Author

Choose a reason for hiding this comment

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

no - this requires more work... will merge this and tackle that separately...

@olensmar olensmar merged commit 5fbdbc0 into main Nov 16, 2021
@olensmar olensmar deleted the olelensmar/fix/ref-reprocessing branch November 16, 2021 13:56
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.

None yet

2 participants