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

bugfix: should not save the runtime data of plugin into etcd. #1910

Merged
merged 7 commits into from Jul 27, 2020
Merged

bugfix: should not save the runtime data of plugin into etcd. #1910

merged 7 commits into from Jul 27, 2020

Conversation

membphis
Copy link
Member

@membphis membphis commented Jul 26, 2020

What this PR does / why we need it:

as title.

fixed #1836 .

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible?

@@ -26,6 +27,7 @@ local cached_tab = {}
local _M = {
version = 0.1,
decode = require("cjson.safe").decode,
sort_encode = require("apisix.core.json_sort").encode,
Copy link
Member

Choose a reason for hiding this comment

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

Better to use name encode_with_keys_sorted.

@@ -26,6 +27,7 @@ local cached_tab = {}
local _M = {
version = 0.1,
decode = require("cjson.safe").decode,
sort_encode = require("apisix.core.json_sort").encode,
Copy link
Member

Choose a reason for hiding this comment

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

Is this function only for test cases?

-- See the License for the specific language governing permissions and
-- limitations under the License.
--

Copy link
Member

Choose a reason for hiding this comment

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

we should not put this file to core if it only for test cases.

@membphis membphis merged commit 2d667ec into apache:master Jul 27, 2020
@membphis membphis deleted the bugfix-schema-plugin branch July 27, 2020 06:44
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.

bug: should not save the runtime data of plugin into etcd
3 participants