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: adjusting the position of ai module #8120

Merged
merged 9 commits into from
Oct 20, 2022

Conversation

tzssangglass
Copy link
Member

Description

Fixes # (issue)

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

membphis
membphis previously approved these changes Oct 19, 2022
apisix/event.lua Outdated Show resolved Hide resolved
apisix/event.lua Outdated Show resolved Hide resolved
apisix/plugins/ai.lua Outdated Show resolved Hide resolved
membphis
membphis previously approved these changes Oct 19, 2022
apisix/core/event.lua Show resolved Hide resolved
@@ -38,7 +38,7 @@ __DATA__
GET /t
--- response_body
etcd host: http://127.0.0.1:2379
first plugin: "real-ip"
first plugin: "ai"
Copy link
Member

Choose a reason for hiding this comment

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

we can change the priority of ai plugin
we should avoid to change this test case

Copy link
Member Author

Choose a reason for hiding this comment

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

If it is not necessary, I am going to change it in the next PR

@@ -152,6 +152,8 @@ function _M.http_init_worker()

apisix_upstream.init_worker()
require("apisix.plugins.ext-plugin.init").init_worker()
-- TODO: need to revisit code layering and avoid similar hacking
Copy link
Member

Choose a reason for hiding this comment

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

Will this be handled in the next PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

not in next PR, in feature.

@spacewander spacewander merged commit 23356d6 into apache:master Oct 20, 2022
Liu-Junlin pushed a commit to Liu-Junlin/apisix that referenced this pull request Nov 4, 2022
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.

4 participants