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

refactor(hostRules): precalculate resolvedHost #9811

Merged
merged 4 commits into from May 1, 2021
Merged

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented May 1, 2021

Changes:

Calculates a resolvedHost value whenever a host rule is added, and returns it as part of find/findAll.

Context:

This allows managers to not have to duplicate "is this a URL or a hostname?" logic. Also important for an upcoming hostRules simplification PR I'm working on.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • No new tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins requested a review from viceice May 1, 2021 14:37
@rarkins rarkins changed the title refactor(hostRules): precalculate resovledHost refactor(hostRules): precalculate resolvedHost May 1, 2021
@rarkins rarkins requested a review from viceice May 1, 2021 15:13
@rarkins rarkins merged commit 0918679 into main May 1, 2021
@rarkins rarkins deleted the refactor/resolved-host branch May 1, 2021 16:19
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 25.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2021
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.

None yet

3 participants