Skip to content

refactor: adjusting the position of ai module#8120

Merged
spacewander merged 9 commits into
apache:masterfrom
tzssangglass:aap
Oct 20, 2022
Merged

refactor: adjusting the position of ai module#8120
spacewander merged 9 commits into
apache:masterfrom
tzssangglass:aap

Conversation

@tzssangglass

Copy link
Copy Markdown
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
Comment thread apisix/event.lua Outdated
Comment thread apisix/event.lua
Comment thread apisix/plugins/ai.lua Outdated
membphis
membphis previously approved these changes Oct 19, 2022
Comment thread apisix/core/event.lua
Comment thread t/core/config.t
--- response_body
etcd host: http://127.0.0.1:2379
first plugin: "real-ip"
first plugin: "ai"

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread apisix/init.lua

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

Copy link
Copy Markdown
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
Copy Markdown
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