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(tools): separate yield functions from utils #11747

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

chronolaw
Copy link
Contributor

@chronolaw chronolaw commented Oct 12, 2023

Summary

This PR is one of serial refactor PRs, the goal is to clean the huge utils.lua.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Full changelog

  • [Implement ...]

Issue reference

Fix #[issue number]

@chronolaw chronolaw marked this pull request as ready for review October 12, 2023 09:10
@bungle bungle changed the title refactor(tools): separat yield functions from utils refactor(tools): separate yield functions from utils Oct 12, 2023
@chronolaw chronolaw force-pushed the refactor/separate_yield_from_utils branch from 72d61df to a200b73 Compare October 24, 2023 02:47
@chronolaw chronolaw force-pushed the refactor/separate_yield_from_utils branch from a200b73 to 4c0f796 Compare October 24, 2023 04:56
@chronolaw chronolaw force-pushed the refactor/separate_yield_from_utils branch from 4c0f796 to 89b8639 Compare October 25, 2023 04:17
end
end


Copy link
Contributor

Choose a reason for hiding this comment

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

As we're planning to split up utils.lua even further, make this function into a utility function that can be called like:

include_module(_M, "kong.tools.yield")

or similar to prevent code duplication.

Copy link
Contributor Author

@chronolaw chronolaw Oct 26, 2023

Choose a reason for hiding this comment

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

good idea.

@windmgc windmgc merged commit ed798ec into master Oct 27, 2023
@windmgc windmgc deleted the refactor/separate_yield_from_utils branch October 27, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants