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 table related functions from utils #11723

Merged
merged 6 commits into from
Oct 25, 2023

Conversation

chronolaw
Copy link
Contributor

@chronolaw chronolaw commented Oct 10, 2023

Summary

This PR is a try to refactor the big tools.utils.lua, now it moves the functions of table into a separated module.

KAG-2739

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 changed the title refactor(tools): separate table functions from utils refactor(tools): separate table related functions from utils Oct 10, 2023
@chronolaw chronolaw marked this pull request as ready for review October 10, 2023 06:20
@chronolaw chronolaw force-pushed the refactor/separate_table_funcs_from_utils branch from 1de0cd7 to ffdcfc4 Compare October 12, 2023 08:10
-- *** NOTE *** string-keys containing integers are considered valid array entries!
-- @param t The table to check
-- @return Returns `true` if the table is an array, `false` otherwise
function _M.is_lapis_array(t)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know why the original code has two same functions

Copy link
Contributor Author

@chronolaw chronolaw Oct 18, 2023

Choose a reason for hiding this comment

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

I have the same feeling with you, but this PR is refactoring, won't change anything.

After this PR, we could check the code carefully.

@chronolaw chronolaw force-pushed the refactor/separate_table_funcs_from_utils branch from ffdcfc4 to 540afc0 Compare October 24, 2023 02:47
@chronolaw chronolaw force-pushed the refactor/separate_table_funcs_from_utils branch from 540afc0 to 03e0f39 Compare October 24, 2023 04:57
@windmgc windmgc merged commit 6c2dbb1 into master Oct 25, 2023
23 checks passed
@windmgc windmgc deleted the refactor/separate_table_funcs_from_utils branch October 25, 2023 03:47
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.

5 participants